Question

I want to create a very basic 3D modeling tool. The application is supposed to be windowed and will need to respond to mouse click and drag events in the 3D viewport.

I've decided on wxPython for the actual window since I'm fairly familiar with it already. However, I need to produce an OpenGL viewport that can respond to the various mouse events. It wouldn't hurt to have some convenience math in place for converting the 2D mouse positions in "camera space" into world space coordinates to make selection tasks easier.

I'm looking for recommendations on which modules I should be looking at.

Was it helpful?

Solution

Any reason you wouldn't use wx's GLCanvas? Here's an example that draws a sphere.

OTHER TIPS

As a very basic 3D modelling tool I'd recommend VPython.

I'm not aware of any boxed up modules which provide that functionality, but you can take some inspiration from Blender 3D, which has all of the features you described: its a 3D modeling tool, its written in Python, has an OpenGL viewport which responds to mouse events, and its open source.

You can probably take inspiration from Blender and apply it your own projects.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top