terrain from .irr file && gui

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
kevin[be]
Posts: 23
Joined: Sun Dec 21, 2008 2:42 pm

terrain from .irr file && gui

Post by kevin[be] »

Hi,

I've got two questions:

How can you get a terrainSceneNode from an .irr file you load?

If you create a gui env, how do you destroy all the elements in it to create a new? env->drop() doesn't seem to work

Thanks
bitplane
Admin
Posts: 3204
Joined: Mon Mar 28, 2005 3:45 am
Location: England
Contact:

Re: terrain from .irr file && gui

Post by bitplane »

kevin[be] wrote: How can you get a terrainSceneNode from an .irr file you load?
smgr->getRootSceneNode()->getNodeFromID( ID NUMBER );
kevin[be] wrote:If you create a gui env, how do you destroy all the elements in it to create a new?
env->clear();
kevin[be] wrote:env->drop() doesn't seem to work
Don't drop an object unless you grabbed it or created it, see IReferenceCounted docs for info.
Submit bugs/patches to the tracker!
Need help right now? Visit the chat room
kevin[be]
Posts: 23
Joined: Sun Dec 21, 2008 2:42 pm

Post by kevin[be] »

Thanks!
That will help!
Post Reply