Jump to content
  • Advertisement
Sign in to follow this  
riruilo

It is possible to change clockwise polygon direction in MAX?

This topic is 3635 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 friends! I have a problem, after exporting a model from max to opengl I realised some parts are "reversed" and I guess it is a problem about vertex direction, instead of using counter clockwise direction, it is using clockwise direction. I also tried flipping normals, but no solution. What is going on? How can I solve it? Without backface culling, which obviusly we don't see any problem. Image Hosted by ImageShack.us With back face culling, note that the others objects are fine. Image Hosted by ImageShack.us Any idea? Thanks a lot

Share this post


Link to post
Share on other sites
Advertisement
If the scaling on the object's node (the thing max uses to put an object in a scene) is negative, you'll get this effect.

To correct it you either need to:

1) detect the negative scaling in your exporter code, and use this to change the winding order of your polygon faces (if you were exporting v1,v2,v3 you should export v2, v1, v3)

or

2) correct the scaling in Max using the Reset Transform tool, and then re-export.

Share this post


Link to post
Share on other sites
Quote:
Original post by digitec devil
If the scaling on the object's node (the thing max uses to put an object in a scene) is negative, you'll get this effect.

To correct it you either need to:

1) detect the negative scaling in your exporter code, and use this to change the winding order of your polygon faces (if you were exporting v1,v2,v3 you should export v2, v1, v3)

or

2) correct the scaling in Max using the Reset Transform tool, and then re-export.


Thanks, you are right, my opengl code has negative scale.

How can I use "Reset Transform tool" or where is it? I'm a programmer :)

Thanks.

Share this post


Link to post
Share on other sites
By default it's only in the tools tab. On the far right hand of the screen there should be a tab with a hammer icon (next to tab with a monitor icon). If you click this tab you should just see a bunch of buttons, one of which says "Reset XForm". Click this and you'll get a rollout with a "Reset Selected" button. Select the objects you want to reset the transform of, and then click "Reset Selected."

Share this post


Link to post
Share on other sites
Quote:
Original post by digitec devil
By default it's only in the tools tab. On the far right hand of the screen there should be a tab with a hammer icon (next to tab with a monitor icon). If you click this tab you should just see a bunch of buttons, one of which says "Reset XForm". Click this and you'll get a rollout with a "Reset Selected" button. Select the objects you want to reset the transform of, and then click "Reset Selected."


Perfect! Everything solved. Thanks a lot for your time.

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!