Jump to content
  • Advertisement
Sign in to follow this  

Texture Matrix

This topic is 3813 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, i am trying to rotate my 3d volume. The way i've thought so far is rendering to a sprite the first slice of the volume and rotate my uvw's. Rotation along z axis is fine, but rotation along x and y is not by means of seeing the texture stretching and/or disappearing instead of "moving" around it. The code is: glMatrixMode(GL_TEXTURE); glLoadIdentity(); glTranslatef(0.5, 0.5, 0.5); glRotatef(angle, 1, 0, 0); glTranslatef(-0.5, -0.5, -0.5); glMatrixMode(GL_MODELVIEW); I assume there is an issue with the translation on the z axis, but i have played with all the values from 0 to 1 and the result is always more or less the same. Is there something i'm doing wrong?

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!