Sign in to follow this  
calidev234

loading two mesh files simultaneously

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

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