- Home /
Using noise as texture
Hey! I wanted to ask if someone could explain perlin noise and how to use it as a texture alpha and animate it kinda like the basic water in unity.
David
Answer by Wolfram · Sep 15, 2011 at 12:11 PM
I FINALLY understood it! :)... I can't believe that it's THAT simple... It's just iterating trough the texture and using SetPixel to set the color to a specific value that is generated due to time so it's animated because of time flow...I'll finish the webplayer and post a demo /w code.
Of particular interest will be what frame rate you achieve calculating a full Perlin texture each frame, so be sure to measure that.
I get full framerate because of low resolution of the perlin texture :)
Answer by Waz · Sep 15, 2011 at 12:05 PM
Perlin noise implemented in Cg/GLSL is quite expensive. Google for "Cg Perlin" and you'll find plenty of info.