Re: Making the CEGUI module separated from Ogre

6 views
Skip to first unread message

unread,
Sep 14, 2009, 8:30:08 PM9/14/09
to python-ogre...@googlegroups.com
Hi all,

we are working on integrating CEGUI into the Panda3D game engine
(http://www.panda3d.org). Panda3D is meant to be used from Python, so
we need the Python wrappers for CEGUI.

See the discussion here:

http://www.panda3d.org/phpbb2/viewtopic.php?p=43822#43822

Basically, we've found that Python-Ogre provides the wrappers we need,
but the CEGUI wrapper depends on Ogre (because of the Ogre renderer).
Also, we found that it's possible to remove the dependency on Ogre by
removing all references to Ogre stuff in the cegui class in
environment.py, code_generators/cegui/customization_data.py and
code_generators/cegui/generate_code.py

Would it be possible to have the CEGUI wrappers not depend on Ogre?
Maybe a separate branch for those who don't need all of Ogre, but need
CEGUI wrappers?

Thanks,

Nik

Andy Miller

unread,
Sep 14, 2009, 9:49:08 PM9/14/09
to python-ogre...@googlegroups.com
I've had a look at the patch you did and we could probably just handle this with a few 'if' statements (instead of a complete branch) -- perhaps a _NON_OGRE flag as I don't see any actual 'panda' specifics that you've done...

Could you confirm that there aren't any 'panda' specifics that you need in python-ogre and then send me your latest patch (or confirm that http://paste.ubuntu.com/248927/ is valid)..

I'll incorporate it to see just how ugly it makes the code :)

Andy



2009/9/15 NШ <n.sh...@gmail.com>

unread,
Sep 15, 2009, 12:06:24 AM9/15/09
to python-ogre...@googlegroups.com
There is no Panda-specific support, we just need the standard CEGUI
wrappers. So a flag to disable Ogre would work for us. The linked
patch is valid (in principle, if not in form).

Actually, Ogre depends on CEGUI, so maybe it would be possible to just
move the Ogre Renderer and friends to the Ogre target?

Thanks,

Nik

Andy Miller

unread,
Sep 15, 2009, 9:08:12 AM9/15/09
to python-ogre...@googlegroups.com
OK I'll look at merging the patch into the trunk and let you know once it's there for testing..

In fact Ogre doesn't depend on CEGUI  as it doesn't have a specific gui -- in Python-Ogre you can use CEGUI, QuickGUI or MyGui (under development) - BetaGui and Navi are also available for the adventurous :)

Regards
Andy

2009/9/15 NШ <n.sh...@gmail.com>

unread,
Sep 17, 2009, 10:19:33 PM9/17/09
to python-ogre...@googlegroups.com
Thanks Andy, looking forward to it!

Nik
Reply all
Reply to author
Forward
0 new messages