Loading Mesh, external 3d model

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
Pianist
Posts: 14
Joined: Wed Apr 22, 2009 12:47 pm
Location: Czech Republic

Loading Mesh, external 3d model

Post by Pianist »

Hello Everybody,
I would like load my 3d model via "sceneManager->getMesh("file.3ds")" with more detail semantic information. By the other words, let's imagine following example situation:

3ds model "model.3ds" definition
1st object: Box01
2nd object: Box02
3rd object: Sphere01
4th object: Line01

//This model we load with...
mesh = sceneManager->getMesh("model.3ds")

//add new node and set it's position
node = smgr->addAnimatedMeshSceneNode(mesh);
node->setPosition(core::vector3df(-50,200,0));

Well, in my project I would like to be able select any object and apply some transformation/property (rotation/translation/scale/visibility...). I'm afraid the "C3DSMeshFileLoader" returns only plain mesh and I'm not able manage built in components(Line, Sphere, Box...) of whole model.

Please, any Idea, Advice or help for this task???

Thank you guys.
olivehehe_03
Posts: 157
Joined: Tue Mar 20, 2007 8:30 am

Post by olivehehe_03 »

Not sure exactly what you need to do, but a heirarchy like that may be possible by loading each model as an individual node and setting each one as a child of your main node. This way, you can move the whole structure by moving the parent node, and can also adjust the details of each one relative to it's parent. Hope that helps
Tell me what you cherish most. Give me the pleasure of taking it away.
Post Reply