(C++) Efficient Texture Coord Manipulation

Post those lines of code you feel like sharing or find what you require for your project here; or simply use them as tutorials.

(C++) Efficient Texture Coord Manipulation

Postby hybrid » Tue Sep 05, 2006 9:55 pm

I've just release a patch (http://parsys.informatik.uni-oldenburg.de/~hybrid/irrlicht/patch.1.1/features/textureMatrix.patch also added to SVN) which enables a very simple and efficient way to manipulate texture coords. Both OpenGL and DirectX allow to use texture matrices which are applied to texture coords before these are finally used. This is now usable in Irrlicht.
So by manipulating the texture matrix one can easily rotate the textures across an arbitrarily deformed mesh with lots of vertices in just one step. Also texture animation is easily possible, e.g. by using a translation matrix. Pulsating effects can be made y scaling the coords.
hybrid
Admin
 
Posts: 13977
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany

Postby IPv6 » Sat Sep 09, 2006 3:44 pm

great!!!
BTW ,when 1.2 is scheduled for release? :)
User avatar
IPv6
 
Posts: 188
Joined: Tue Aug 08, 2006 11:58 am


Return to Code Snippets

Who is online

Users browsing this forum: No registered users and 1 guest