GUI renders in scene?

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

Sesshomurai
Just popping in
Just popping in
Posts: 10
Joined: Tue Dec 05, 2006 17:20

GUI renders in scene?

Postby Sesshomurai » Tue Jan 02, 2007 21:59

Hi,
I'm new to CEGUI and have been looking for components for a game I want to make. One cool thing I want to do is have the 2D UI be rendered inside the 3D engine scene. So I can mimic Vista style shifting/folding/moving UI's - like perspective. I want all the 2D widgets to be clickable even if my UI screen is bent at a perspective angle, zoomed out or zoomed in.

Is this possible in CEGUI? Do I have to render the UI onto a texture or 3D plane object to achieve it?

CEGUI has an Ogre renderer, so does this mean it already does this?

thanks,
Sessh

Pompei2
Home away from home
Home away from home
Posts: 489
Joined: Tue May 23, 2006 16:31

Re: GUI renders in scene?

Postby Pompei2 » Tue Jan 02, 2007 22:17

Hi, I dont know if this is somehow possible, but
Sesshomurai wrote:CEGUI has an Ogre renderer, so does this mean it already does this?

no. It means that CEGUI uses the OGRE engine to draw the 2D widgets on the screen.

Sesshomurai
Just popping in
Just popping in
Posts: 10
Joined: Tue Dec 05, 2006 17:20

Postby Sesshomurai » Tue Jan 02, 2007 22:20

Ok, thanks for that info. I guess OGRE is a 3D renderer though. ?

Rackle
CEGUI Team (Retired)
Posts: 534
Joined: Mon Jan 16, 2006 11:59
Location: Montréal

Postby Rackle » Wed Jan 03, 2007 00:19


Sesshomurai
Just popping in
Just popping in
Posts: 10
Joined: Tue Dec 05, 2006 17:20

Postby Sesshomurai » Wed Jan 03, 2007 05:08

Yes. Ogre is 3D so I am wondering if CEGUI can render onto a plane or 3D poly to allow a UI screen to be moved, rotated, sized, etc. since it is already rendered in 3d ogre. I guess it would be like a texture then with input from the mouse translate onto the poly.

This would be really cool I think because you can still have 2D UI's but the windows themselves can be manipulated inside the 3D scene in useful ways (sorta like Vista is doing).

thoughts?

Sessh

Pompei2
Home away from home
Home away from home
Posts: 489
Joined: Tue May 23, 2006 16:31

Postby Pompei2 » Wed Jan 03, 2007 13:05

Hmmm of course it would be a cool feature, but I think it's not (yet) worth the work, I'd first like to have a clean and properly working 2D GUI. maybe this could then be CEGUI 2.0 :) Properly translating the mouse-coords would be the hardest I think.

Sesshomurai
Just popping in
Just popping in
Posts: 10
Joined: Tue Dec 05, 2006 17:20

Postby Sesshomurai » Wed Jan 03, 2007 13:29

Ok. I think its something to think about because with the ogre rendered it is 90% capable of it. Translating the mouse coords to highest plane is already in ogre. So its nearly done! :)

Sessh

EDIT: This would be very next-gen UI for games. I don't know much about CEGUI design, but my guess is that the UI can be rendered onto a surface without much trouble. It probably is already. So if the drawing plane for a 3D poly can be acquired from OGRE, it can be painted onto it.


Return to “Help”

Who is online

Users browsing this forum: No registered users and 15 guests