Use Kivy along with a Game Engine

612 views
Skip to first unread message

Rui Campos

unread,
Apr 2, 2011, 1:29:55 PM4/2/11
to Kivy users support
Hello,

Just like the subject says, I'm trying to find a way to integrate Kivy
in a Game Engine. Kivy is unmatched in how easy it is to build an
interface based on NUI so it is very appealing to be able to use it in
any game based on this kind of interaction. So far I have been faced
with many problems, most Game Engines wrap around their graphical
output, so there is the chance that OpenGL and DirectX could be used
at the same time, not good :P

I'm using Panda3d because I believe it is the most advanced game
engine in python. So far my ideas were:

- Have Panda3D share it's window context to Kivy or vice versa - This
might be possible but I read that Panda3D doesn't want share it's
window context since it wraps around the graphical module and it would
be quite hacky to force open gl and then access it's OpenGL module.
The other way around is also difficult for the same reason.

- Rewrite the graphics module for Kivy to use Panda3D graphics engine
- This would definately work but it would be one hell of a task.

- Have the Kivy graphics module write to an FBO and then use the
output as an overlay in Panda3D - I think this would be a cool feature
for Kivy because it can be somewhat used in any Game Engine or
Graphics Engine which has RTT capabilities ( all of them i think ). I
tried to do it, without changing the source of kivy too much but I'm
always getting all sorts of errors. I was hoping that you could tell
me, since you guys have a much better understanding of the inner
workings of kivy, if this is possible and if it worth addressing. If
you can give me some hints as to which files I should look into and
such, it would be great.

If I could receive some insight on this topic, it would be great!

Thanks,
Rui Campos.

Olivier

unread,
Apr 4, 2011, 9:28:26 AM4/4/11
to Kivy users support
Hi Rui,

If you look at this recent thread, it seems that Mathieu has already
got panda3d up and running as an extension in kivy:
http://groups.google.com/group/kivy-users/browse_thread/thread/e3a9a2b0750c0745

I'm personally looking into tweaking instructions in order to get some
3D objects rendered in widgets (if what you need is only a few objects
here and there), but that's just experimental fooling around at that
point of time.

Cheerio,

--
Olivier

Christopher Denter

unread,
Apr 4, 2011, 1:20:15 PM4/4/11
to kivy-...@googlegroups.com
Hi.

Yes, that is correct.
We have a Panda3D extension for Kivy that works just fine.

As of today I'm in a hack session with Mathieu and we'll try to figure out the best approach to an extension system for Kivy and then publish some extensions, including Panda3D.

So I suggest just being patient. Great to know there's an interest for it though. :-)


Christopher

Rui Campos

unread,
Apr 14, 2011, 6:07:22 AM4/14/11
to Kivy users support
Any update on this?

It would be really cool if I could have this working :)

On Apr 4, 6:20 pm, Christopher Denter <den...@the-space-station.com>
wrote:
> Hi.
>
> Yes, that is correct.
> We have a Panda3D extension for Kivy that works just fine.
>
> As of today I'm in a hack session with Mathieu and we'll try to figure out the best approach to an extension system for Kivy and then publish some extensions, including Panda3D.
>
> So I suggest just being patient. Great to know there's an interest for it though. :-)
>
>         Christopher
>
> On Apr 4, 2011, at 3:28 PM, Olivier wrote:
>
>
>
>
>
>
>
> > Hi Rui,
>
> > If you look at this recent thread, it seems that Mathieu has already
> > got panda3d up and running as an extension in kivy:
> >http://groups.google.com/group/kivy-users/browse_thread/thread/e3a9a2...
Reply all
Reply to author
Forward
0 new messages