deshan
23-12-2009 08:18:07
Hi
I have set of trees on terrain which i placing them with random scale value. I want to rescale tree.nxs accordingly.
Is that possible to use meshdata to rescale the NxOgre::Mesh?
If scaling is not random or few number of trees I can use meshmagic and flour.
I have set of trees on terrain which i placing them with random scale value. I want to rescale tree.nxs accordingly.
Is that possible to use meshdata to rescale the NxOgre::Mesh?
NxOgre::Mesh* treeMeshNxs = NxOgre::MeshManager::getSingleton()->load("media:artilaryGun.nxs");
// scaling goes here // treeMeshNxs->getMeshData()->?
NxOgre::TriangleGeometry* treeGeometry = new NxOgre::TriangleGeometry(treeMeshNxs);
mScene->createSceneGeometry(treeGeometry , NxOgre::Matrix44(NxOgre::Vec3(*iterator)));
If scaling is not random or few number of trees I can use meshmagic and flour.