Master modders i need your help

ok just put a ship in and this is the only error i get and it makes the game crash

Assert @ c:\Projects\P4\SinsDiplomacy\Release\CodeSource\Engine/Render/Mesh/Mesh.cpp(875)

DirectXAssert: [!FAILED(dxVerifyHR)]
Context: D3DXCreateMesh( m_Data.m_Triangles.Size(), m_Data.m_Vertices.Size(), D3DXMESH_MANAGED, decl, g_Core.d3d9->GetDevice(), &m_pD3DXMesh)
HR: (D3DERR_INVALIDCALL)-Invalid call

 

can you please tell me what  it is and how to fix it??

3,841 views 7 replies
Reply #1 Top

Do you get errors when you use convertxsi?

Reply #2 Top

nope

 

Reply #3 Top

yes i get duplicate vertices error

Reply #5 Top

nope still getting this error

Assert @ c:\Projects\P4\SinsDiplomacy\Release\CodeSource\Engine/Render/Mesh/Mesh.cpp(875)

DirectXAssert: [!FAILED(dxVerifyHR)]
Context: D3DXCreateMesh( m_Data.m_Triangles.Size(), m_Data.m_Vertices.Size(), D3DXMESH_MANAGED, decl, g_Core.d3d9->GetDevice(), &m_pD3DXMesh)
HR: (D3DERR_INVALIDCALL)-Invalid call

 

could it be the amount of tris?? it is only 3k above 50,000 and that hasnt stopped my model from showing up in game before

Reply #6 Top

Weld all of your vertices!. Sins doesnt like unwelded joints. The smoothing in sins is done through "tangents" (a proprietary XSI thing).

Make sure your textures are hooked up correctly.

Make sure there are no unused materials. XSI likes to create more than one material when importing a 3rd party mesh like from 3dsmax. Delete all materials BUT the ones you are actually using (with textures hooked).

Freeze your objects often. freeze the mesh as well. it will save a ton of headache.

When you export to dotxsi make sure that NOTHING is selected on the mesh. otherwise you will get a guaranteed error when you import.

Reply #7 Top

:) omg i cant believe i didnt do that......its a model i downloaded so i figured the guy would have welded all the points