导入一个美术给的模型运行动画 边缘有特别明显的白色块
test.zip (445.5 KB)
cocos2d::Scene* scene = cocos2d::Scene::create();
auto sprite3D = Sprite3D::create("test3dmodel.c3b");
sprite3D->setScale(0.6f);
sprite3D->setRotation3D(Vec3(25.f, 90.0f, 0.0f));
sprite3D->setPosition(Vec2(s.width * 2.5f / 5.f, s.height / 2.f));
auto animation = Animation3D::create("test3dmodel.c3b");
auto animate = Animate3D::create(animation);
sprite3D->runAction(RepeatForever::create(animate));
sprite3D->setForce2DQueue(true);
scene->addChild(sprite3D);
一下是日志信息
cocos2d: Hardware S3TC decoder not present. Using software decoder
cocos2d: Hardware S3TC decoder not present. Using software decoder
cocos2d: Hardware S3TC decoder not present. Using software decoder
cocos2d: Hardware S3TC decoder not present. Using software decoder
cocos2d: Hardware S3TC decoder not present. Using software decoder
cocos2d: Hardware S3TC decoder not present. Using software decoder
cocos2d: Hardware S3TC decoder not present. Using software decoder
cocos2d: Hardware S3TC decoder not present. Using software decoder
cocos2d: Hardware S3TC decoder not present. Using software decoder
cocos2d: Hardware S3TC decoder not present. Using software decoder
cocos2d: Hardware S3TC decoder not present. Using software decoder
cocos2d: Texture2D. WARNING. Mipmap level 1 is not squared. Texture won’t render correctly. width=512 != height=256
cocos2d: Texture2D. WARNING. Mipmap level 2 is not squared. Texture won’t render correctly. width=256 != height=128
cocos2d: Texture2D. WARNING. Mipmap level 3 is not squared. Texture won’t render correctly. width=128 != height=64
cocos2d: Texture2D. WARNING. Mipmap level 4 is not squared. Texture won’t render correctly. width=64 != height=32
cocos2d: Texture2D. WARNING. Mipmap level 5 is not squared. Texture won’t render correctly. width=32 != height=16
cocos2d: Texture2D. WARNING. Mipmap level 6 is not squared. Texture won’t render correctly. width=16 != height=8
cocos2d: Texture2D. WARNING. Mipmap level 7 is not squared. Texture won’t render correctly. width=8 != height=4
cocos2d: Texture2D. WARNING. Mipmap level 8 is not squared. Texture won’t render correctly. width=4 != height=2
cocos2d: Texture2D. WARNING. Mipmap level 9 is not squared. Texture won’t render correctly. width=2 != height=1
cocos2d: warning: Attribute not found: a_normal
cocos2d: warning: Attribute not found: a_color
cocos2d: warning: Attribute not found: a_normal
cocos2d: warning: Attribute not found: a_color