Marcos Dell Antonio de Souza

Hi. Using DirectX, how can I load a WaveFront model

Or I can work just with the X model (I don't think so..)

Tks.


Re: Game Technologies: DirectX 101 How to load a WaveFront model?

Jack Hoxley

There are no WaveFront loaders included out-of-the-box in the DirectX SDK. Only .X files are supported by the API.

Whilst .X is only really important in the developer world there are lots of conversion tools that might well simplify things for you; failing that you'll have to find a 3rd party loader or write your own WaveFront file parser.

hth
Jack






Re: Game Technologies: DirectX 101 How to load a WaveFront model?

Marcos Dell Antonio de Souza

Ok, but i'm using the Mobile Direct3D Managed.

As I know, this "version" does not support the .X format. So, instead of using the md3dm format that came with the samples, I'm thinking to write my own loader.

Could you give me some tips For example, probably my WaveFront model will have a lot of vertices... what kind of structure should I use to keep this data in memory What class should I take a look

Can you give me a simple example Of course man, i'm studying a lot :-)

Thanks ;)




Re: Game Technologies: DirectX 101 How to load a WaveFront model?

Jack Hoxley

I've not had a chance to use Mobile D3D - although I might be getting my hands on some hardware in the near future

Wotsit is a good repository of file-format specifications, and I'm sure your preferred search engine will pull up similar information. Until you understand the format of the data you're trying to load its difficult to suggest a data structure to use in your application. Ideally a 1:1 mapping would be nice, but given the API as well as any other mobile restrictions you may have to convert or put limitations on the incoming data.

I've never used the WaveFront file format so I can't give you any examples.

hth
Jack






Re: Game Technologies: DirectX 101 How to load a WaveFront model?

Marcos Dell Antonio

Thanks man.

Wotsit seems to be a very good site. But just one more question (for this moment :D): do you think that I should load another kind of model, instead of WaveFront

I'm using this model because it seems to be very commom to developers. Is it true

Tks ;)