Scale and rotate trianglemesh

joaopccosta

22-11-2010 15:15:17

the topic says it all...
any way to scale and rotate a triangle mesh? :\
I need it for some static walls...

betajaen

22-11-2010 15:21:57

You can rotate the SceneGeometry, but you need to re-cook the TriangleMeshes to be in different scales.

joaopccosta

22-11-2010 15:50:16

could you provide some example on how to cook it ? :S

I'm trying to do something like this
Ogre::SceneNode* wall = mSceneMgr->getRootSceneNode()->createChildSceneNode(Ogre::Vector3(0,0,0));
wall->attachObject(mSceneMgr->createEntity(name, "wall1.mesh"));
wall->setScale(20,20,20);
wall->yaw(Ogre::Degree(90));
wall->translate(20,0,20*i);
wall->setVisible(false);

mesh = mMeshManager->load("ogre://General/wall1.nxs","barrier");
mScene->createSceneGeometry(NxOgre::TriangleGeometryDescription(mesh),(NxOgre::Vec3)wall->getPosition());

joaopccosta

23-11-2010 14:35:55

anyone? :S

joaopccosta

25-11-2010 11:52:20

Solved with http://89.151.96.106/addonforums/viewto ... =6&t=12387 ;) thanks anyway