What Ogre version are you using?
In my Ogre version it does not even compile, so I had to adjust it a bit (removing the first 5, since it made no sense to be there):
Code: Select all
Ogre::Plane tmpPlane(Vector3::UNIT_Y, Vector3::ZERO);
MeshPtr asd = MeshManager::getSingleton().createCurvedPlane(
"cilindre", RGN_DEFAULT,
tmpPlane,
1000, 1000, 0, 12, 12,
true,
1, 5, 5,
Vector3::UNIT_Z);
My guess would be that your compiler just lets it compile anyway and that makes it create it extremely wrong.
From https://github.com/OGRECave/ogre/blob/m ... hManager.h:
Code: Select all
MeshPtr createCurvedPlane(
const String& name, const String& groupName, const Plane& plane,
Real width, Real height, Real bow = 0.5f,
int xsegments = 1, int ysegments = 1,
bool normals = false, unsigned short numTexCoordSets = 1,
Real uTile = 1.0f, Real vTile = 1.0f, const Vector3& upVector = Vector3::UNIT_Y,
HardwareBuffer::Usage vertexBufferUsage = HBU_GPU_ONLY,
HardwareBuffer::Usage indexBufferUsage = HBU_GPU_ONLY,
bool vertexShadowBuffer = false, bool indexShadowBuffer = false);
It shows quite clearly that you are inputting the variables incorrectly, but I have no idea why you are not getting a compile error.