cal
20-07-2009 17:35:14
Hi, Im relatively new to Ogre, and completely new to python, so please overlook my ignorance on some of these matters.
I've been working on an a framework using Ogre and c++, essentially it allows me to create numerous other application in the same languages and then render them offscreen onto a texture, thats then diplayed in the framework itself. So for example, i may have a game on one material, and web page on another etc.
It was recently suggested that the ability to code these applications using python would be a benefit, and then having these applications interpretted from within the framework and so I've started running through python tutorials et al.
What Im wanting to know is if this is possible, since if it isn't, its a distinct waste of time that I could be spending elsewhere. My framework provides the scenemanager for rendering the applications, as well as a scenenode to work with etc. Is it possibly to interpret a python script that takes these variables as paramters and render an "application" from that script? (so as the most basic example, having a python-ogre app simply create a square on screen, then interpret this script in my framework and have it render that square in the frameworks scenegraph)
Apologies if this sounds like deranged ramblings, if you need more details as to what it is Im after, I'll happily try and word it better.
I've been working on an a framework using Ogre and c++, essentially it allows me to create numerous other application in the same languages and then render them offscreen onto a texture, thats then diplayed in the framework itself. So for example, i may have a game on one material, and web page on another etc.
It was recently suggested that the ability to code these applications using python would be a benefit, and then having these applications interpretted from within the framework and so I've started running through python tutorials et al.
What Im wanting to know is if this is possible, since if it isn't, its a distinct waste of time that I could be spending elsewhere. My framework provides the scenemanager for rendering the applications, as well as a scenenode to work with etc. Is it possibly to interpret a python script that takes these variables as paramters and render an "application" from that script? (so as the most basic example, having a python-ogre app simply create a square on screen, then interpret this script in my framework and have it render that square in the frameworks scenegraph)
Apologies if this sounds like deranged ramblings, if you need more details as to what it is Im after, I'll happily try and word it better.