In-Game Console

SiWi

13-12-2007 17:14:11

I found some useful piece of code in the wiki:
http://www.ogre3d.org/wiki/index.php/OgreConsole
This is pretty interesting and I think I´ll port it to PythonOgre. Just one question:
Does anyone know, how u could pass a string given from the console to the Python interpreter. This would allow us to use Python as ingame Scripting language.

Game_Ender

13-12-2007 18:08:19

You want to replicate the read, eval, print loop of the standard python interpreter. Check out this section of the python library reference: http://docs.python.org/lib/custominterp.html

fpois

15-12-2007 11:19:20

@SiWi
you might want to remove that "." at the end of the link you posted, but it's interesting though...

with the project that we're developing we actually use pycrust to do all that stuff, but then we're not building a fullscreen app, so that might not apply...

SiWi

16-12-2007 09:54:30

oops. :D.
Pycrust looks pretty interesting. I see it´s included with wxpython, right?
So this would be the best solution for all, who are using Pycrust in their Apps.
On the other hand a solution for all Ogre apps wouldn´t be the worst I think.

ethankennerly

02-02-2008 05:38:08

I used PyCrust with Python-Ogre in a student project last semester (to turn a 14-projector room into panoramic view for a "spaceship"). It was delicious. I ran the Python-Ogre application from PyCrust. From there on, I had PyCrust's namespace browser and auto-complete and calltip features to guide me through the spellings and signatures. Not to mention updating and editing the application in real-time.

I ran Ogre in windowed mode, so to have real-time rendering while focus was in the interpretter, I used this command, which I read about on one of the Ogre forums.

app.renderWindow.setActive( True )

Now I'm using Python-Ogre for my thesis. I'm a designer by trade, so programming is slower for me, but compared to programming in C++ for an Ogre game like Euphonics, Python-Ogre has been a blessing.

Yesterday I found a rapid application technique for Python-Ogre, using PythonCard. From any PythonCard application's shell, import and run the Python-Ogre application. This is just like PyCrust with something else: You can rapidly prototype GUIs in PythonCard. For a test case, I implemented a color picker. Going forward, I will be constructing an agile Python-Ogre editor.

For a shameless plug, my MFA thesis team for Runesinger needs a lead Python-Ogre programmer. You can see the poster and contact info here.

-- Ethan

Entropai

04-02-2008 09:15:28

I used PyCrust with Python-Ogre in a student project last semester (to turn a 14-projector room into panoramic view for a "spaceship"). It was delicious. I ran the Python-Ogre application from PyCrust.
-- Ethan


Just out of curiosity, what kind of setup did you have for that projector system? I'm currently investigating using the Python-OGRE for VR enviroment (multiscreen setup) and would be interested in for more details.

Thanks in advance.

ethankennerly

02-03-2008 01:52:02

Here is a diagram


http://interactive.usc.edu/members/ekennerly/2008/02/wii_media_lab.html

Here is a video view.
http://www.youtube.com/watch?v=Wq5jgFBbx3g

You could discuss technical details of the multiscreen setup with Marientina who oversees the technology in interactive media at USC.
http://interactive.usc.edu/members/mgotsis/

-- Ethan