(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.
Post Reply
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

(C++) Efficient Texture Coord Manipulation

Post by hybrid »

I've just release a patch (http://parsys.informatik.uni-oldenburg. ... trix.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.
IPv6
Posts: 188
Joined: Tue Aug 08, 2006 11:58 am

Post by IPv6 »

great!!!
BTW ,when 1.2 is scheduled for release? :)
Post Reply