On Fri, May 15, 2009 at 6:23 AM, rollbak <[email protected]> wrote: > > If you want a python like syntax to program 3D games for the browser, > Unity3D supports Mono BOO language that has a python like syntax. > > regards, > > On May 15, 8:26 am, Tristam MacDonald <[email protected]> wrote: >> On Thu, May 14, 2009 at 6:28 PM, Alex Holkner <[email protected]>wrote: >> >> >> >> > Definitely infeasible. Besides the sandbox security issue you >> > mentioned, python doesn't support multiple interpreters within the >> > same process. >> >> While the core CPython is not suitable for sandboxing, etc. there are a few >> varianst which might work, such as TinyPy (http://www.tinypy.org/), which is >> small, sandboxable, and threadable. >> >> There's no way currently to run pyglet in jython, because there's no >> >> > ctypes. Even if it were added, browser sandboxing would prevent it >> > from doing the things pyglet needs (access to the os). >> >> Pyglet itself would certainly be unsuitable, and ctypes isn't feasible. The >> best idea would probably be to build a browser plugin in C/C++, which >> provides an OpenGL context and embeds a TinyPy/similar interpreter. >> >> The best approach I can think of is to use a tool such as pyjamas to >> >> > convert python code to javascript/actionscript, and provide a pyglet- >> > like api for either flash or HTML canvas. >> >> That doesn't really support 3D though - I envision something more like the >> Unity (http://unity3d.com/) web plugin, but with a Python interpreter rather >> than Unity's Mono interpreter. >> >> -- >> Tristam MacDonaldhttp://swiftcoder.wordpress.com/ > > >
I also thought this looked interesting: http://code.google.com/apis/o3d/ Although I'm still not sure how I feel about writing my 3D code in javascript ;) Not Pyglet related, but in the past I've used Java Web Start to distribute a Java3D application. It's not a plugin, but it's a nice way to launch an app through the browser. I'm sure you could do something Jython-scriptable in that environment, too. Colin --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pyglet-users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/pyglet-users?hl=en -~----------~----~----~----~------~----~------~--~---
