Max Polycount for Collada Models
by Aaron Heal · in Torque 3D Professional · 10/15/2009 (11:58 pm) · 6 replies
I was just wondering what is the max number of polys a collada file can have before T3D dies because i have this 23k+ model I want to use as a level but Torque crashes before it finishes importing
About the author
#2
10/16/2009 (3:31 am)
I downloaded it from google 3D warehouse so not sure how it was created
#3
Your model is probably a single collapsed mesh with a single material, so T3D is trying to generate a single vertex buffer for it and failing. Open it in a 3D package and break it into sub-meshes (no, you don't need to export multiple files - just break it into multiple selectable parts inside the 3D modeling app).
10/16/2009 (9:13 am)
There isn't a limit in a collada or DTS file. There is a limit for each mesh inside the collada/dts, because T3D uses 16-bit indices when building the vertex buffer for each mesh, which means 65K vertices. The actual number is lower, since different UV coords, normals and colors at the same vertex will generate duplicate vertex entries.Your model is probably a single collapsed mesh with a single material, so T3D is trying to generate a single vertex buffer for it and failing. Open it in a 3D package and break it into sub-meshes (no, you don't need to export multiple files - just break it into multiple selectable parts inside the 3D modeling app).
#4
True. However, the collada loader automatically splits meshes into 65k vert chunks if required, so there is theoretically no problem loaded models with extremely large polycounts (though you might not get very good performance).
@Aaron: Could you post the link to the model so I can try it for myself?
10/19/2009 (2:02 am)
Quote:There isn't a limit in a collada or DTS file. There is a limit for each mesh inside the collada/dts, because T3D uses 16-bit indices
True. However, the collada loader automatically splits meshes into 65k vert chunks if required, so there is theoretically no problem loaded models with extremely large polycounts (though you might not get very good performance).
@Aaron: Could you post the link to the model so I can try it for myself?
#5
http://sketchup.google.com/3dwarehouse/details?mid=989e43267955602ccbdbdb5103f1f6f3&prevstart=0
10/19/2009 (10:43 am)
sure if it's allowedhttp://sketchup.google.com/3dwarehouse/details?mid=989e43267955602ccbdbdb5103f1f6f3&prevstart=0
Associate OmegaDog