Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
Hi, Yeah as the title states, if I load an "example.irr" file that has, lets say a cube, animated node etc how can I access that within my code so I can use it? or is that not possible? |
||||
|
Something along the lines of: smgr->loadScene("media/test.irr"); |
||||
|
The loadScene() function loads all the stuff into your scene. So you will have all the nodes already loaded and transformed into real, 3d objects in the scene manager. You can access a single node for example by name, using irr::scene::ISceneNode* node = sceneManager->getSceneNodeFromName("terrain"); see here: http://irrlicht.sourceforge.net/... |
||||
|
For some reason I haven't been able to access by NAME, but via ID and that was through casting, ie: [code=cpp]scene::ISceneNode * viking1 = static_cast<scene::ISceneNode*>(smgr->getSceneNodeFromId(21));[/code] While we are on the topic, do you know how I can access an IrrKlangSceneNode the same way? |
||||
|
Ah, at least. :) I've written it here: http://www.ambiera.com/forum.php... |
|