Archived

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

Halo Vortex

3Dmax into Directx

Recommended Posts

I''m trying to implement mesh-loading from max into my engine, but the problem is - Max uses a lot of matrixes. I upload my mesh(ASE ascii format) and then use matrix specified in the object''s body), but camera object also comes with a standart 4x4 matrix. And if I just use last row(pos), then I get a wrong view. Where should I apply this changes? Should I transform UP-vector of D3DXLookAt matrix? And How?

Share this post


Link to post
Share on other sites
Ah, so you''re trying to load entire scenes, not just meshes? That will be more difficult, but it shouldn''t be that hard. It all depends on how complex the 3DSMax scene file is.
The 4x4 matrix for the camera is probably a transformation matrix to move it to the correct position. Perhaps if you use that 4x4 matrix as the transformation matrix for the camera in DirectX. I''m not sure how this cold be done (don''t have docs or code with me right now), but possibly by multiplying in a lookat matrix or something.


--------------------

Never eat anything bigger than your own head.

Share this post


Link to post
Share on other sites