Horde3D

Next-Generation Graphics Engine
It is currently 22.11.2024, 12:15

All times are UTC + 1 hour




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: 16.05.2008, 17:29 
Offline

Joined: 15.05.2008, 05:32
Posts: 46
Location: California
I have these shapes in my 3dsMax scene and when the Collada Converter is writing out the scene graph, in Converter::writeSGNode the following happens:

node->typeJoint is false
mesh->triGroups.size() is 0
node->children.size() is 0

Code enters the first if
if( !node->typeJoint )

skips the for-loop entirely
for( unsigned int i = 0; i < mesh->triGroups.size(); ++i )

enters the next if
if( node->children.size() == 0 )

and goes into the else clause of the next if
if( !node->typeJoint && ((Mesh *)node)->triGroups.size() > 1 )

and all it writes to the scene file is
outf << " />\n";

My .scene.xml file looks like this:
Code:
<Model name="city_03" geometry="city_03.geo">

 />
 />
 />
 />
 />
 />
   <Mesh name="_G___S__516" material="city_03/alley_build_04.material.xml" tx="3700" ty="0" tz="-2600" batchStart="0" batchCount="531" vertRStart="0" vertREnd="262">
      <Mesh name="_G___S__516" material="city_03/alley_build_03.material.xml" batchStart="531" batchCount="162" vertRStart="263" vertREnd="332" />
      <Mesh name="_G___S__516" material="city_03/build_06.material.xml" batchStart="693" batchCount="36" vertRStart="333" vertREnd="350" />
   </Mesh>

...

Something like this at the top of Converter::writeSGNode skips these nodes
Code:
   if( !node->typeJoint )
   {
      Mesh *mesh = (Mesh *)node;
      if( mesh->triGroups.size()==0 && node->children.size()==0 )
      {
         return;
      }
   }


Top
 Profile  
Reply with quote  
PostPosted: 09.07.2008, 08:08 
Offline
Tool Developer

Joined: 13.11.2007, 11:07
Posts: 1150
Location: Germany
Thanks for the investigation of this problem. Unfortunately I didn't read it before, otherwise this thread wouldn't be necessary.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group