Game Development Community

Multiple Shapes

by Michael Fitzsimmons · in Artist Corner · 08/03/2009 (6:31 am) · 1 replies

I am having a problem in Maya 2008 with some Dts exports. I have no idea why but when I export 2 of the same shapes the 2nd shape doesnt export. For example, if I create 2 spheres then Triangulate > bounding box > Embed both shapes > register level of details > export, the dts will export fine but when I bring it into showtool, only one of spheres appears. Now when I do the same thing for lets say a sphere and a cube it exports fine and I can see it in showtool just fine. Any Ideas? Thank you in advance.

#1
08/09/2009 (10:43 am)
The exporter considers the number at the of the object name to be important. This is the detail level in which the shape will be displayed. When you do a sphere and a cube, you get "pSphere1" and "pCube1" -- both ending in "1" -- whereas when you do two spheres, you get "pSphere1" and "pSphere2". You'll have to give your shapes names that end in the same number for them to end up in the same detail level. Secondly, you can't use the underscore character (_) to separate the number from your shape name -- the exporter considers this to be "-" (for negative numbers), and this is only supposed to be for collision shapes.

So, if you really don't want to name your shapes anything in particular, or if you've got names where having numbers at the end really makes sense but you don't want to interfere with the detail levels, you can just add something like "a1" on the end, e.g. "pSphere1a1" and "pSphere2a1" for detail level 1.