cocos2d-x icon indicating copy to clipboard operation
cocos2d-x copied to clipboard

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

Open cchuicchui opened this issue 3 years ago • 0 comments

  • cocos2d-x version: v4
  • devices test on: iPhone SE3 simulator iOS 15.4
  • developing environments
    • NDK version: NIL
    • Xcode version: 13.3.1
    • VS version:
    • browser type and version:

Steps to Reproduce:

  1. In bool Physics3DCollisionCallbackDemo::init(),

Change std::vector<Vec3> trianglesList = Bundle3D::getTrianglesList("Sprite3DTest/boss.c3b"); to std::vector<Vec3> 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

cchuicchui avatar Sep 22 '22 04:09 cchuicchui