Scene Nodes?

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
Gold_Fusion
Posts: 26
Joined: Tue Jan 20, 2004 9:25 pm
Location: England
Contact:

Scene Nodes?

Post by Gold_Fusion »

Hello. I understand that scene nodes can be used to animate things, and create shadows. My question is, what is a scene node, and how do I use it?
Thank you.
keless
Posts: 805
Joined: Mon Dec 15, 2003 10:37 pm
Location: Los Angeles, California, USA

Post by keless »

it sounds like you dont know what a scene graph is:

for a quick gobbledygook explaination:
http://c2.com/cgi/wiki?SceneGraph

basically, a SceneGraph is a way of organizing a 3D scene. it introduces the idea of different nodes, which can have children.

if you had a scene of a tank, the main part of the tank could be one node, and the turret part of the tank could be a child node. This way, if you move the main tank node, the turret will be moved with it (and any other children of the main tank node). that is because any action you take on a parent node happens to that node's children as well.

to see this in action, look at the TechDemo code.
a screen cap is worth 0x100000 DWORDS
Post Reply