Helly Guys, here is a nice Little Code-snippet i have created called GuiScene...
It is an Complete SceneManager inside an IGUIElement.
It is designed to be a easy Mesh-Showcase for the Irrlicht-GuiSystem.
It allso supports rotating the viewed Mesh using the Mouse.
To show it in Action i have created a Demo based on the original Irrlicht-Demo "05.UserInterface".
Just Click the "New Window"-Button in the Demo and Play around with it...
Here is a Screenshot of it in Action and The Demo + Source as Download...
http://derwalden.de.funpic.de/Irrlicht/ ... neDemo.zip
GuiScene
Re: GuiScene
cool!
look nice
look nice
Re: GuiScene
it seem very nice but sadly it's a little to limited as it's built around rendering a single mesh
-
- Posts: 7
- Joined: Fri Jul 20, 2012 2:12 pm
Re: GuiScene
No its not limited to render just a single mesh...
Just take a look to the GUIScene.h and you will see this functions:
In the Demo only the setMesh and the enableMouseRot functions are used so show the standard Case of using it as "Mesh-Showcase"
So if you want to use it in an other way you can easily doo this by using the GetScene function to get a Pointer to the ISceneManager of the GUIScene.
By using this Pointer you can setup your sceene as already known.
The SetOptimalCamDistToNode function allows you to focus anny node of the Scene you have created. It Calculates the optimal Position for the Camera to show the whole node in the GuiScenes Clipping-rect based on the boundingbox of the given node.
Just take a look to the GUIScene.h and you will see this functions:
Code: Select all
ISceneManager *GetScene(void);
ICameraSceneNode *GetCamera(void);
void SetOptimalCamDistToNode (ISceneNode *aNode);
IAnimatedMeshSceneNode* setMesh (IAnimatedMesh *aMesh = 0, bool updateOptimalCamDist = true);
IAnimatedMeshSceneNode* setMesh (stringw aFileName, bool updateOptimalCamDist = true);
void enableMouseRot (bool aEnable);
So if you want to use it in an other way you can easily doo this by using the GetScene function to get a Pointer to the ISceneManager of the GUIScene.
By using this Pointer you can setup your sceene as already known.
The SetOptimalCamDistToNode function allows you to focus anny node of the Scene you have created. It Calculates the optimal Position for the Camera to show the whole node in the GuiScenes Clipping-rect based on the boundingbox of the given node.
Re: GuiScene
wow I completely missed this when I looked at your code it's really great is there any usage restriction on your code?
-
- Posts: 7
- Joined: Fri Jul 20, 2012 2:12 pm
Re: GuiScene
Without irrlicht this code would not exsit... So no there is no usagerestriction. Beeing informed about improvements or bugfixes would be nice.