[PYTHON MATRIX-SIG] opengl on win95 + Announcment PyOpenGL0.8a
Tom Schwaller
tom.schwaller@linux-magazin.de
Wed, 14 May 1997 12:49:37 +0200
Kevin Rodgers (x39079, WT-07) wrote:
>
> aaron_watters@msn.com said:
> > I looked at the opengl links on python.org and found only links to tk/
> > opengl - whatever happened to opengl on win95 without tk? Any
> > progress? I remember I got something from Dave Ascher once that was
> > pretty fun... what's up? -- Aaron Watters
>
> I, too, am very interested in OpenGL on Windows{95,NT}, but as a port of the
> existing PyOpenGL (using the togl Tk widget developed by Brian Paul et al.).
> I have recently developed (well, still developing, but it's pretty useful as
> is) a flight visualization tool based on NumPy and PyOpenGL, on a Sun Ultra 2
> using Mesa-2.1 as the OpenGL implementation (we haven't got an "official"
> OpenGL library yet). There exists the distinct probability that I will need
> to port this to WinNT and/or Win95 in the fairly near future (say 3-6 months).
> Anybody know if PyOpenGL (and, by implication) togl will be ported to
> Win{95,NT}? Enquiring minds want to know . . .
> --
> Kevin Rodgers Lockheed Martin Vought Systems rodgers@vs.lmco.com
> "This one goes up to eleven." -- Nigel Tufnel
Brian has the Win95/NT port on his todo-list, unfortunately I
have no idea when that will happen. In the new 0.8a Alpha release
(See Announcment below) I used the Togl 1.3 stuff and there are
new problems with the transition tk4.2 - tk8.0 (Mike, some time to
check that?), although also some new procedures for saving in tiff, ppm
and
postscript files. I suggest using SavePPM and using the pbm-utils.
Please check the new alpha version..
Some other quastions:
1) Some time ago a person wrote about a ImageMagick Python
module. Is that project still alive or will be somehow integrated
in the PIL project?
2) The Perldl Project has some very interesting material
http://www.aao.gov.au/local/www/kgb/perldl/
What do you think about it?
######################################################################
This is the 0.8a pre-release of the Python Opengl/Tk Module.
(Alpha means really Alpha! There are some nasty bugs.)
You can get it at http://www.python.de/src/PyOpenGL-0.8a.tgz
It works and was testet with Tcl8.0/Tk8.0. Although
some rezising problems where eliminated, there's a new Z-Buffer
problem (a bug), which is very annyoying and needs to be fixed for
the 0.8 release (please help me!!). Look at cone.py for example
to see the problem. Another problem, which occured is that
the actual 0.8a version of PyOpenGL which is based on Togl1.3
does not work with Tcl4.2/Tk7.6 anymore. :-( (Just
use the old version and update opengl.c in that case)
Now the good news.
There are some new procedures in openglmodule.c which might
be interesting:
gl_SaveTiff: save current context in a ppm Image
#define LIBTIFF 1 or -DLIBTIFF and add -ltiff
if you want to use it
gl_SavePPM : save current context in a ppm Image
gl_SaveEPS : save current context in a EPS Image
look at conesave.py for a simple example (the meaning of the
parmateres in SaveTiff is explained in openglmodule.c):
gl.SaveTiff("cone.tif", 0, 0, 0, 400, 400)
gl.SavePPM("cone.ppm", 400, 400)
gl.SaveEPS("cone.ps", 400, 400)
Experimental OpenGL 1.1 stuff: VertexPointer, ColorPointer,
DrawArrays and also glCallLists which was just a quick hack
and needs to be reworked.
Anybody out there, who has some time to look at that?
Other people wanted other new procedures. Now its the moment
to contribute them. I will add them for the next release.
The example detest.py uses the delaunaymodule, which in included
for convenience. The much more interesting 2D Triangulation module
I wrote a long time ago was not updated to the actual NumPy
distribution and needs to be fixed.
Last but not least: Please tell us about projects using PyOpenGL.
I'd like to include some new examples...
######################################################################
Tom
_______________
MATRIX-SIG - SIG on Matrix Math for Python
send messages to: matrix-sig@python.org
administrivia to: matrix-sig-request@python.org
_______________