What is 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
bapi
Posts: 33
Joined: Fri Apr 04, 2008 1:57 pm
Location: India
Contact:

What is scenenode?

Post by bapi »

I m new to game programing. :lol:

I was going thru example and got stuck with word call Scenenode.

So what is it?

Pls. explain it to me
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

The scene is what will be rendered lateron. Since we do 3d rendering, it's not just an image to be rendered, but a complete 3d scenery with objects etc.
The scene is composed from components, called scene nodes. The scene nodes define the object's position/rotation/scale in 3d space, some hierarchy of the objects, and the shape to be rendered. Some special nodes also have other meanings, such as the camera node, which defines the location and properties of a camera which can be used to render a view. But most scene nodes are concerned with actually rendering 3d objects.
MasterGod
Posts: 2061
Joined: Fri May 25, 2007 8:06 pm
Location: Israel
Contact:

Post by MasterGod »

Scene node interface.
A scene node is a node in the hierarchical scene graph. Every scene node may have children, which are also scene nodes. Children move relative to their parent's position. If the parent of a node is not visible, its children won't be visible either. In this way, it is for example easily possible to attach a light to a moving car, or to place a walking character on a moving platform on a moving ship.


Definition at line 35 of file ISceneNode.h.
The Scene Manager manages scene nodes, mesh recources, cameras and all the other stuff.
All Scene nodes can be created only here. There is a always growing list of scene nodes for lots of purposes: Indoor rendering scene nodes like the Octree (addOctTreeSceneNode()) or the terrain renderer (addTerrainSceneNode()), different Camera scene nodes (addCameraSceneNode(), addCameraSceneNodeMaya()), scene nodes for Light (addLightSceneNode()), Billboards (addBillboardSceneNode()) and so on. A scene node is a node in the hierachical scene graph. Every scene node may have children, which are other scene nodes. Children move relative the their parents position. If the parent of a node is not visible, its children won't be visible, too. In this way, it is for example easily possible to attach a light to a moving car or to place a walking character on a moving platform on a moving ship. The SceneManager is also able to load 3d mesh files of different formats. Take a look at getMesh() to find out what formats are supported. And if these formats are not enough use addExternalMeshLoader() to add new formats to the engine.


Definition at line 136 of file ISceneManager.h.
From the API...
Image
Dev State: Abandoned (For now..)
Requirements Analysis Doc: ~87%
UML: ~0.5%
bapi
Posts: 33
Joined: Fri Apr 04, 2008 1:57 pm
Location: India
Contact:

Post by bapi »

Thank for ur reply :lol:
dudMaN
Posts: 111
Joined: Fri Mar 02, 2007 6:37 pm

Post by dudMaN »

A Scenenode is well.. a node in the scene :roll:

You can move it around, rotate it, scale, it and all kinds of other operations. They can hold meshes such as the IMeshSceneNode, or just be a cube such as the ICubeSceneNode.

Basically, anything in your game. A Player, a gun, a crate, even sometimes a HUD of some sort.

-DudMan
Complete Irrlicht Beginners Tutorial
http://irrlicht.sourceforge.net/phpBB2/ ... hp?t=24898
MasterGod
Posts: 2061
Joined: Fri May 25, 2007 8:06 pm
Location: Israel
Contact:

Post by MasterGod »

dudMaN wrote:Basically, anything in your game. A Player, a gun, a crate, even sometimes a HUD of some sort.

-DudMan
I'd say anything in your scene.
Image
Dev State: Abandoned (For now..)
Requirements Analysis Doc: ~87%
UML: ~0.5%
switch_case
Posts: 34
Joined: Sat Mar 08, 2008 12:46 pm
Location: Germany, FFM
Contact:

Post by switch_case »

a scene node is like a class in c++, you can make it look or behave like whatever you want... to say it in an abstract way.
if life could only be written in C++...
so much features, money++, remove_childs(), choose parents, life = new life, and no more <IDIOT> templates !
if you're looking for an nerdy coding language: http://lolcode.com/
Post Reply