I m new to game programing.
I was going thru example and got stuck with word call Scenenode.
So what is it?
Pls. explain it to me
What is scenenode?
-
- Admin
- Posts: 14143
- Joined: Wed Apr 19, 2006 9:20 pm
- Location: Oldenburg(Oldb), Germany
- Contact:
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.
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.
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.
From the API...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.
A Scenenode is well.. a node in the scene
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
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
http://irrlicht.sourceforge.net/phpBB2/ ... hp?t=24898
-
- Posts: 34
- Joined: Sat Mar 08, 2008 12:46 pm
- Location: Germany, FFM
- Contact:
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/
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/