Advertisement Jump to content

Archived

This topic is now archived and is closed to further replies.

broncosoftcr

3DS to .x results in a flat model

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

I have a 3ds file that a friend made in 3dsmax which I am using conv3ds to converte it to a .X file. When I open the .x file in the mesh viewer it looks like the model has been flattened. He didn''t do anything different when creating this model then any of the others I''ve converted and they''ve all turned up fine. Does anyone have any ideas what might be the cause or solution to this? Thanks.

Share this post


Link to post
Share on other sites
Advertisement
You probably have to swap some of the components of each vertex. Since I don't have any experience w/ Direct3D's converter, I can't tell you whether this happens automatically.

Direct3D is a LHS and so is my engine. .3DS is not, however and to orient models correctly I must do the following before storing the vertex :

X' = X;
Y' = Z;
Z' = -Y; // Minus for LHS, Positive for RHS


Maybe this will point you in the right direction (stupid pun actually not intended...)

Share this post


Link to post
Share on other sites

  • 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!