texture rotation matrix

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
Cezaro
Posts: 18
Joined: Fri Jul 07, 2006 2:31 pm
Location: Korytow Poland

texture rotation matrix

Post by Cezaro »

HELLO

Hybrid wrote:

" 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. "


please write how to use this feature in simple code

best regards
thanks
PC 8086 4.77MHz 1MB RAM CGA GRAPHICS
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

I use this code to let the texture of the cube in tutorial 4 move across the mesh while the mesh itself rotates around the sphere.

Code: Select all

wall->getTransformation().setTranslation(core::vector3df(i*0.0001f,i*0.0002f, 0.0f));
++i;
Post Reply