<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
    xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
    xmlns:admin="http://webns.net/mvcb/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
<title>TG BLOG</title>
<link>http://tres-graficos.jp/blog/index.php</link>
<pubDate>Thu, 21 Dec 2006 23:37:32 </pubDate>
<description>
TG BLOG - RSS 2.0 (Really Simple Syndication).
</description>
<item>
<title>The Sun.js</title>
<link>http://tres-graficos.jp/blog/article.php?id=310</link>
<pubDate>Thu, 21 Dec 2006 23:37:32 +0900</pubDate>
<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://tres-graficos.jp/blog/resources/ch_20061221_ts08.jpg" width="320" height="240" alt="" />
</p>
<p>12:00</p>
<p>
<img src="http://tres-graficos.jp/blog/resources/ch_20061221_ts12.jpg" width="320" height="240" alt="" />
</p>
<p>14:00</p>
<p>
<img src="http://tres-graficos.jp/blog/resources/ch_20061221_ts14.jpg" width="320" height="240" alt="" />
</p>
<p>16:00</p>
<p>
<img src="http://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>
</channel>
</rss>