WxPython Front-end for Celestia!
Posted: 02.12.2006, 06:06
I've been tinkering around with wxPython and have found it pretty easy to implement new GUI features for Celestia. At my job we use alot of python and recently started moving towards wxPython for our GUI's, so I was looking for some kind of training project.
Here's a screenshot of a very simple demo that has most of what the GLUT version has. Of course adding menus and dialogs are very straightforward, the hard part was getting the OpenGL rendering into a wxGLcanvas and integrating it into a wxAUI notebook.
Also shown is the eclipse IDE with Celestia as the C++ project with wxPython modules for the GUI front end. There were zero changes to the Celestia source code, but I did have to modify the make files to enable building the Celestia libraries as shared objects. Basically I used SWIG to generate the python bindings to the Celestia core--except for the learning curve, this was really prettty straightforward.
My ulterior motive is to eventually have this hooked up to a simulation for STK like trajectory analysis work.
It should be possible to put nearly all the features (even video recording) into a platform independent front-end that could potentially replace many if not all of the existing front-ends currently in use. Anybody interested?
Scott
Here's a screenshot of a very simple demo that has most of what the GLUT version has. Of course adding menus and dialogs are very straightforward, the hard part was getting the OpenGL rendering into a wxGLcanvas and integrating it into a wxAUI notebook.
Also shown is the eclipse IDE with Celestia as the C++ project with wxPython modules for the GUI front end. There were zero changes to the Celestia source code, but I did have to modify the make files to enable building the Celestia libraries as shared objects. Basically I used SWIG to generate the python bindings to the Celestia core--except for the learning curve, this was really prettty straightforward.
My ulterior motive is to eventually have this hooked up to a simulation for STK like trajectory analysis work.
It should be possible to put nearly all the features (even video recording) into a platform independent front-end that could potentially replace many if not all of the existing front-ends currently in use. Anybody interested?
Scott