chriso
17-05-2007 22:32:02
Back in 2005 I started exploring how I could switch from using Shockwave 3D into Ogre, but had no c++ experience and thought that Python would be easier to learn for quicker results, so tried pyOgre. After a short while I got frustrated at the lack of documentation, using notepad to edit python files, no easy to use physics, code crashing without warning etc. I dropped it and became too busy on other things. I had started documenting it here:
http://pyogre.blogspot.com/
Now I'm back. I'm pleased to see Python Ogre picking up speed. I've looked through a lot of the demos. I'm now using Stanis Python Editor and am impressed by the physics integration.
Here is my simple first test, showing a robot on the stage
Dont bother running it, its a pointless hello world app
http://pyogre.blogspot.com/
Now I'm back. I'm pleased to see Python Ogre picking up speed. I've looked through a lot of the demos. I'm now using Stanis Python Editor and am impressed by the physics integration.
Here is my simple first test, showing a robot on the stage
import ogre.renderer.OGRE as ogre
import SampleFramework as sf
class oopTest(sf.Application):
def _createScene(self):
sceneManager = self.sceneManager
camera = self.camera
sceneManager.ambientLight = [1,1,1]
ent = sceneManager.createEntity("Robot", "robot.mesh")
node1 = sceneManager.rootSceneNode.createChildSceneNode("RobotNode")
node1.attachObject(ent)
if __name__ == '__main__':
try:
application = oopTest()
application.go()
except ogre.OgreException, e:
print e
Dont bother running it, its a pointless hello world app
