Sign in to follow this  
ankhd

What does everyone use to load there mesh object(do I need to reinvent the Wheel)

Recommended Posts

Hi all, looks like there is not much in the way of mesh loading utils for the X file format. I'm new to all this but it looks like this should have a lot of info on this subject but I can't find any that differ from the ones I have. That being said the one I have, seem to work on some mesh and others it will crash, but I can load them all with the MView app thats with the directX Extra download package. So the question is what does everyone in the industy do. (1):do they create there own based on what art packages their using if so then where do there get the info on whats in a saved file from there 3d Software EG. like how do you know whats in a 3DS file and how do you read this.

Share this post


Link to post
Share on other sites
Quote:
Original post by ankhd
(1):do they create there own based on what art packages their using
if so then where do there get the info on whats in a saved file from there
3d Software EG. like how do you know whats in a 3DS file and how do you read this.

There are lots of things - docs from the developers (ie from Discreet for 3ds), other reference sites, file format sites, or sample code. Going with the 3ds example, there are tons of loaders floating around out there (including many here on GameDev).

As for .X, I think that most people just use D3DX. If you are doing more advanced things with animation or templates, then you might need to use your own.

Share this post


Link to post
Share on other sites
First thing first,

(1) You create your mesh in some 3D modelling package. I use 3Ds Max.
(2) You export your mesh to a .X file, using a package like PandaSoft's .X exporter. Read the first Thread in this forum!
(3) Import your .x file using D3DXLoadMeshFromFile (native) or LoadMeshFromFile (managed). Not that trivial though, look how they do it in the Directx Samples, Loading a mesh.

Hope this helps, if this was completely useless, sorry!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this