I found some useful piece of code in the wiki:
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.
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...
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.
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.
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.
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.