Paras_wolf
04-21-2011, 02:05 AM
Hi,
I want to create a texture at run time, such that the RGBA values of pixels of my texture depends on the surface normals of a triangular mesh.
I already have a triangular mesh, and its moving like a sine wave. I want to texture it based on its orientation in space.
I have been through some tutorials but my prob;em is that, I am unable to decide and dont have much understanding about what texture parameters should I pass to make this texture. (in function glTexParameterX() and TexEnvX ())
Can you please direct me to related tutorial to give some sudo code to start with.
I want to create a texture at run time, such that the RGBA values of pixels of my texture depends on the surface normals of a triangular mesh.
I already have a triangular mesh, and its moving like a sine wave. I want to texture it based on its orientation in space.
I have been through some tutorials but my prob;em is that, I am unable to decide and dont have much understanding about what texture parameters should I pass to make this texture. (in function glTexParameterX() and TexEnvX ())
Can you please direct me to related tutorial to give some sudo code to start with.