Search found 4 matches

by Alex Stan
Sat Jun 09, 2007 5:48 pm
Forum: Beginners Help
Topic: Getting a mesh from .irr file
Replies: 5
Views: 317

Nevermind, i figured it out: // load the scene smgr->loadScene("main.irr"); // prepare node & mesh for triangle selector(get the pointer) scene::ISceneNode* node = node=smgr->getSceneNodeFromId(0); scene::IAnimatedMesh* mesh = smgr->getMeshCache()->getMeshByIndex(0); //triangle selecto...
by Alex Stan
Sat Jun 09, 2007 5:33 pm
Forum: Beginners Help
Topic: Getting a mesh from .irr file
Replies: 5
Views: 317

News: I discovered that i can use getMeshByIndex(0) (My mesh id in irredit is 0) Problem is that i don't know how i can properly call the function. I tried smgr.getMeshByIndex(0); but it didn't work In the documentation it says that the function is part of IMeshCache but i'm not that used to classes...
by Alex Stan
Sat Jun 09, 2007 5:10 pm
Forum: Beginners Help
Topic: can't display jpg-type image use OPENGL mode on Linux
Replies: 4
Views: 204

You can always try a png image.
by Alex Stan
Sat Jun 09, 2007 5:04 pm
Forum: Beginners Help
Topic: Getting a mesh from .irr file
Replies: 5
Views: 317

Getting a mesh from .irr file

Hello, I would like to do a triangle selector for scene loaded from a .irr file. I successfully got a pointer to the node i am interested in but i can't seem to get a pointer to the mesh. I need a pointer to the mesh so i can use it when calling the createOctTreeTriangleSelector function. Is there a...