Hello!
I want to parse the loaded resource, but I don't know how
The scene file is:
Code:
<Model name="cube" geometry="models/cube/cube.geo">
<Mesh name="cube" material="models/cube/cube.material.xml" batchStart="0" batchCount="36" vertRStart="0" vertREnd="19" />
</Model>
The source code is:
Code:
H3DRes unitRes = h3dAddResource( H3DResTypes::SceneGraph, filepath, 0 );
h3dutLoadResourcesFromDisk( _contentDir );
The resource is loaded successfully. The code below is always returns with zero:
Code:
h3dGetResElemCount(unitRes,H3DResTypes::SceneGraph);
h3dGetResElemCount(unitRes,H3DNodeTypes::Mesh);
h3dGetResElemCount(unitRes,H3DNodeTypes::Model);
There is no scenegraph, no mesh, and no model in the resource?
Then how can I parse it?