Search found 6 matches

by BernieRoehl
Wed Nov 08, 2006 2:49 am
Forum: Advanced Help
Topic: Getting mesh from node
Replies: 23
Views: 3160


1. What is userdata and how do I add it to the .irr file? Is it just an extra XML attribute for each node, e.g. <bool name="GouraudShading" value="true" /> ?

Yes, that's all it is.


2. When I'm subclassing scene::ISceneUserDataSerializer , am I right in thinking I need to use findAttribute on ...
by BernieRoehl
Fri Nov 03, 2006 3:33 am
Forum: Advanced Help
Topic: Getting mesh from node
Replies: 23
Views: 3160

Sadly, SceneNode does not have a getMesh() method. The TerrainSceneNode does, but not SceneNode.

It is perfectly acceptable to request the IMeshSceneNode get a getMesh() and the IAnimatedMeshSceneNode get a getAnimatedMesh() . That said, the scene node class ISceneNode should NOT have a getMesh ...
by BernieRoehl
Thu Nov 02, 2006 6:52 pm
Forum: Advanced Help
Topic: CreateFollowSplineAnimator and IAnimatedMeshSceneNode rotn
Replies: 3
Views: 692

No, currently the animator is not able to make the camera look into a direction or play it not looped. But you're invited to add this functionality if you like :)

Here's a quick-and-dirty work-around:

static core::vector3df previous_position = core::vector3df(0,0,0);
//... later, in the main ...
by BernieRoehl
Thu Nov 02, 2006 6:32 pm
Forum: Advanced Help
Topic: Getting mesh from node
Replies: 23
Views: 3160



scene::IMesh* earthMesh = smgr->getMesh( "earth.x");

scene::ISceneNode* sphere = smgr->addMeshSceneNode(earthMesh);

scene::IMesh* copyfromnodeMesh = NULL;

copyfromnodeMesh = sphere->getMesh(0); // AHA!



Yes, that's the sort of method I'm looking for. Sadly, it doesn't exist.

I've checked ...
by BernieRoehl
Wed Nov 01, 2006 8:43 pm
Forum: Advanced Help
Topic: Getting mesh from node
Replies: 23
Views: 3160

IMesh node->GetMesh(0) ;
the parameter number is the identifier of the mesh. Only in IAnimatedmeshscenennode class you can use some higher value than 0, so u get mesh on appropriate frame :idea:

Yes, something like that would be perfect. Is there any chance this could be added to the main code ...
by BernieRoehl
Sat Oct 28, 2006 3:30 am
Forum: Advanced Help
Topic: Getting mesh from node
Replies: 23
Views: 3160

Getting mesh from node

How do I get a mesh from a scenenode?

I've loaded a .irr file using sceneMnager->loadScene(). Some of the meshes in the scene are things I want the user to collide with, and other meshes shouldn't affect the user's movement through the scene.

I think to myself, "this is easy -- I'll just have a ...