I can't get it running with my data files either, which are known to work with
the current stable version (0.4.1).
The following sentence:
state.checkGLErrors("CEGUIDrawable::drawImplementation");
Spits this error:
Warning: detected OpenGL error 'invalid value' at
CEGUIDrawable::drawImplementation
And no trace of CEGUI in the screen. I got it to kind-of-work (some
transparency issues) following your advice in a test app, but not with my
real app (it just paints all the screen with a brown color), I'm trying to
find out what's the problem really; or if the problem with the real app is
just another manifestation of the problem with the test app.
Anyway, I'll try to investigate into your osgcegui.cpp to see if I can get it
working.
PS Jeremy Moles: the osgcegui.cpp is attached in Robert's mail, you can get it
from there in the meanwhile.
On Friday 04 August 2006 22:17, Robert Osfield wrote:
> 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.
--
Manuel A. Fernandez Montecelo <[EMAIL PROTECTED]>
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/