Jump to content
  • Advertisement
Sign in to follow this  

loading two mesh files simultaneously

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

loading two mesh files simultaneously I would like to load two mesh files simultaneously. For example, let say I make a mesh file of a room, and I purchase a 3rd party mesh file of a real looking chair. I would like to incorporate this 3rd party mesh file into my mesh file. Would I have to scale the 3rd party mesh file to make it the correct size in the world I’ve created. Also, can I offset it from center, so I could put it in the corner of the room for example. Is any of this possible; or am I just talking gibberish? Thank you,

Share this post

Link to post
Share on other sites
Does anybody know how to use this: D3DXConcatenateMeshes()?

One of the parameters is:

LPD3DXMESH *ppMeshes

but, I would like to do something like:

LPD3DXMESH *ppMeshes = new LPD3DXMESH[2];
ppMeshes[0] = "MeshFileOne.x";
ppMeshes[1] = "MeshFiletwo.x";

but I get the error:

error C2440: '=' : cannot convert from 'unsigned short [12]' to 'LPD3DXMESH'

Also, if anybody does know; what about the other parameters for this function?

Thank you,

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!