Need help - 2 simple noob questions (parent + scenenode)

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
howkerman
Posts: 18
Joined: Mon Sep 14, 2009 1:47 pm
Location: Planet Earth

Need help - 2 simple noob questions (parent + scenenode)

Post by howkerman »

Hi there, I'm new to irrlicht, I want to ask you guys 2 simple questions.

1. How to make a empty scene node? (need it for a some kind of place holder)

2. How can I attach another scene node to it (maybe something like parent)


Thanks
Amen
CuteAlien
Admin
Posts: 9933
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Post by CuteAlien »

1. With ISceneManager::addEmptySceneNode (check the docu).

2. With either addChild on your emptyscenenode or setParent on your childnode.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
howkerman
Posts: 18
Joined: Mon Sep 14, 2009 1:47 pm
Location: Planet Earth

Post by howkerman »

thanks, could you tell me how to create fog?
Amen
B@z
Posts: 876
Joined: Thu Jan 31, 2008 5:05 pm
Location: Hungary

Post by B@z »

Image
Image
howkerman
Posts: 18
Joined: Mon Sep 14, 2009 1:47 pm
Location: Planet Earth

Post by howkerman »

Im a lazy ass xD
Amen
Reiko
Posts: 105
Joined: Sun Aug 16, 2009 7:06 am
Location: Australia

Post by Reiko »

Fog is very easy... It's used in the PerPixelLighting tutorial that comes with irrlicht, so you might wanna check that out.
Post Reply