I upgraded to Python 2.4 and the latest version of PyOgre. I'm trying to run the demos from within the PyALaMode environment that comes with wxPython (or, for that matter, from within the command-line shell).
The problem is that the D3D window doesn't go away when the demo is done. Even if I do "del" on the application object, the window hangs around. Because PyOgre doesn't come with much documentation, I'd like to ask the community at large how to go about shutting down the sample after it's done running (so I can easily edit it and run it again, say).
How to shutdown PyOgre
-
- Greenskin
- Posts: 149
- Joined: Sun Sep 19, 2004 6:00 pm
- Location: Torino, ITALY
-
- Greenskin
- Posts: 149
- Joined: Sun Sep 19, 2004 6:00 pm
- Location: Torino, ITALY
Ok, I just tested it by changing the TerrainDemo.py application to say:
This runs the demo two times in a row and deletes the rendering window in between. There are probably better ways (as managing the RenderWindow directly) but this one actually works and requires no extra code.
Code: Select all
if __name__ == '__main__':
application = TerrainApplication()
application.go()
del application
application = TerrainApplication()
application.go()
-
- Gnome
- Posts: 347
- Joined: Sat Feb 05, 2005 12:56 am