<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet href="http://www.tres-graficos.jp/blog/rss/style.css" type="text/css"?>
<rdf:RDF xmlns="http://purl.org/rss/1.0/"
         xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
         xmlns:content="http://purl.org/rss/1.0/modules/content/"
         xmlns:dc="http://purl.org/dc/elements/1.1/"
         xml:lang="en">
<channel rdf:about="http://www.tres-graficos.jp/blog/rss/1.0.php?id=310">
<title>TG BLOG</title>
<link>http://www.tres-graficos.jp/blog/index.php</link>
<dc:date>2006-12-21T23:37:32+0900</dc:date>
<description>
TG BLOG - RSS (RDF Site Summary).
</description>
<items>
<rdf:Seq>
<rdf:li rdf:resource="http://www.tres-graficos.jp/blog/article.php?id=310" />
</rdf:Seq>
</items>
</channel>
<item>
<title>The Sun.js</title>
<link>http://www.tres-graficos.jp/blog/article.php?id=310</link>
<dc:date>2006-12-21T23:37:32+0900</dc:date>
<description>Tod さんの新しいスクリプトが投稿されてます。
ライトを太陽の位置に配置してくれるスクリプト、屋外のシーンなんかをシミュレートしたい場合には重宝しそうです。
190行目あたりの、

obj.setParameter(&quot;position&quot;,...</description>
<content:encoded>
<![CDATA[
<p>Tod さんの新しいスクリプトが<a href="http://www.cheetah3d.de/forum/showthread.php?p=7325" class="ex-ref">投稿</a>されてます。</p>
<p>ライトを太陽の位置に配置してくれるスクリプト、屋外のシーンなんかをシミュレートしたい場合には重宝しそうです。</p>
<p>190行目あたりの、</p>
<pre>
<code>obj.setParameter("position",pos);
</code>
</pre>
<p>の後に、</p>
<pre>
<code>obj.setParameter("rotation", new Vec3D(-ang.x-north, 0, ang.y - 90));
</code>
</pre>
<p>と付け加えると、原点（0,0,0）方向に向きを回転してくれます。Tool スクリプトなので、アニメーションなんかにはちょっと使えないんですが、まだまだ改善されそう。初期設定の保存のアイデアは、さすがだなぁ。</p>
<p>早速、大阪 ( -135 29 / 34 42 : UT -9 ) の今日に設定してテストしてみた。</p>
<p>8:00</p>
<p>
<img src="http://www.tres-graficos.jp/blog/resources/ch_20061221_ts08.jpg" width="320" height="240" alt="" />
</p>
<p>12:00</p>
<p>
<img src="http://www.tres-graficos.jp/blog/resources/ch_20061221_ts12.jpg" width="320" height="240" alt="" />
</p>
<p>14:00</p>
<p>
<img src="http://www.tres-graficos.jp/blog/resources/ch_20061221_ts14.jpg" width="320" height="240" alt="" />
</p>
<p>16:00</p>
<p>
<img src="http://www.tres-graficos.jp/blog/resources/ch_20061221_ts16.jpg" width="320" height="240" alt="" />
</p>
<p class="spec">Rendering: Cheetah3D 3.5 with The Sun.js</p>

]]>
</content:encoded>
</item>

</rdf:RDF>