Jump to content

  • Log In with Google      Sign In   
  • Create Account

how to load a 3D model with DirectX11?


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
4 replies to this topic

#1 DFVSQY   Members   -  Reputation: 104

Like
0Likes
Like

Posted 29 April 2014 - 01:32 AM

I want to load a 3D model with DirectX11,but I don't know what's the format of 3d models that I can use and how to use it? Please give me a help.

I am a Chinese, Please forgive me for the poor English.



Sponsor:

#2 newtechnology   Members   -  Reputation: 747

Like
3Likes
Like

Posted 29 April 2014 - 01:43 AM

Use Assimp SDK to load models : http://assimp.sourceforge.net/



#3 Scott Bruno   Members   -  Reputation: 198

Like
2Likes
Like

Posted 29 April 2014 - 02:03 PM

Use Assimp SDK to load models : http://assimp.sourceforge.net/

 

This is probably your best bet given the question. It's a ready-made solution. But just so you know, it's up to you to define the vertex format, and how you load, store, and represent models and materials. The format is whatever you say it is.



#4 halcyons   Members   -  Reputation: 160

Like
1Likes
Like

Posted 29 April 2014 - 09:32 PM

This may be helpful: https://directxtk.codeplex.com/wikipage?title=Model&referringTitle=DirectXTK



#5 x5reunion   Members   -  Reputation: 123

Like
0Likes
Like

Posted 02 May 2014 - 04:08 AM

DirectX 11 dont have 3dmodel's loader. In directX 10 only DXUT have 3d models loader, but DXUT its for demo ( and he can load only sdkmesh* you need convert it ). I dont know DXUT in directX 11  have his models loader or no.

 

For directX 11 you need write you parser. You can read about  it  and can take source code here.

 

http://www.braynzarsoft.net/index.php?p=D3D11OBJMODEL

 

Its parser for obj models, they are very simple, but for models like grass, trees etc its ok.

 

 

p.s

 

If DXUT in directX 11 can download models you can use  Meshconvert.exe.

 

 ...\DSDK\Utilities\bin\x86  

 

Meshconvert.exe convert from X* format to sdkmesh* format. For 3DS Max  you need download plugin   here http://www.cgdev.net/help.php he  convert models from 3ds max to X* format.

 

meshconvert /o NameModel.sdkmesh NameModel.x


Edited by x5reunion, 02 May 2014 - 03:00 PM.





Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS