loading two mesh files simultaneously

Started by
1 comment, last by calidev234 18 years, 10 months ago
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,
Advertisement
If all your meshes are all correctly proportioned with eachother you can use D3DXConcatenateMeshes()

Ace
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,

This topic is closed to new replies.

Advertisement