4

I am new in cocos 3d developing.

I have used cocos-2d for iphone and ipad, in which we have to used .png file for UI.
But in this Cocos-3d programming, .POD file format have been used. I don't know about POD file format and how to access that node name from .POD file?

2 Answers 2

14

You need to use some 3D software like Blender (Open Source), Maya or 3D Max to make some 3D objects and export it as DAE file format and by using Collada2POD translate this file to POD file format. Now you are ready to use Cocos3D. If it is complicated for you, ask another question in detail!

I hope it useful for you!

0
2

I'm not sure about the Cocos3D implementation, but you can get at the node name via the CPVRTModelPOD class imgtec provides with their 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 of the nodes (mesh, lights, camera, etc), are all together in that pNode list, but the mesh nodes will be grouped at the beginning.

I haven't looked into Cocos3D, but i'm assuming they use the code that imgtec distributes from here.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.