想模拟一个有三维透视效果的房间地面,用了以下代码
auto productLayer = Layer::create();
productLayer->setRotation3D(Vertex3F(-80, 0, 0));
this->addChild(productLayer);
for (size_t i = 0; i < 25; i++)
{
for (size_t j = 0; j < 25; j++)
{
auto product = Sprite::create("product.jpg");
product->setPosition(Point(i * 81 + 40, j * 81 + 40));
productLayer->addChild(product);
}
}
```
运行效果如图
但是加了Z轴旋转之后,边缘的子Sprite就显示不了,而不是裁剪掉
productLayer->setRotation3D(Vertex3F(-80, 0, 10));
```
另外这种方式应该是设置不了透视的视角的,请问应该用什么方式实现,用2.0、3.0、OpenGL都可以

