Is there a way to load dummies from a Mesh, and find em in code?
I wasnt able to find the dummies so far using the selectnode functions in SceneManager.
Basically i wan't to use it to mount camera, small objects or whatever on models.
Edit: I used Max Dummies for a lot of things in other engine.
Loading Dummies
Loading Dummies
The sleeper must awaken!
-
- Posts: 222
- Joined: Mon Jan 19, 2009 10:03 pm
- Location: Miami, Florida
- Contact:
A dummy is a 3d Studio helper node, its a invisible entity that can be exported on models to determine positions.grumpymonkey wrote:can you explain to me what a dummy is? maybe then I will be able to help you.
I used this a lot to place cameras and objects on models.
Irrlicht have IDummyTransformationSceneNode, but i dont think this is what im looking for, anyways the Max exporters like Panda are exporting Dummy nodes, im unsure if Irr is loading em tough.
Any ideas?
The sleeper must awaken!
-
- Posts: 237
- Joined: Mon Jan 16, 2006 1:18 pm
- Location: Odessa,Russian Federation
Thanks a lot everybody.
So to load a Dummy from MAX (tested this with panda X, 3DS wont work), i did this:
And then i can access Properties like X,Y,Z from the dummy.
This will allow you to mount guns or equipment on soldiers, clothing or anything you need to mount on a model.
I used this to put cameras in specific places for a model.
So to load a Dummy from MAX (tested this with panda X, 3DS wont work), i did this:
Code: Select all
ISceneManager* smgr;
..
IAnimatedMeshSceneNode* node = smgr->addAnimatedMeshSceneNode(mesh);
scene::IBoneSceneNode * dummy= Node->getJointNode("DUMMYNAME");
This will allow you to mount guns or equipment on soldiers, clothing or anything you need to mount on a model.
I used this to put cameras in specific places for a model.
The sleeper must awaken!
-
- Posts: 237
- Joined: Mon Jan 16, 2006 1:18 pm
- Location: Odessa,Russian Federation