Advertisement Jump to content


This topic is now archived and is closed to further replies.


Multiple Skinned Mesh in one scene

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

If i were to use the Skinned Mesh sample in DXSDK, what must i do to enable it to load multiple skinned meshes... should i just copy the existing code and name it as code02 //for the 2nd code02 // for the 3rd and so on? like what they did in the vertex shader?

Share this post

Link to post
Share on other sites
As a general rule you should not have redundant code (like it seems you''re suggesting) but instead use loops / function calls to have the same code process multiple objects, no?

Share this post

Link to post
Share on other sites

//I edited this code by placing a loadstring(string01) function instead of the "tiny.x"

HRESULT CMyD3DApplication::InitDeviceObjects()
char *string01 = 0;
// Restore the fonts
m_pFont->InitDeviceObjects( m_pd3dDevice );
// if no filename, use the default
if (m_szPath[0] == ''\0'')
DXUtil_FindMediaFile( m_szPath, _T(loadstring(string01)));
if( m_pdeHead != NULL)
m_ArcBall.SetRadius( m_pdeHead->fRadius );
m_ArcBall.SetRightHanded( TRUE );
return S_OK;
//this loadstring(string01) calls the function below
char *CMyD3DApplication::loadstring(char *stringx)
teststring = "square01.x";
return teststring;

// this is not done yet... coz my problem starts here
What I would like to do, is to connect another x file... example "square02.x" after the "square01.x" has finish animating... what is the variable or something that would tell me that the "square01.x" has finished playing so that i can load the "square02.x" after it.

thanks for helping me out

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using, you agree to our community Guidelines, Terms of Use, and Privacy Policy. is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!