Passing a Projection Matrix to Renderer

For help with anything that CEGUI doesn't offer straight out-of-the-box, e.g.:
- Implementation of new features, such as new Core classes, widgets, WindowRenderers, etc. ...
- Modification of any existing features for specific purposes
- Integration of CEGUI in new engines or frameworks and writing of new plugins (Renderer, Parser, ...) or modules

Moderators: CEGUI MVP, CEGUI Team

User avatar
sipickles
Not too shy to talk
Not too shy to talk
Posts: 37
Joined: Fri Feb 24, 2006 19:41
Location: Enfield, UK

Passing a Projection Matrix to Renderer

Postby sipickles » Wed Jul 09, 2008 15:13

Hi,

I wonder if CEGUI could accept a VIEW/PROJECTION matrix supplied by the user?

This would all the entire GUI, or perhaps subsets to be drawn on different planes.

Code: Select all

// draw GUI on default screenplane
CEGUI::System::getSingleton().renderGUI();

// draw GUI on rotated plane
CEGUI::System::getSingleton().renderGUI( myRotationMatrix );



This could even be applied to different parts of the GUI

Code: Select all

//Start render loop

System::getSingleton().setGUISheet( statusWindow );
// draw status GUI on rotated plane
CEGUI::System::getSingleton().renderGUI( myRotationMatrix );

System::getSingleton().setGUISheet( mapWindow );
// draw map GUI on a different rotated plane
CEGUI::System::getSingleton().renderGUI( myOtherRotationMatrix );

//Stop render loop


Is this possible?

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Postby CrazyEddie » Wed Jul 09, 2008 17:43

Hi,

This is not possible out of the box in current versions; future releases will make such things much easier as it will be possible to hook directly into the rendering of UI components at a certain level (though not necessarily in a api/engine agnostic manner).

CE

User avatar
sipickles
Not too shy to talk
Not too shy to talk
Posts: 37
Joined: Fri Feb 24, 2006 19:41
Location: Enfield, UK

Postby sipickles » Wed Jul 09, 2008 17:51

Fair enough.

I look forward to it. That would make some interesting GUIs possible - think Compiz-desktop-cube ;)

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Postby CrazyEddie » Fri Jul 11, 2008 08:51

That kind of thing will be extremely simple with the new rendering model, since windows at a certain level will fully support rotation out of the box :)

User avatar
sipickles
Not too shy to talk
Not too shy to talk
Posts: 37
Joined: Fri Feb 24, 2006 19:41
Location: Enfield, UK

Postby sipickles » Fri Jul 11, 2008 09:14

This is actually possible already, at least in DX (my only area of mild expertise).

Render the GUI to a texture, then render the texture in 3d space....

This is what I am planning, at least until the new renderer model is released.


Return to “Modifications / Integrations / Customisations”

Who is online

Users browsing this forum: No registered users and 1 guest