Hi Marc,

Thanks for the feedback, this is very useful.

How much restriction is there on using CEGUI w.r.t requiring the graphics context?  I'm think of things like loading schemes, fonts as well as input injection.  Obvious rendering will need a graphics context.

Personally I'm a bit disappointed with the restrictions that CEGUI sets in terms of set up, putting this alongside the lack of support for multiple windows and graphics contexts I don't see it as a great fit for a scalable arhitecture like the OSG.  Perhaps these problems could be fixed, but it'll my guess is that it'll require a substational refactor.

Robert.

On 9/5/06, Marc Balzig <[EMAIL PROTECTED]> wrote:
Hi,

i have tested the osgcegui Robert provided (the one from cvs) and came to
the following conclusions:

- the CEGUIDrawables must be created after the viewer.realize () - i guess
the CEGUI system needs a valid GLContext to initialize
- the paths within the CEGUI-Files (.font, .scheme, .layout, ...) have to be
relative to the directory from which you start osgcegui

after these minor changes the gui is displayed above the osg-file
the input-injection works but the values have to be converted from the
original [-1, 1] values to screen-coords
(tested with CEGUI 0.4.1)

i hope this helps,
Marc

----- Original Message -----
From: "Robert Osfield" < [EMAIL PROTECTED]>
To: "osg users" <[email protected]>
Sent: Friday, August 04, 2006 10:17 PM
Subject: [osg-users] osg example for CEGUI


> Hi All,
>
> Late this afternoon I decided to have a bash at integrating the OSG
> with CEGUI.  I've written an example, but alas haven't actually got it
> working yet, but then its my first experience with it so be gentle
> with me :-)
>
> Anyway I've checked in my attempt at a osg CEGUI example to CVS,
> you'll find it under example/osgcegui.  The example is also attached.
> Its compiled against the svn mk2-trunk version.
>
> My approach is to create a custom drawable that does the graphics
> integration and injection of events into CEGUI used the OSG's support
> for event callbacks.  This should allow to add CEGUI to most OSG app,
> even ones not integated with Producer, as the code is totally
> windowing agnostic.  CEGUI can't handle multiple graphics contexts
> though, so not usages will work :-|
>
> To run it you'd use:
>
>   osgcegui --scheme myscheme.scheme --layout mylayout.layout cow.osg
>
> I get CEGUI errors when I try using scheme and layout files from the
> cegui distribution, but then I'm just throwing them together will
> nilly in the hope of getting something up.
>
> I know several OSG users have experience with CEGUI, so could you guys
> have a look over my example and fix it up / provide some usable scheme
> and layout files.
>
> Many thanks,
> Robert.
>


----------------------------------------------------------------------------
----


> _______________________________________________
> osg-users mailing list
> [email protected]
> http://openscenegraph.net/mailman/listinfo/osg-users
> http://www.openscenegraph.org/

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to