I'm not sure about the implementation of Cocos3D, but you can get the name node through the CPVRTModelPOD class, which imgtec provides with its SDK.
CPVRTModelPOD model; model.ReadFromFile("path/to/model"); for(int i=0; i<model.nNumMeshNode; i++) { SPODNode *node = &model.pNode[i]; int mesh_idx = node->nIdx; printf("%d (%d): %s\n", i, mesh_idx, node->pszName); }
All nodes (grid, lights, camera, etc.) are all together in this pNode list, but the grid nodes will be grouped at the beginning.
I have not looked at Cocos3D, but I assume that they are using the code that imgtec distributes from here .
source share