License Public Domain
Lines 327
Keywords
OpenGL (15) PyOpenGL (9) Volume Rendering (9) wxPython (7) wxWidgets (7)
Included in these Libraries
Permissions
Owner: Stou S.
Viewable by Everyone
Editable by All Siafoo Users
Hide
Don't get spied on – We respect your privacy and provide numerous options to protect it. Join Siafoo Now or Learn More

wxPython and PyOpenGL Volume Rendering Skeleton Atom Feed 0

In Brief A very quick and dirty skeleton for prototyping GLSL shaders. It consists of a very simple self contained volume renderer, that uses many slices to create the illusion of 3D.... more

A very quick and dirty skeleton for prototyping GLSL shaders. It consists of a very simple self contained volume renderer, that uses many slices to create the illusion of 3D.

Keys:

r - Reload shader sources

l - Toggle lighting

Warning

You must first download wxPython Transfer Function Widget

For a basic example of using this code see the Volume Rendering MRI data using PyOpenGL snippet.

Images created using MRI data (i.e. 3D Texture) and the above code:

http://www.siafoo.net/image/33?w=300 http://www.siafoo.net/image/40?w=300

Programmatically generated images of a sphere with an earth texture. Note that there is no geometry here except for the slice-planes (i.e. the sphere is). Also the colorful rings in the first image are due to the transfer function.

http://www.siafoo.net/image/34?w=300 http://www.siafoo.net/image/39?w=300