Sign in to follow this  

Switching y and z in a model - textures broken

This topic is 2657 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

For use in my application, I'm exporting md3 models from blender. Blender defines the z Axis as "up". In my application, I have the y axis as "up". To correct this, I thought I could just swap the y and z coordinates of the exported model when importing it, as in:

vertex[i] = vec3(vertex[i].x,vertex[i].z,vertex[i].y)

Then, however, my textures are somehow "flipped". I suppose I have to transform the texture coordinates as well, but I'm not sure.

Any suggestions?

Share this post


Link to post
Share on other sites

This topic is 2657 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this