Advertisement

texture perturbation

Started by May 25, 2003 04:36 PM
4 comments, last by penetrator 21 years, 9 months ago
How could i modify texture coordinates to achieve, for example, a fire effect ?
Not sure what you mean. There are many ways of playing around with textures - sphere mapping, blitting. Random changes in tex coordinates could be a solution for what you want to do. But if you want to produce a fire effect i suggust you use a particle engine. You could also do what wetta did (in LOTR) and use an avi mapped to each particle - it produces a fairly convincing effect.
Advertisement
Heres what i mean by avi particle engine - went a bit overboard on the fire though

That would be a nice approach, but is it possible to have an alpha channel so that black spots of the .avi file would be transparent ?

Ive searched the web but i didnt find anything saying that u can use 32bit AVI files. If u really cant, you could have a RGBA texture and modify every frame before upload (when R, G, B are 0, set A to 0 else set A to 1).


PM


Times change...


Excuse my poor english!
PM Times change... Excuse my poor english!
There is nice fire FX on nvidia''s dev pages. But probably a bit to heavy for you right now.
Or you can load slices(frames) of fire animation in one 3D texture and use 3rd texture component as time. This way you get free smooth blending.

You should never let your fears become the boundaries of your dreams.
You should never let your fears become the boundaries of your dreams.

This topic is closed to new replies.

Advertisement