• Advertisement
Sign in to follow this  

Incorporating 2 types of models

This topic is 886 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 try to mix 2 types of models in my game engine.

One type is .X, the other one is .dae

The dae is a little bit strange.

When I wrote a renderer for it, I had to invert the up-vector for the view matrix

D3DXVECTOR3(0,-1,0);

But for the x files,

The up is usually D3DXVECTOR3(0,1,0);

How do I integrate 2 sets of assets into one usable set of assets?

Should I totally forget about the .x format, and concentrate on the .dae format?

And let the camera up vector be inverted as is?

 

Update:

Funny

When I set the camera pos of D3DXVECTOR3(0,5,5) and the target of D3DXVECTOR(0,0,0) I had to invert the camera

When I set the camera pos of D3DXVECTOR3(0,-20,5) and the target of D3DXVECTOR(0,0,0) I didn't have to.

Thanks

Jack

Edited by lucky6969b

Share this post


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

  • Advertisement