About displaying 3d models
Hi all,
I''m trying to use 3dsMax5 to create some 3D models and use a VC++ & directx program to display it. I''ve draw a plane in 3ds, it could be displayed in my program. But when I''ve added a small cube on the plane, only the cube can be displayed, the plane disappeared. Why?
I exported the models into a .3ds file and then converted it into .x file by conv3ds.exe.
The plane is 30000x30000 units in 3ds at (0,0,0) and the cube is 3000x3000x3000 at (0, 5000, 0). If only a plane is exported, the whole plane could be seen. Help~
The program was from "Programming roleplaying games with directX" by Jim Adams, chapter12, nodeTree.
Thanks
~nobird
Could be a lot of things.
I'd start by check your clipping planes in D3DXMatrixLookAtLH. 3000 units is really big in a gaming environment and you've probably just got your near and far clipping planes inside the box.
You might also want to compile the .X exporter that comes with the SDK or try the Panda DirectX exporter from http://www.pandasoft.demon.co.uk/directxmax4.htm. Both are great and won't need to mess with Conv3DS anymore.
[edited by - JimboC on September 1, 2003 11:24:49 AM]
I'd start by check your clipping planes in D3DXMatrixLookAtLH. 3000 units is really big in a gaming environment and you've probably just got your near and far clipping planes inside the box.
You might also want to compile the .X exporter that comes with the SDK or try the Panda DirectX exporter from http://www.pandasoft.demon.co.uk/directxmax4.htm. Both are great and won't need to mess with Conv3DS anymore.
[edited by - JimboC on September 1, 2003 11:24:49 AM]
Thanks. I found where the problem is.
The program can only support single mesh.
I should use "conv3ds -m -t abc.3ds" instead of "conv3ds-t abc.3ds"
I did try out the panda exporter, but when I use the directx 9 sample code/mesh viewer to load the mesh file, no texture could be loaded, why?
...So I used conv3ds.exe.
The program can only support single mesh.
I should use "conv3ds -m -t abc.3ds" instead of "conv3ds-t abc.3ds"
I did try out the panda exporter, but when I use the directx 9 sample code/mesh viewer to load the mesh file, no texture could be loaded, why?
...So I used conv3ds.exe.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement