cocos2d / cocos2d-x

Cocos2d-x is a suite of open-source, cross-platform, game-development tools utilized by millions of developers across the globe. Its core has evolved to serve as the foundation for Cocos Creator 1.x & 2.x.
https://www.cocos.com/en/cocos2d-x
18.02k stars 7.05k forks source link

Physics3D Test in cpp-tests fails if boss.c3b is replaced by boss.obj #20749

Open cchuicchui opened 1 year ago

cchuicchui commented 1 year ago

Steps to Reproduce:

  1. In bool Physics3DCollisionCallbackDemo::init(),

Change std::vector trianglesList = Bundle3D::getTrianglesList("Sprite3DTest/boss.c3b"); to std::vector trianglesList = Bundle3D::getTrianglesList("Sprite3DTest/boss.obj");

Change auto sprite = Sprite3D::create("Sprite3DTest/boss.c3b"); to auto sprite = Sprite3D::create("Sprite3DTest/boss.obj", "Sprite3D/boss.png");

  1. Compile cpp-tests on iPhone simulator then run

  2. Goto Physics3D Test (sub-test 4) then throw an item by clicking the screen

  3. You will see the model image (in red color) distorted

  4. Two images (before image distorted and after image distorted) are uploaded

    Screenshot 2022-09-22 at 12 53 21 PM Screenshot 2022-09-22 at 12 53 32 PM