antialiasing in wxGLCanvas

Apparently OpenGL antialiasing is now possible in wxWidgets as of sometime last year. Is this feature in wxPython yet, and if so, how do I enable it?

thanks,

Nat

Nathaniel Echols wrote:

Apparently OpenGL antialiasing is now possible in wxWidgets as of sometime last year. Is this feature in wxPython yet, and if so, how do I enable it?

Looks like it was only added on the trunk: wxTrac has been migrated to GitHub Issues - wxWidgets so it will be in wxPython when there is a 2.9.x release.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

Speaking of OpenGL and wxPython, I've been trying to find some good
tutorials on OpenGL with wxPython and not finding much. I have the
OpenGL red book, but the sample code is all in C and I don't translate
C to Python all that well.

My 3D modeling experience comes from POV-Ray, which uses a left-handed
coordinate system. That I can translate, but I can't seem to figure
out how to get the viewport working.

I am modeling Lindenmeyer systems, and I have the Python code that can
generate POV-Ray code, and all I'm trying to do is add an OpenGL
preview.

So, any good tutorials out there that my Google-fu isn't finding?

Thanks,

Josh

···

On 1/11/09, Robin Dunn <robin@alldunn.com> wrote:

Nathaniel Echols wrote:

Apparently OpenGL antialiasing is now possible in wxWidgets as of
sometime last year. Is this feature in wxPython yet, and if so, how do
I enable it?

Looks like it was only added on the trunk:
wxTrac has been migrated to GitHub Issues - wxWidgets so it will be in wxPython when
there is a 2.9.x release.

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

_______________________________________________
wxpython-users mailing list
wxpython-users@lists.wxwidgets.org
http://lists.wxwidgets.org/mailman/listinfo/wxpython-users

--
Josh English
Joshua.R.English@gmail.com

Speaking of OpenGL and wxPython, I’ve been trying to find some good

tutorials on OpenGL with wxPython and not finding much. I have the

OpenGL red book, but the sample code is all in C and I don’t translate

C to Python all that well.

The OpenGL API should actually be extremely similar, only it’s now wrapped in an object-oriented windowing toolkit instead of some low-level C API like GLUT. If you Google for wxpython + opengl there are a few simple examples that should at least show you how to get a viewport; after that, you can use the C examples almost literally (minus some extra syntax). Here’s an example of a simple scene viewer:

http://web.archive.org/web/20050623014950/http://lists.wxwidgets.org/archive/wxPython-users/msg11078.html

A heavily modified version of this (using a different set of OpenGL bindings) is basically what I’ve been working with (for viewing molecular structures).

Side note: If I ever have to do more 3D work, I’ll do my best to avoid OpenGL entirely in favor of something higher-level like VTK (which is also pythonized).

+1 on that. Once you get over the initial shock given by how complex
is VTK, it is a breeze to work with compared to raw OpenGL. I use VTK
for Reservoir Visualization and I find it extremely powerful even for
very big and complex 3D models (albeit a bit memory-hungry).

Andrea.

"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.alice.it/infinity77/

···

On Tue, Jan 13, 2009 at 5:12 PM, Nathaniel Echols wrote:

Side note: If I ever have to do more 3D work, I'll do my best to avoid
OpenGL entirely in favor of something higher-level like VTK (which is also
pythonized).

Nathaniel and Andrea,

Thanks for the information. I haven't heard of VTK until now, but I'll
look into it.

Josh

···

On Wed, Jan 14, 2009 at 1:14 AM, Andrea Gavana <andrea.gavana@gmail.com> wrote:

On Tue, Jan 13, 2009 at 5:12 PM, Nathaniel Echols wrote:

Side note: If I ever have to do more 3D work, I'll do my best to avoid
OpenGL entirely in favor of something higher-level like VTK (which is also
pythonized).

+1 on that. Once you get over the initial shock given by how complex
is VTK, it is a breeze to work with compared to raw OpenGL. I use VTK
for Reservoir Visualization and I find it extremely powerful even for
very big and complex 3D models (albeit a bit memory-hungry).

Andrea.

"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.alice.it/infinity77/
_______________________________________________
wxpython-users mailing list
wxpython-users@lists.wxwidgets.org
http://lists.wxwidgets.org/mailman/listinfo/wxpython-users

--
Josh English
Joshua.R.English@gmail.com