mamairaja
19-10-2010 19:11:37
Could you please tell me is it a rectangle shape ogre mesh I need to make a cloth xcl with flour?
betajaen
19-10-2010 19:57:09
I'm not sure what you mean.
Do you mean does the shape have to be rectangles when using Cloth? No it doesn't, it can be any shape.
mamairaja
20-10-2010 04:56:33
Yes sir I means is it should be a rectangle?
When using flour what I am doing is.
3ds model -(3ds2mesh converter)-> ogremesh -(flour)-> nxs/xcl/etc...
you just told me that the model does not need to be a rectangle shape. OK the question is answered.
The reason why I asked is following cloth creating code breaks when attachVertexToGlobalPosition.
ClothDescription desc;
desc.mMesh = NxOgre::MeshManager::getSingleton()->load("media:baloon.xcl");
desc.mGlobalPose.identity();
desc.mGlobalPose.set(0, 10, 0);
desc.mFlags |= Enums::ClothFlags_DebugVisualisation;
desc.mFlags |= Enums::ClothFlags_Hardware;
Cloth* cloth = mRenderSystem->createCloth(desc);
cloth->attachVertexToGlobalPosition(0, Vec3(1, 10, 0)); //////// breaks here
could you please provide a hint? A shape problem?
betajaen
20-10-2010 08:30:41
It's BM so I don't know. Cloth works in Detritus I know that. What happens if you don't attach anything to the vertex? Does it show the balloon on the screen?
mamairaja
20-10-2010 19:13:40
No sir,
Nothing shows up.
This also breaks it.
cloth->setPosition(NxOgre::Vec3(200, 45, 200),0);
If BM does not support cloth. No problem I should leave it for my next project.