Texture Matrix and Distortion
Hi i was just wondering if anyone knew how to distort textures in the texture matrix. I have been looking at how to distort the texture with water effects and dont really know where to sart on this. I have currently got as far as having a heightmapped wave - with a projected texture mapped onto it.
Does anyone know how to feed new coords into the texture matrix, or distort texture coords in the texture matrix?
Thanks
Cheers,
Monster.
http://www.brownmonster.co.uk/
Texture matrix is the same like modelview but it affect texcoord.
So you can only modify texcoord with texture matrix but it will alway map a 3 point polygon to a triangle. It''s like playing with modelview matrix and drawing a triangle, it will be always a triangle.
P.S.: Sorry for my english
So you can only modify texcoord with texture matrix but it will alway map a 3 point polygon to a triangle. It''s like playing with modelview matrix and drawing a triangle, it will be always a triangle.
P.S.: Sorry for my english
i understand that part of it , but dont understand how i can distort textures to give a rippling affect on it.
You can use EMBM to do a per-pixel offset to your projected texture coordinates. Then you animate the EMBM texture to distort based on your waves.
right, so what is EMBM? - hope thats not a stupid question!
Thanks
Cheers,
Monster.
http://www.brownmonster.co.uk/
Thanks
Cheers,
Monster.
http://www.brownmonster.co.uk/
Heres what im trying to do - goto 20:21 Water lecture.
i have worked out the new texture coordinte but dont know how to apply them per vertex, he says something to do with appending the coords.
Ta Steve
i have worked out the new texture coordinte but dont know how to apply them per vertex, he says something to do with appending the coords.
Ta Steve
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement