What’s the difference between “Mesh” and “MeshNode” and “Node”?

This topic contains 2 replies, has 2 voices, and was last updated by  dgu 4 years, 3 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #31320

    comatch
    Member

    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;

    ....

    fprintf(stderr, "numMesh = %d n", (int)m_Scene.nNumMesh);
    fprintf(stderr, "numMeshNode = %d n", (int)m_Scene.nNumMeshNode);
    fprintf(stderr, "numNode = %d n", (int)m_Scene.nNumNode);
    #37553

    dgu
    Member

    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

    #37554

    dgu
    Member

    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

Viewing 3 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic.