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/

Reply via email to