cocos2d-x wants to support 3d models. Then you can load 3d models in your game.
What format of 3d models do you want?
How to use 3d models? Like CCSprite?
What i think now are:
* supporting formats
I am not sure if it is needed. It is supported now, you can refer to Jame’s repo https://github.com/dumganhar/cocos2d-x/tree/3d-model.
Run HelloCpp demo.
It is text-based, we should have our own binary format.
* how to use it
// draw static 3d model MD2 *md2 = MD2::create("xxx.md2"); md2->setSkin("xxx.png"); CCSprite3D *sp = CCSprite3D::create(md2); sp->setPosition(x, y); addChild(sp); // animation CCAnimate3D *animate = CCAnimation3D(duration, start frame, end frame); sp->runAction(animate);
I am not sure if there should be a duration for 3d model animation, may be it should run action all the time until being stopped.