Hello.
Please tell me the difference between “Mesh” and “MeshNode” and “Node”?
For example, the output of the following code is
1
1
25.
What does this mean?
CPVRTModelPOD m_Scene;<br />
<br />
....<br />
<br />
fprintf(stderr, "numMesh = %d n", (int)m_Scene.nNumMesh);<br />
fprintf(stderr, "numMeshNode = %d n", (int)m_Scene.nNumMeshNode);<br />
fprintf(stderr, "numNode = %d n", (int)m_Scene.nNumNode);
dgu
June 30, 2013, 9:54am
2
Hello
A scene is composed by a set of node and each node is composed by a set of mesh
Mesh can be seen a a geometry container , the meshes data of the objects.
to iterate inside a pod you will do someting like this probably
for (unsigned int i = 0; i < model.nNumMeshNode; ++i) {
SPODNode& node = model.pNode;
SPODMesh* pMesh = &model->pMesh[Node->nIdx];
…etc etc
But let s not forget the excellent documentation describing the pod architecture.
Kind regards,
david
dgu
June 30, 2013, 9:57am
3
what i like as well it s the fact you can store custom data (char *) inside a node or a scene, that enable the storage of metadata…or any kind of binding… anyway quite usefull.
the downside is that the export tools in the of channel for material is not clear at all…i hope it will be improved,
regards
david