For some reason(mainly for ANIMATED GUI effect), my GUI menu is a 3D Model with some buttons attached to it.
I make the camera Scene Node the parent of the GUI menu, so the menu will always follow the camera, and i
think the menu will look like a 2D GUI menu.
but i don't know how to set the relative position between camera and menu, to make the menu look fill some
rectangle region of the screen, could someone help me?
Thanks in advance!
How to set camera postion to make 3D models look like 2D GUI
The faerie in that example IS 3D.
No what he wants is 3d models to make his GUI.
I highly suggest you abandon this idea I see absolutely no reason to do it like this unless you wanted the inside of a helmet HUD or something.
very graphically intensive could slow down your whole app.
anyways I don't know much about the 3d side of Irrlicht yet otherwise I would explain sorry.
I'm almost positive the fps camera will give you bugs with this however you'll have a problem getting the object to rotate along with your camera mostly.
Good Luck!
No what he wants is 3d models to make his GUI.
I highly suggest you abandon this idea I see absolutely no reason to do it like this unless you wanted the inside of a helmet HUD or something.
very graphically intensive could slow down your whole app.
anyways I don't know much about the 3d side of Irrlicht yet otherwise I would explain sorry.
I'm almost positive the fps camera will give you bugs with this however you'll have a problem getting the object to rotate along with your camera mostly.
Good Luck!
Thanks, b1_77y and Midnight.
Yes, i mean i want to use 3d models to make GUI.
I have found that the GUI of Warcraft3 is made with animated models, and i wonder how to implement this.
I have already read a GUI model of Warcraft3 with Irrlicht, but i can't get the right scene whatever position i set the camera in, especially when i rotate the model, it doesn't look like what i wanted at all.
Is it very time-consuming with animated models to make GUI? but it looks very cool in Warcraft3.
Yes, i mean i want to use 3d models to make GUI.
I have found that the GUI of Warcraft3 is made with animated models, and i wonder how to implement this.
I have already read a GUI model of Warcraft3 with Irrlicht, but i can't get the right scene whatever position i set the camera in, especially when i rotate the model, it doesn't look like what i wanted at all.
Is it very time-consuming with animated models to make GUI? but it looks very cool in Warcraft3.
I like your approach rather then spintz's on this one render to texture would use even more resource am I correct? however both ways will work and on a small scale it wouldn't make much difference.bitplane wrote:make your guinode a child of the camera, set its position relatively like you would with a gun.
or you could use guinode->setPosition(getRayFromScreenCoordinates(x,y)->start) and guinode->setRotation(camera->getRotation())
Beginner have you seen guice?? it has 3d backgrounds for the main program and shortly for the main window as well.
having an animated background can also be done with rendered movies or animations as well very effectively "faking" a true 3d scene...such as game intros and cut scenes. this would be the lowest resource hogging method.
part of being a good programmer is being a good optimizer it only makes sense to do something more efficiently when plausible and I think this is very much so.
As for GUI well render to texture will do nothing for you in that respect either. It amazes me how afraid people are to create there own GUI classes. I plan to do something about that personally.