<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: 3D Fish Tank debuts</title>
	<atom:link href="http://www.nikko3d.com/index.php/iphone/3d-fish-tank-debuts/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.nikko3d.com/index.php/iphone/3d-fish-tank-debuts/</link>
	<description></description>
	<lastBuildDate>Tue, 03 Jan 2012 16:47:14 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: admin</title>
		<link>http://www.nikko3d.com/index.php/iphone/3d-fish-tank-debuts/comment-page-1/#comment-26</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Thu, 06 Aug 2009 02:14:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.nikko3d.com/?p=87#comment-26</guid>
		<description>It is very simple. Just find a little software software named : Caustic Generator. With this software, generate a list of pictures JPG of the caustic animation.
Then create a plane and give it a material that is Transparent / Vertext Lit
Drag and drop this script on your plane :

&lt;code&gt;
#pragma strict
//@script ExecuteInEditMode
public var material : Material;
public var caustics : Texture[];
public var framesPerSecond =0.5;
private var shader : Shader = null;
var exindex : int=0;
function Start()
{
        shader = Shader.Find(&quot;Transparent/VertexLit&quot;);
        material.SetTexture(&quot;_MainTex&quot;, caustics[0]);	
}
function Update () 
{
	if (exindex!=GUIstuff.indexcaustics)
       {
               exindex = GUIstuff.indexcaustics;
               material.SetTexture(&quot;_MainTex&quot;, caustics[exindex]);
       }
}&lt;/code&gt;

Now with your script in the inspector, you can decide of the number of texture of your animation (set it to the number of textures you generated with Caustic Generator).
You need to drag and drop each textures in the right order in their respective spots. (I use 16 textures animations and name them caustic01.jpg caustic02.jpg etc...)

Now run and it should work... you can even set the speed of the animation in Frames per seconds!</description>
		<content:encoded><![CDATA[<p>It is very simple. Just find a little software software named : Caustic Generator. With this software, generate a list of pictures JPG of the caustic animation.<br />
Then create a plane and give it a material that is Transparent / Vertext Lit<br />
Drag and drop this script on your plane :</p>
<p><code><br />
#pragma strict<br />
//@script ExecuteInEditMode<br />
public var material : Material;<br />
public var caustics : Texture[];<br />
public var framesPerSecond =0.5;<br />
private var shader : Shader = null;<br />
var exindex : int=0;<br />
function Start()<br />
{<br />
        shader = Shader.Find("Transparent/VertexLit");<br />
        material.SetTexture("_MainTex", caustics[0]);<br />
}<br />
function Update ()<br />
{<br />
	if (exindex!=GUIstuff.indexcaustics)<br />
       {<br />
               exindex = GUIstuff.indexcaustics;<br />
               material.SetTexture("_MainTex", caustics[exindex]);<br />
       }<br />
}</code></p>
<p>Now with your script in the inspector, you can decide of the number of texture of your animation (set it to the number of textures you generated with Caustic Generator).<br />
You need to drag and drop each textures in the right order in their respective spots. (I use 16 textures animations and name them caustic01.jpg caustic02.jpg etc&#8230;)</p>
<p>Now run and it should work&#8230; you can even set the speed of the animation in Frames per seconds!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fang Jin</title>
		<link>http://www.nikko3d.com/index.php/iphone/3d-fish-tank-debuts/comment-page-1/#comment-24</link>
		<dc:creator>Fang Jin</dc:creator>
		<pubDate>Wed, 05 Aug 2009 21:39:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.nikko3d.com/?p=87#comment-24</guid>
		<description>I came by your post at unity forum, very impressed, just wonder how this illusion of moving water is implemented, I am working on  a project of tumor growth, needs some water illusion.

thanks
Fang</description>
		<content:encoded><![CDATA[<p>I came by your post at unity forum, very impressed, just wonder how this illusion of moving water is implemented, I am working on  a project of tumor growth, needs some water illusion.</p>
<p>thanks<br />
Fang</p>
]]></content:encoded>
	</item>
</channel>
</rss>

