Cocos 3D POD file format for iphone development

I am new to the development of 3d coconuts.

I used cocos-2d for iphone and ipad, in which we have to use the .png file for the user interface.
But Cocos-3d used the .POD file format in this programming. I do not know about the POD file format and how to access this node name from the .POD file?

+4
source share
3 answers

You need to use some kind of 3D software such as Blender (Open Source), Maya or 3D Max to make some 3D objects and export them as a DAE file, and use Collada2POD to convert this file to a POD file format. You are now ready to use Cocos3D. If it’s difficult for you, ask another question in more detail!

I hope it will be useful for you!

+14
source

Check out this link from the cocos3D official website.

http://brenwill.com/2011/cocos3d-importing-converting-collada-to-pod/

+3
source

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 .

+2
source

Source: https://habr.com/ru/post/1343299/


All Articles