Jump to content
  • Advertisement
Sign in to follow this  
immuner

Texture Matrix

This topic is 3642 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
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

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

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!