Archived

This topic is now archived and is closed to further replies.

Oktan

Morphing textures

Recommended Posts

Well - it depends on what you mean by ''morphing'' the texture... If you just want the texture to fade from one to another then that''s easy!

You have to render your 3d model twice, once with the second texture, then after that you render it again with the first texture at full opacity. Over time you slowly decrease the opacity of the first texture which will expose the 2nd texture

Obviously this could be optimised to be done in a single pass using multitexturing...



-------- E y e .Scream Software --------
----------------------------------------
                                  /-\
    http://www.eyescream.cjb.net | * |
                                  \-/
----------------------------------------

Share this post


Link to post
Share on other sites
2D interpolation of textures == fading textures. It is very easy and fast, esp. when using multitexturing, and an extended combiner equation, such as EXT_texture_env_combine.

If you want real morphing, then you need image warping techniques, and that''s more complicated, and won''t work on a 3D model. But if you simply want to 3D morph your model and want your texture to adapt at the same time, it''s easy. Just interpolate the 3D vertices and fade the texture using the same interpolation factor.

Share this post


Link to post
Share on other sites