Sign in to follow this  

Specific Model Format

This topic is 1971 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

Hello again, it's been a while since I've posted. I was originally programming in java but over the course of these months I've been studying more C and just a bit of C++. I would think I'm ready for graphics with games now. I've been wondering what is the preferred model format for beginners? And texture format? I would assume .bmp would be the easier choice for textures. But yes:

-Direct X: What model? .X? .MD2-3?
-Texture: .DDS? .BMP?

Any advice/help/suggestions/tutorials would be appreciated. Thanks!

Share this post


Link to post
Share on other sites
I think .obj format would be suitable, it's very easy to import and has exporters available for it in almost all the applications.

In DirectX9 you can load .X using the D3DXLoadMeshFromX
[url="http://msdn.microsoft.com/en-us/library/windows/desktop/bb172890%28v=vs.85%29.aspx"]http://msdn.microsoft.com/en-us/library/windows/desktop/bb172890%28v=vs.85%29.aspx[/url]
DirectX10 and 11 do not provide this.

You can also use the AssImp library to import your assets.
[url="http://assimp.sourceforge.net/"]http://assimp.sourceforge.net[/url]

Share this post


Link to post
Share on other sites
[quote name='6677' timestamp='1342820607' post='4961477']
Textures are usually DDS or PNG. Bitmap and jpeg dont have transparency. PNG is slightly more resource intensive than DDS but easier to work with and for a beginners game will make little to no difference.[/quote]

It may not be all too important right now, but do keep in mind for future reference that there's quite a difference between what a DDS and a PNG file can contain. A PNG file is a PNG-compressed bitmap [i]image[/i] format, while DDS is a [i]texture[/i] format with support for a wide range of compression and color formats (including compressed formats which can be uploaded to the GPU directly), multi-dimensional textures, cube maps, inclusion of additional texture data like mipmaps, and more.

Right now I'd agree to go for PNG for simplicity, but in the end it might be worth your while to take a look at DDS

Share this post


Link to post
Share on other sites
[quote name='R1cochet' timestamp='1342943157' post='4961883']
I think .obj format would be suitable, it's very easy to import and has exporters available for it in almost all the applications.

In DirectX9 you can load .X using the D3DXLoadMeshFromX
[url="http://msdn.microsoft.com/en-us/library/windows/desktop/bb172890%28v=vs.85%29.aspx"]http://msdn.microsof...0(v=vs.85).aspx[/url]
DirectX10 and 11 do not provide this.

You can also use the AssImp library to import your assets.
[url="http://assimp.sourceforge.net/"]http://assimp.sourceforge.net[/url]
[/quote]
I like .X and .obj. Hmm I may end up going with .X though. I will return here if I need any help thanks again.

Share this post


Link to post
Share on other sites

This topic is 1971 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.

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