Accessing elements of loadScene

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
krama757
Posts: 451
Joined: Sun Nov 06, 2005 12:07 am

Accessing elements of loadScene

Post by krama757 »

Im trying to figure out how to use this new loadScene and saveScene capability of the latest versin of irrlicht.

How would I access the files as they are being loaded?

I would like to load the SceneNodes as they come in into specific ISceneNode* types so that I can later change their attributes like rotation, scale, etc.

In other words, what do I do with onReadUserData() so that I can use the ISceneNodes such that I can change their attributes?
Xandar
Posts: 16
Joined: Mon Nov 28, 2005 9:17 pm
Contact:

Post by Xandar »

Example:

In irrEdit set scene node id = 100.

and use this

pSceneMgr->getSceneNodeFromId(100);
trivtn
Posts: 132
Joined: Tue Jan 17, 2006 12:30 pm
Location: Viet Nam
Contact:

Post by trivtn »

Try in the Irrlicht Wiki, you should find the CPP source code to access to the childnode. You can scan all the scencenode by access to the root scene node by function smgr->getRootSceneNode().
Post Reply