ljenjoylife
14-10-2009 08:05:20
as in your 1.5.5blog
create the cloth:
how can i get the xcl file? is it created by the flour?
and the four0.4 don`t support .mesh file, will the nxogre support create cloth from .mesh file manually?
create the cloth:
ClothDescription desc;
desc.mMesh = NxOgre::MeshManager::getSingleton()->load("media:test.xcl", "testy");
desc.mGlobalPose.identity();
desc.mGlobalPose.set(0, 10, 0);
desc.mFlags |= Enums::ClothFlags_DebugVisualisation;
desc.mFlags |= Enums::ClothFlags_Hardware;
Cloth* cloth = mRenderSystem->createCloth(desc, "WelshFlag");
cloth->attachVertexToGlobalPosition(0, Vec3(1, 10, 0));
cloth->attachVertexToGlobalPosition(16, Vec3(4, 10, 0));
cloth->attachVertexToGlobalPosition(32, Vec3(8, 10, 0));
how can i get the xcl file? is it created by the flour?
and the four0.4 don`t support .mesh file, will the nxogre support create cloth from .mesh file manually?