pyopengl-users Mailing List for PyOpenGL (Page 79)
Brought to you by:
mcfletch
You can subscribe to this list here.
2001 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(81) |
Oct
(41) |
Nov
(55) |
Dec
(14) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2002 |
Jan
(34) |
Feb
(3) |
Mar
(16) |
Apr
(5) |
May
(10) |
Jun
(13) |
Jul
(24) |
Aug
(14) |
Sep
(14) |
Oct
(9) |
Nov
(10) |
Dec
(16) |
2003 |
Jan
(25) |
Feb
(59) |
Mar
(9) |
Apr
(21) |
May
(54) |
Jun
(4) |
Jul
(16) |
Aug
(19) |
Sep
(19) |
Oct
(15) |
Nov
(13) |
Dec
(22) |
2004 |
Jan
(19) |
Feb
(8) |
Mar
(20) |
Apr
(16) |
May
(13) |
Jun
(18) |
Jul
(18) |
Aug
(14) |
Sep
(24) |
Oct
(47) |
Nov
(20) |
Dec
(10) |
2005 |
Jan
(23) |
Feb
(31) |
Mar
(11) |
Apr
(29) |
May
(18) |
Jun
(7) |
Jul
(11) |
Aug
(12) |
Sep
(8) |
Oct
(4) |
Nov
(11) |
Dec
(7) |
2006 |
Jan
(7) |
Feb
(8) |
Mar
(15) |
Apr
(3) |
May
(8) |
Jun
(25) |
Jul
(19) |
Aug
(3) |
Sep
(17) |
Oct
(27) |
Nov
(24) |
Dec
(9) |
2007 |
Jan
(6) |
Feb
(43) |
Mar
(33) |
Apr
(8) |
May
(20) |
Jun
(11) |
Jul
(7) |
Aug
(8) |
Sep
(11) |
Oct
(22) |
Nov
(15) |
Dec
(18) |
2008 |
Jan
(14) |
Feb
(6) |
Mar
(6) |
Apr
(37) |
May
(13) |
Jun
(17) |
Jul
(22) |
Aug
(16) |
Sep
(14) |
Oct
(16) |
Nov
(29) |
Dec
(13) |
2009 |
Jan
(7) |
Feb
(25) |
Mar
(38) |
Apr
(57) |
May
(12) |
Jun
(32) |
Jul
(32) |
Aug
(35) |
Sep
(10) |
Oct
(28) |
Nov
(16) |
Dec
(49) |
2010 |
Jan
(57) |
Feb
(37) |
Mar
(22) |
Apr
(15) |
May
(45) |
Jun
(25) |
Jul
(32) |
Aug
(7) |
Sep
(13) |
Oct
(2) |
Nov
(11) |
Dec
(28) |
2011 |
Jan
(35) |
Feb
(39) |
Mar
|
Apr
(25) |
May
(32) |
Jun
(17) |
Jul
(29) |
Aug
(10) |
Sep
(26) |
Oct
(9) |
Nov
(28) |
Dec
(4) |
2012 |
Jan
(24) |
Feb
(47) |
Mar
(4) |
Apr
(8) |
May
(9) |
Jun
(6) |
Jul
(4) |
Aug
(1) |
Sep
(4) |
Oct
(28) |
Nov
(2) |
Dec
(2) |
2013 |
Jan
(11) |
Feb
(3) |
Mar
(4) |
Apr
(38) |
May
(15) |
Jun
(11) |
Jul
(15) |
Aug
(2) |
Sep
(2) |
Oct
(4) |
Nov
(3) |
Dec
(14) |
2014 |
Jan
(24) |
Feb
(31) |
Mar
(28) |
Apr
(16) |
May
(7) |
Jun
(6) |
Jul
(1) |
Aug
(10) |
Sep
(10) |
Oct
(2) |
Nov
|
Dec
|
2015 |
Jan
(6) |
Feb
(5) |
Mar
(2) |
Apr
(1) |
May
|
Jun
|
Jul
(1) |
Aug
(1) |
Sep
(2) |
Oct
(1) |
Nov
(19) |
Dec
|
2016 |
Jan
(6) |
Feb
(1) |
Mar
(7) |
Apr
|
May
(6) |
Jun
|
Jul
(3) |
Aug
(7) |
Sep
|
Oct
(2) |
Nov
(2) |
Dec
|
2017 |
Jan
|
Feb
(6) |
Mar
(8) |
Apr
|
May
|
Jun
|
Jul
|
Aug
(4) |
Sep
(3) |
Oct
(2) |
Nov
|
Dec
|
2018 |
Jan
(9) |
Feb
(1) |
Mar
|
Apr
|
May
(1) |
Jun
(2) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2019 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
(6) |
Jun
(1) |
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2020 |
Jan
|
Feb
|
Mar
|
Apr
(7) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2021 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
(2) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2024 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
From: SourceForge.net <no...@so...> - 2005-09-21 20:35:41
|
Feature Requests item #1298135, was opened at 2005-09-21 15:35 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=355988&aid=1298135&group_id=5988 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: GLUT Group: None Status: Open Resolution: None Priority: 5 Submitted By: Allen Bierbaum (allenb) Assigned to: Nobody/Anonymous (nobody) Summary: Add support for freeglut API extensions Initial Comment: It would be very helpful to have wrappers for not only the standard GLUT interface, but also the new API in freeglut. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=355988&aid=1298135&group_id=5988 |
From: Chad S. <po...@ya...> - 2005-09-07 09:04:56
|
The python setup.py install command fails. Here's the output: running build_ext building 'GL.EXT._color_table' extension gcc -pthread -shared build/temp.linux-i686-2.4/src/interface/GL.EXT._color_table.o -L/usr/lib -L/usr/local/lib -L/usr/X11/lib -L/usr/X11R6/lib -Lbuild/temp.linux-i686-2.4 -lGL -lX11 -lXext -lGLU -linterface_util -o build/lib.linux-i686-2.4/OpenGL/GL/EXT/_color_table.so /usr/X11R6/lib/libGL.a(glapi_x86.o)(.text+0x44c0): In function `glGetColorTableEXT': : multiple definition of `glGetColorTableEXT' build/temp.linux-i686-2.4/src/interface/GL.EXT._color_table.o(.text+0x8f4):src/interface/GL.EXT._color_table.0120.inc:1408: first defined here /usr/X11R6/lib/libGL.a(glapi_x86.o)(.text+0x44e0): In function `glGetColorTableParameterivEXT': : multiple definition of `glGetColorTableParameterivEXT' build/temp.linux-i686-2.4/src/interface/GL.EXT._color_table.o(.text+0x95d):src/interface/GL.EXT._color_table.0120.inc:1411: first defined here /usr/X11R6/lib/libGL.a(glapi_x86.o)(.text+0x4500): In function `glGetColorTableParameterfvEXT': : multiple definition of `glGetColorTableParameterfvEXT' build/temp.linux-i686-2.4/src/interface/GL.EXT._color_table.o(.text+0x9bf):src/interface/GL.EXT._color_table.0120.inc:1414: first defined here /usr/X11R6/lib/libGL.a(glapi_x86.o)(.text+0x71a0): In function `glColorTableEXT': : multiple definition of `glColorTableEXT' build/temp.linux-i686-2.4/src/interface/GL.EXT._color_table.o(.text+0x749):src/interface/GL.EXT._color_table.0120.inc:1396: first defined here collect2: ld returned 1 exit status error: command 'gcc' failed with exit status 1 Looks like it's conflicting with the standard GL C libs? Any suggestions? -----BEGIN GEEK CODE BLOCK----- Version 3.12 GCS/IT/L/S/O d-(+) s++: a-(?) C++++$ UBLS++++$ P+++(--)$ L++++$ E--- W+$ N !o K? w(---) !O M- !V PS+ PE(-) Y+ PGP->+ t+ 5 X++ R(+) tv+@ b+(++) !DI+++ D G(-) e>+++ h---() r+++ y+++(++) ------END GEEK CODE BLOCK------ __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |
From: Stephane C. <con...@ce...> - 2005-08-24 12:11:19
|
Hello all, I wrote a python library ( (with minimal C extensions) that implements svg rendering using opengl, and it's designed with interaction as a main goal. It's a bit rough, but if somebody wants to try it, feel free to do so (bazaar-style): http://www.tls.cena.fr/~conversy/research/sauvage/ have fun. (btw, it's LGPL'ed.) don't hesitate to give me comments, and report problems, especially during compile. I developped it under macosx, but this time I did my best to make it compile under linux... stephane |
From: Charles M. <cm...@in...> - 2005-08-21 21:33:47
|
Well, I can't find that demo, but the only thing you need to know is "glShaderSourceARB" is a little different from spec. You can only load one program per call, where normally you could upload multiple at once. The code pretty much looks like C code otherwise. glShaderSourceARB(shaderObj, programString) - Charlie On Aug 21, 2005, at 8:25 AM, horace wrote: > hi, > > yes, i would like to see your example! i have never build something > from cvs before but i will try. :) > > so in future pyopengl releases your extensions will be in? > > thanks! > > On 8/21/05, Charles Moad <cm...@in...> wrote: > >> I committed all the necessary extension into cvs about a >> month ago to >> do glsl programming. You would have to build from cvs, and I may >> have a >> sample app sitting around somewhere. Let me know if you would >> want to >> see it. >> >> - Charlie >> >> horace wrote: >> >>> hi, >>> >>> is it possible to use opengl extensions with pyopengl? i would >>> like to >>> do some experiments with shader programming and python+pyopengl >>> would >>> be perfect for that. >>> >>> is pyopengl still opengl 1.1 only? >>> >>> >>> ------------------------------------------------------- >>> SF.Net email is Sponsored by the Better Software Conference & EXPO >>> September 19-22, 2005 * San Francisco, CA * Development Lifecycle >>> Practices >>> Agile & Plan-Driven Development * Managing Projects & Teams * >>> Testing & QA >>> Security * Process Improvement & Measurement * http://www.sqe.com/ >>> bsce5sf >>> _______________________________________________ >>> PyOpenGL Homepage >>> http://pyopengl.sourceforge.net >>> _______________________________________________ >>> PyOpenGL-Users mailing list >>> PyO...@li... >>> https://lists.sourceforge.net/lists/listinfo/pyopengl-users >>> >> > |
From: horace <hor...@gm...> - 2005-08-21 18:03:04
|
good news! thanks! > Charles is now a developer on the PyOpenGL project, so barring some huge > problem with the new extensions, yes, they will be in the next release. > I'm expecting we'll do that release sometime in early September. |
From: Mike C. F. <mcf...@ro...> - 2005-08-21 14:05:45
|
horace wrote: >hi, > >yes, i would like to see your example! i have never build something >from cvs before but i will try. :) > >so in future pyopengl releases your extensions will be in? > > Charles is now a developer on the PyOpenGL project, so barring some huge problem with the new extensions, yes, they will be in the next release. I'm expecting we'll do that release sometime in early September. Have fun, Mike -- ________________________________________________ Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com |
From: horace <hor...@gm...> - 2005-08-21 13:25:57
|
hi, yes, i would like to see your example! i have never build something from cvs before but i will try. :) so in future pyopengl releases your extensions will be in? thanks! On 8/21/05, Charles Moad <cm...@in...> wrote: > I committed all the necessary extension into cvs about a month ag= o to > do glsl programming. You would have to build from cvs, and I may have a > sample app sitting around somewhere. Let me know if you would want to > see it. >=20 > - Charlie >=20 > horace wrote: > > hi, > > > > is it possible to use opengl extensions with pyopengl? i would like to > > do some experiments with shader programming and python+pyopengl would > > be perfect for that. > > > > is pyopengl still opengl 1.1 only? > > > > > > ------------------------------------------------------- > > SF.Net email is Sponsored by the Better Software Conference & EXPO > > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Pract= ices > > Agile & Plan-Driven Development * Managing Projects & Teams * Testing &= QA > > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5= sf > > _______________________________________________ > > PyOpenGL Homepage > > http://pyopengl.sourceforge.net > > _______________________________________________ > > PyOpenGL-Users mailing list > > PyO...@li... > > https://lists.sourceforge.net/lists/listinfo/pyopengl-users > |
From: Charles M. <cm...@in...> - 2005-08-20 22:38:26
|
I committed all the necessary extension into cvs about a month ago to do glsl programming. You would have to build from cvs, and I may have a sample app sitting around somewhere. Let me know if you would want to see it. - Charlie horace wrote: > hi, > > is it possible to use opengl extensions with pyopengl? i would like to > do some experiments with shader programming and python+pyopengl would > be perfect for that. > > is pyopengl still opengl 1.1 only? > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > PyOpenGL Homepage > http://pyopengl.sourceforge.net > _______________________________________________ > PyOpenGL-Users mailing list > PyO...@li... > https://lists.sourceforge.net/lists/listinfo/pyopengl-users |
From: horace <hor...@gm...> - 2005-08-20 11:11:30
|
hi, is it possible to use opengl extensions with pyopengl? i would like to do some experiments with shader programming and python+pyopengl would be perfect for that. is pyopengl still opengl 1.1 only? |
From: bum c. <mee...@ya...> - 2005-08-17 02:23:24
|
GL_COLOR_TABLE and glColorTable give me NameErrors. Where are they? (I'm using opengl 2.0) Thanks, Bum __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |
From: Silverstein <he...@sc...> - 2005-08-10 04:02:04
|
Mike, Yes, what I had in mind was involved, but your idea is much better! We have more than one GL window in which things can be drawn; so we'll have to provide a setup call that can be invoked from within python which, among other things, will set the current window, buffer, etc. This main drawing area allows stereo (software pairs, hardware). It'd be nice to figure out a way to allow clients to write their code so it integrates with stereo in our main drawing Window. I don't think they will be able to get the needed information (like how much we rotate each eye's view) from the GL state machine; so we'll probably have to provide some additionall wrappes for this. Thanks for the help, Herc |
From: Greg W. <gvw...@cs...> - 2005-08-09 17:55:54
|
Hi, I'm working with support from the Python Software Foundation to develop an open source course on basic software development skills for people with backgrounds in science and engineering. I have a beta version of the course notes ready for review, and would like to pull in people in sci&eng to look it over and give me feedback. If you know anyone who fits this bill (particularly people who might be interested in following along with a trial run of the course this fall), I'd be grateful for pointers. Thanks, Greg Wilson |
From: Joseph Q. <cpu...@gm...> - 2005-08-05 20:52:45
|
Hi.. I get this huge list of errors when I try to install PyOpenGL on Slackware 10.0 (x86 CPU). I can't understand why! package init file 'OpenGL/Demo/twburton/__init__.py' not found (or not a regular file) package init file 'OpenGL/Demo/suite/__init__.py' not found (or not a regular file) package init file 'OpenGL/Demo/rened/__init__.py' not found (or not a regular file) package init file 'OpenGL/Demo/redbook/__init__.py' not found (or not a regular file) package init file 'OpenGL/Demo/NeHe/__init__.py' not found (or not a regular file) package init file 'OpenGL/Demo/NeHe/lesson48/__init__.py' not found (or not a regular file) package init file 'OpenGL/Demo/NeHe/lesson44/__init__.py' not found (or not a regular file) package init file 'OpenGL/Demo/NeHe/lesson43/__init__.py' not found (or not a regular file) package init file 'OpenGL/Demo/GLUT/__init__.py' not found (or not a regular file) package init file 'OpenGL/Demo/GLUT/examples/__init__.py' not found (or not a regular file) package init file 'OpenGL/Demo/GLUT/tom/__init__.py' not found (or not a regular file) package init file 'OpenGL/Demo/tom/__init__.py' not found (or not a regular file) package init file 'OpenGL/Demo/dek/__init__.py' not found (or not a regular file) package init file 'OpenGL/Demo/dek/OglSurface/__init__.py' not found (or not a regular file) package init file 'OpenGL/Demo/GLE/__init__.py' not found (or not a regular file) package init file 'OpenGL/Demo/da/__init__.py' not found (or not a regular file) package init file 'OpenGL/scripts/__init__.py' not found (or not a regular file) package init file 'OpenGL/Demo/twburton/__init__.py' not found (or not a regular file) package init file 'OpenGL/Demo/suite/__init__.py' not found (or not a regular file) package init file 'OpenGL/Demo/rened/__init__.py' not found (or not a regular file) package init file 'OpenGL/Demo/redbook/__init__.py' not found (or not a regular file) package init file 'OpenGL/Demo/NeHe/__init__.py' not found (or not a regular file) package init file 'OpenGL/Demo/NeHe/lesson48/__init__.py' not found (or not a regular file) package init file 'OpenGL/Demo/NeHe/lesson44/__init__.py' not found (or not a regular file) package init file 'OpenGL/Demo/NeHe/lesson43/__init__.py' not found (or not a regular file) package init file 'OpenGL/Demo/GLUT/__init__.py' not found (or not a regular file) package init file 'OpenGL/Demo/GLUT/examples/__init__.py' not found (or not a regular file) package init file 'OpenGL/Demo/GLUT/tom/__init__.py' not found (or not a regular file) package init file 'OpenGL/Demo/tom/__init__.py' not found (or not a regular file) package init file 'OpenGL/Demo/dek/__init__.py' not found (or not a regular file) package init file 'OpenGL/Demo/dek/OglSurface/__init__.py' not found (or not a regular file) package init file 'OpenGL/Demo/GLE/__init__.py' not found (or not a regular file) package init file 'OpenGL/Demo/da/__init__.py' not found (or not a regular file) package init file 'OpenGL/scripts/__init__.py' not found (or not a regular file) running build_clib building 'interface_util' library running build_ext building 'GL.ARB._shader_objects' extension gcc -pthread -fno-strict-aliasing -DNDEBUG -O3 -march=i486 -mcpu=i686 -fPIC -DGLX_PLATFORM -I/usr/include -I/usr/local/include -I/usr/X11/include -I/usr/X11R6/include -I/usr/include/python2.3 -c src/interface/GL.ARB._shader_objects.c -o build/temp.linux-i686-2.3/src/interface/GL.ARB._shader_objects.o In file included from src/interface/GL.ARB._shader_objects.c:8: src/interface/GL.ARB._shader_objects.0001.inc:1399: error: parse error before "obj" src/interface/GL.ARB._shader_objects.0001.inc: In function `glDeleteObjectARB': src/interface/GL.ARB._shader_objects.0001.inc:1399: error: parse error before "obj" src/interface/GL.ARB._shader_objects.0001.inc:1399: error: `obj' undeclared (first use in this function) src/interface/GL.ARB._shader_objects.0001.inc:1399: error: (Each undeclared identifier is reported only once src/interface/GL.ARB._shader_objects.0001.inc:1399: error: for each function it appears in.) src/interface/GL.ARB._shader_objects.0001.inc: At top level: src/interface/GL.ARB._shader_objects.0001.inc:1400: error: parse error before "glGetHandleARB" src/interface/GL.ARB._shader_objects.0001.inc: In function `glGetHandleARB': src/interface/GL.ARB._shader_objects.0001.inc:1400: error: parse error before '*' token src/interface/GL.ARB._shader_objects.0001.inc:1400: error: `GLhandleARB' declared as function returning a function src/interface/GL.ARB._shader_objects.0001.inc:1400: error: `proc_glGetHandleARB' undeclared (first use in this function) src/interface/GL.ARB._shader_objects.0001.inc:1400: error: parse error before "proc" src/interface/GL.ARB._shader_objects.0001.inc:1400: error: `proc' undeclared (first use in this function) src/interface/GL.ARB._shader_objects.0001.inc:1400: error: `proc' used prior to declaration src/interface/GL.ARB._shader_objects.0001.inc: At top level: src/interface/GL.ARB._shader_objects.0001.inc:1401: error: parse error before "containerObj" src/interface/GL.ARB._shader_objects.0001.inc: In function `glDetachObjectARB': src/interface/GL.ARB._shader_objects.0001.inc:1401: error: parse error before "containerObj" src/interface/GL.ARB._shader_objects.0001.inc:1401: error: `containerObj' undeclared (first use in this function) src/interface/GL.ARB._shader_objects.0001.inc:1401: error: `attachedObj' undeclared (first use in this function) src/interface/GL.ARB._shader_objects.0001.inc: At top level: src/interface/GL.ARB._shader_objects.0001.inc:1402: error: parse error before "glCreateShaderObjectARB" src/interface/GL.ARB._shader_objects.0001.inc: In function `glCreateShaderObjectARB': src/interface/GL.ARB._shader_objects.0001.inc:1402: error: parse error before '*' token src/interface/GL.ARB._shader_objects.0001.inc:1402: error: `GLhandleARB' declared as function returning a function src/interface/GL.ARB._shader_objects.0001.inc:1402: error: `proc_glCreateShaderObjectARB' undeclared (first use in this function) src/interface/GL.ARB._shader_objects.0001.inc:1402: error: parse error before "proc" src/interface/GL.ARB._shader_objects.0001.inc:1402: error: `proc' undeclared (first use in this function) src/interface/GL.ARB._shader_objects.0001.inc:1402: error: `proc' used prior to declaration src/interface/GL.ARB._shader_objects.0001.inc: At top level: src/interface/GL.ARB._shader_objects.0001.inc:1403: error: parse error before "shaderObj" src/interface/GL.ARB._shader_objects.0001.inc: In function `glShaderSourceARB': src/interface/GL.ARB._shader_objects.0001.inc:1403: error: parse error before "shaderObj" src/interface/GL.ARB._shader_objects.0001.inc:1403: error: `shaderObj' undeclared (first use in this function) src/interface/GL.ARB._shader_objects.0001.inc:1403: error: `count' undeclared (first use in this function) src/interface/GL.ARB._shader_objects.0001.inc:1403: error: `string' undeclared (first use in this function) src/interface/GL.ARB._shader_objects.0001.inc:1403: error: `length' undeclared (first use in this function) src/interface/GL.ARB._shader_objects.0001.inc: At top level: src/interface/GL.ARB._shader_objects.0001.inc:1404: error: parse error before "shaderObj" src/interface/GL.ARB._shader_objects.0001.inc: In function `glCompileShaderARB': src/interface/GL.ARB._shader_objects.0001.inc:1404: error: parse error before "shaderObj" src/interface/GL.ARB._shader_objects.0001.inc:1404: error: `shaderObj' undeclared (first use in this function) src/interface/GL.ARB._shader_objects.0001.inc: At top level: src/interface/GL.ARB._shader_objects.0001.inc:1405: error: parse error before "glCreateProgramObjectARB" src/interface/GL.ARB._shader_objects.0001.inc: In function `glCreateProgramObjectARB': src/interface/GL.ARB._shader_objects.0001.inc:1405: error: parse error before '*' token src/interface/GL.ARB._shader_objects.0001.inc:1405: error: `GLhandleARB' declared as function returning a function src/interface/GL.ARB._shader_objects.0001.inc:1405: error: `proc_glCreateProgramObjectARB' undeclared (first use in this function) src/interface/GL.ARB._shader_objects.0001.inc:1405: error: parse error before "proc" src/interface/GL.ARB._shader_objects.0001.inc:1405: error: `proc' undeclared (first use in this function) src/interface/GL.ARB._shader_objects.0001.inc:1405: error: `proc' used prior to declaration src/interface/GL.ARB._shader_objects.0001.inc: At top level: src/interface/GL.ARB._shader_objects.0001.inc:1406: error: parse error before "containerObj" src/interface/GL.ARB._shader_objects.0001.inc: In function `glAttachObjectARB': src/interface/GL.ARB._shader_objects.0001.inc:1406: error: parse error before "containerObj" src/interface/GL.ARB._shader_objects.0001.inc:1406: error: `containerObj' undeclared (first use in this function) src/interface/GL.ARB._shader_objects.0001.inc:1406: error: `obj' undeclared (first use in this function) src/interface/GL.ARB._shader_objects.0001.inc: At top level: src/interface/GL.ARB._shader_objects.0001.inc:1407: error: parse error before "programObj" src/interface/GL.ARB._shader_objects.0001.inc: In function `glLinkProgramARB': src/interface/GL.ARB._shader_objects.0001.inc:1407: error: parse error before "programObj" src/interface/GL.ARB._shader_objects.0001.inc:1407: error: `programObj' undeclared (first use in this function) src/interface/GL.ARB._shader_objects.0001.inc: At top level: src/interface/GL.ARB._shader_objects.0001.inc:1408: error: parse error before "programObj" src/interface/GL.ARB._shader_objects.0001.inc: In function `glUseProgramObjectARB': src/interface/GL.ARB._shader_objects.0001.inc:1408: error: parse error before "programObj" src/interface/GL.ARB._shader_objects.0001.inc:1408: error: `programObj' undeclared (first use in this function) src/interface/GL.ARB._shader_objects.0001.inc: At top level: src/interface/GL.ARB._shader_objects.0001.inc:1409: error: parse error before "programObj" src/interface/GL.ARB._shader_objects.0001.inc: In function `glValidateProgramARB': src/interface/GL.ARB._shader_objects.0001.inc:1409: error: parse error before "programObj" src/interface/GL.ARB._shader_objects.0001.inc:1409: error: `programObj' undeclared (first use in this function) src/interface/GL.ARB._shader_objects.0001.inc: At top level: src/interface/GL.ARB._shader_objects.0001.inc:1429: error: parse error before "obj" src/interface/GL.ARB._shader_objects.0001.inc: In function `glGetObjectParameterfvARB': src/interface/GL.ARB._shader_objects.0001.inc:1429: error: parse error before "obj" src/interface/GL.ARB._shader_objects.0001.inc:1429: error: `obj' undeclared (first use in this function) src/interface/GL.ARB._shader_objects.0001.inc:1429: error: `pname' undeclared (first use in this function) src/interface/GL.ARB._shader_objects.0001.inc:1429: error: `params' undeclared (first use in this function) src/interface/GL.ARB._shader_objects.0001.inc: At top level: src/interface/GL.ARB._shader_objects.0001.inc:1430: error: parse error before "obj" src/interface/GL.ARB._shader_objects.0001.inc: In function `glGetObjectParameterivARB': src/interface/GL.ARB._shader_objects.0001.inc:1430: error: parse error before "obj" src/interface/GL.ARB._shader_objects.0001.inc:1430: error: `obj' undeclared (first use in this function) src/interface/GL.ARB._shader_objects.0001.inc:1430: error: `pname' undeclared (first use in this function) src/interface/GL.ARB._shader_objects.0001.inc:1430: error: `params' undeclared (first use in this function) src/interface/GL.ARB._shader_objects.0001.inc: At top level: src/interface/GL.ARB._shader_objects.0001.inc:1431: error: parse error before "obj" src/interface/GL.ARB._shader_objects.0001.inc: In function `glGetInfoLogARB': src/interface/GL.ARB._shader_objects.0001.inc:1431: error: parse error before "obj" src/interface/GL.ARB._shader_objects.0001.inc:1431: error: `obj' undeclared (first use in this function) src/interface/GL.ARB._shader_objects.0001.inc:1431: error: `maxLength' undeclared (first use in this function) src/interface/GL.ARB._shader_objects.0001.inc:1431: error: `length' undeclared (first use in this function) src/interface/GL.ARB._shader_objects.0001.inc:1431: error: `infoLog' undeclared (first use in this function) src/interface/GL.ARB._shader_objects.0001.inc: At top level: src/interface/GL.ARB._shader_objects.0001.inc:1432: error: parse error before "containerObj" src/interface/GL.ARB._shader_objects.0001.inc: In function `glGetAttachedObjectsARB': src/interface/GL.ARB._shader_objects.0001.inc:1432: error: parse error before "containerObj" src/interface/GL.ARB._shader_objects.0001.inc:1432: error: `containerObj' undeclared (first use in this function) src/interface/GL.ARB._shader_objects.0001.inc:1432: error: `maxCount' undeclared (first use in this function) src/interface/GL.ARB._shader_objects.0001.inc:1432: error: `count' undeclared (first use in this function) src/interface/GL.ARB._shader_objects.0001.inc:1432: error: `obj' undeclared (first use in this function) src/interface/GL.ARB._shader_objects.0001.inc: At top level: src/interface/GL.ARB._shader_objects.0001.inc:1433: error: parse error before "programObj" src/interface/GL.ARB._shader_objects.0001.inc: In function `glGetUniformLocationARB': src/interface/GL.ARB._shader_objects.0001.inc:1433: error: parse error before "programObj" src/interface/GL.ARB._shader_objects.0001.inc:1433: error: `programObj' undeclared (first use in this function) src/interface/GL.ARB._shader_objects.0001.inc:1433: error: `name' undeclared (first use in this function) src/interface/GL.ARB._shader_objects.0001.inc: At top level: src/interface/GL.ARB._shader_objects.0001.inc:1434: error: parse error before "programObj" src/interface/GL.ARB._shader_objects.0001.inc: In function `glGetActiveUniformARB': src/interface/GL.ARB._shader_objects.0001.inc:1434: error: parse error before "programObj" src/interface/GL.ARB._shader_objects.0001.inc:1434: error: `programObj' undeclared (first use in this function) src/interface/GL.ARB._shader_objects.0001.inc:1434: error: `maxLength' undeclared (first use in this function) src/interface/GL.ARB._shader_objects.0001.inc:1434: error: `length' undeclared (first use in this function) src/interface/GL.ARB._shader_objects.0001.inc:1434: error: `size' undeclared (first use in this function) src/interface/GL.ARB._shader_objects.0001.inc:1434: error: `type' undeclared (first use in this function) src/interface/GL.ARB._shader_objects.0001.inc:1434: error: `name' undeclared (first use in this function) src/interface/GL.ARB._shader_objects.0001.inc: At top level: src/interface/GL.ARB._shader_objects.0001.inc:1435: error: parse error before "programObj" src/interface/GL.ARB._shader_objects.0001.inc: In function `glGetUniformfvARB': src/interface/GL.ARB._shader_objects.0001.inc:1435: error: parse error before "programObj" src/interface/GL.ARB._shader_objects.0001.inc:1435: error: `programObj' undeclared (first use in this function) src/interface/GL.ARB._shader_objects.0001.inc:1435: error: `location' undeclared (first use in this function) src/interface/GL.ARB._shader_objects.0001.inc:1435: error: `params' undeclared (first use in this function) src/interface/GL.ARB._shader_objects.0001.inc: At top level: src/interface/GL.ARB._shader_objects.0001.inc:1436: error: parse error before "programObj" src/interface/GL.ARB._shader_objects.0001.inc: In function `glGetUniformivARB': src/interface/GL.ARB._shader_objects.0001.inc:1436: error: parse error before "programObj" src/interface/GL.ARB._shader_objects.0001.inc:1436: error: `programObj' undeclared (first use in this function) src/interface/GL.ARB._shader_objects.0001.inc:1436: error: `location' undeclared (first use in this function) src/interface/GL.ARB._shader_objects.0001.inc:1436: error: `params' undeclared (first use in this function) src/interface/GL.ARB._shader_objects.0001.inc: At top level: src/interface/GL.ARB._shader_objects.0001.inc:1437: error: parse error before "obj" src/interface/GL.ARB._shader_objects.0001.inc: In function `glGetShaderSourceARB': src/interface/GL.ARB._shader_objects.0001.inc:1437: error: parse error before "obj" src/interface/GL.ARB._shader_objects.0001.inc:1437: error: `obj' undeclared (first use in this function) src/interface/GL.ARB._shader_objects.0001.inc:1437: error: `maxLength' undeclared (first use in this function) src/interface/GL.ARB._shader_objects.0001.inc:1437: error: `length' undeclared (first use in this function) src/interface/GL.ARB._shader_objects.0001.inc:1437: error: `source' undeclared (first use in this function) In file included from src/interface/GL.ARB._shader_objects.c:8: src/interface/GL.ARB._shader_objects.0001.inc: In function `_wrap_glDeleteObjectARB': src/interface/GL.ARB._shader_objects.0001.inc:1935: error: `GLhandleARB' undeclared (first use in this function) src/interface/GL.ARB._shader_objects.0001.inc:1935: error: parse error before "arg1" src/interface/GL.ARB._shader_objects.0001.inc:1940: error: `arg1' undeclared (first use in this function) src/interface/GL.ARB._shader_objects.0001.inc: In function `_wrap_glGetHandleARB': src/interface/GL.ARB._shader_objects.0001.inc:1960: error: `GLhandleARB' undeclared (first use in this function) src/interface/GL.ARB._shader_objects.0001.inc:1960: error: parse error before "result" src/interface/GL.ARB._shader_objects.0001.inc:1969: error: `result' undeclared (first use in this function) src/interface/GL.ARB._shader_objects.0001.inc:1969: error: parse error before "glGetHandleARB" src/interface/GL.ARB._shader_objects.0001.inc: In function `_wrap_glDetachObjectARB': src/interface/GL.ARB._shader_objects.0001.inc:1986: error: `GLhandleARB' undeclared (first use in this function) src/interface/GL.ARB._shader_objects.0001.inc:1986: error: parse error before "arg1" src/interface/GL.ARB._shader_objects.0001.inc:1993: error: `arg1' undeclared (first use in this function) src/interface/GL.ARB._shader_objects.0001.inc:1997: error: `arg2' undeclared (first use in this function) src/interface/GL.ARB._shader_objects.0001.inc: In function `_wrap_glCreateShaderObjectARB': src/interface/GL.ARB._shader_objects.0001.inc:2017: error: `GLhandleARB' undeclared (first use in this function) src/interface/GL.ARB._shader_objects.0001.inc:2017: error: parse error before "result" src/interface/GL.ARB._shader_objects.0001.inc:2026: error: `result' undeclared (first use in this function) src/interface/GL.ARB._shader_objects.0001.inc:2026: error: parse error before "glCreateShaderObjectARB" src/interface/GL.ARB._shader_objects.0001.inc: In function `_wrap_glShaderSourceARB': src/interface/GL.ARB._shader_objects.0001.inc:2043: error: `GLhandleARB' undeclared (first use in this function) src/interface/GL.ARB._shader_objects.0001.inc:2043: error: parse error before "arg1" src/interface/GL.ARB._shader_objects.0001.inc:2045: error: `GLcharARB' undeclared (first use in this function) src/interface/GL.ARB._shader_objects.0001.inc:2045: error: `arg3' undeclared (first use in this function) src/interface/GL.ARB._shader_objects.0001.inc:2045: error: parse error before ')' token src/interface/GL.ARB._shader_objects.0001.inc:2055: error: `arg1' undeclared (first use in this function) src/interface/GL.ARB._shader_objects.0001.inc:2080: error: parse error before "const" src/interface/GL.ARB._shader_objects.0001.inc: In function `_wrap_glCompileShaderARB': src/interface/GL.ARB._shader_objects.0001.inc:2101: error: `GLhandleARB' undeclared (first use in this function) src/interface/GL.ARB._shader_objects.0001.inc:2101: error: parse error before "arg1" src/interface/GL.ARB._shader_objects.0001.inc:2106: error: `arg1' undeclared (first use in this function) src/interface/GL.ARB._shader_objects.0001.inc: In function `_wrap_glCreateProgramObjectARB': src/interface/GL.ARB._shader_objects.0001.inc:2125: error: `GLhandleARB' undeclared (first use in this function) src/interface/GL.ARB._shader_objects.0001.inc:2125: error: parse error before "result" src/interface/GL.ARB._shader_objects.0001.inc:2129: error: `result' undeclared (first use in this function) src/interface/GL.ARB._shader_objects.0001.inc:2129: error: parse error before "glCreateProgramObjectARB" src/interface/GL.ARB._shader_objects.0001.inc: In function `_wrap_glAttachObjectARB': src/interface/GL.ARB._shader_objects.0001.inc:2146: error: `GLhandleARB' undeclared (first use in this function) src/interface/GL.ARB._shader_objects.0001.inc:2146: error: parse error before "arg1" src/interface/GL.ARB._shader_objects.0001.inc:2153: error: `arg1' undeclared (first use in this function) src/interface/GL.ARB._shader_objects.0001.inc:2157: error: `arg2' undeclared (first use in this function) src/interface/GL.ARB._shader_objects.0001.inc: In function `_wrap_glLinkProgramARB': src/interface/GL.ARB._shader_objects.0001.inc:2176: error: `GLhandleARB' undeclared (first use in this function) src/interface/GL.ARB._shader_objects.0001.inc:2176: error: parse error before "arg1" src/interface/GL.ARB._shader_objects.0001.inc:2181: error: `arg1' undeclared (first use in this function) src/interface/GL.ARB._shader_objects.0001.inc: In function `_wrap_glUseProgramObjectARB': src/interface/GL.ARB._shader_objects.0001.inc:2200: error: `GLhandleARB' undeclared (first use in this function) src/interface/GL.ARB._shader_objects.0001.inc:2200: error: parse error before "arg1" src/interface/GL.ARB._shader_objects.0001.inc:2205: error: `arg1' undeclared (first use in this function) src/interface/GL.ARB._shader_objects.0001.inc: In function `_wrap_glValidateProgramARB': src/interface/GL.ARB._shader_objects.0001.inc:2224: error: `GLhandleARB' undeclared (first use in this function) src/interface/GL.ARB._shader_objects.0001.inc:2224: error: parse error before "arg1" src/interface/GL.ARB._shader_objects.0001.inc:2229: error: `arg1' undeclared (first use in this function) src/interface/GL.ARB._shader_objects.0001.inc: In function `_wrap_glGetObjectParameterfvARB': src/interface/GL.ARB._shader_objects.0001.inc:3169: error: `GLhandleARB' undeclared (first use in this function) src/interface/GL.ARB._shader_objects.0001.inc:3169: error: parse error before "arg1" src/interface/GL.ARB._shader_objects.0001.inc:3178: error: `arg1' undeclared (first use in this function) src/interface/GL.ARB._shader_objects.0001.inc: In function `_wrap_glGetObjectParameterivARB': src/interface/GL.ARB._shader_objects.0001.inc:3203: error: `GLhandleARB' undeclared (first use in this function) src/interface/GL.ARB._shader_objects.0001.inc:3203: error: parse error before "arg1" src/interface/GL.ARB._shader_objects.0001.inc:3212: error: `arg1' undeclared (first use in this function) src/interface/GL.ARB._shader_objects.0001.inc: In function `_wrap_glGetInfoLogARB': src/interface/GL.ARB._shader_objects.0001.inc:3237: error: `GLhandleARB' undeclared (first use in this function) src/interface/GL.ARB._shader_objects.0001.inc:3237: error: parse error before "arg1" src/interface/GL.ARB._shader_objects.0001.inc:3240: error: `GLcharARB' undeclared (first use in this function) src/interface/GL.ARB._shader_objects.0001.inc:3240: error: `arg4' undeclared (first use in this function) src/interface/GL.ARB._shader_objects.0001.inc:3240: error: parse error before ')' token src/interface/GL.ARB._shader_objects.0001.inc:3248: error: `arg1' undeclared (first use in this function) src/interface/GL.ARB._shader_objects.0001.inc: In function `_wrap_glGetAttachedObjectsARB': src/interface/GL.ARB._shader_objects.0001.inc:3276: error: `GLhandleARB' undeclared (first use in this function) src/interface/GL.ARB._shader_objects.0001.inc:3276: error: parse error before "arg1" src/interface/GL.ARB._shader_objects.0001.inc:3279: error: `arg4' undeclared (first use in this function) src/interface/GL.ARB._shader_objects.0001.inc:3279: error: parse error before ')' token src/interface/GL.ARB._shader_objects.0001.inc:3287: error: `arg1' undeclared (first use in this function) src/interface/GL.ARB._shader_objects.0001.inc: In function `_wrap_glGetUniformLocationARB': src/interface/GL.ARB._shader_objects.0001.inc:3314: error: `GLhandleARB' undeclared (first use in this function) src/interface/GL.ARB._shader_objects.0001.inc:3314: error: parse error before "arg1" src/interface/GL.ARB._shader_objects.0001.inc:3315: error: `GLcharARB' undeclared (first use in this function) src/interface/GL.ARB._shader_objects.0001.inc:3315: error: `arg2' undeclared (first use in this function) src/interface/GL.ARB._shader_objects.0001.inc:3315: error: parse error before ')' token src/interface/GL.ARB._shader_objects.0001.inc:3322: error: `arg1' undeclared (first use in this function) src/interface/GL.ARB._shader_objects.0001.inc:3329: error: parse error before "const" src/interface/GL.ARB._shader_objects.0001.inc: In function `_wrap_glGetActiveUniformARB': src/interface/GL.ARB._shader_objects.0001.inc:3346: error: `GLhandleARB' undeclared (first use in this function) src/interface/GL.ARB._shader_objects.0001.inc:3346: error: parse error before "arg1" src/interface/GL.ARB._shader_objects.0001.inc:3352: error: `GLcharARB' undeclared (first use in this function) src/interface/GL.ARB._shader_objects.0001.inc:3352: error: `arg7' undeclared (first use in this function) src/interface/GL.ARB._shader_objects.0001.inc:3352: error: parse error before ')' token src/interface/GL.ARB._shader_objects.0001.inc:3363: error: `arg1' undeclared (first use in this function) src/interface/GL.ARB._shader_objects.0001.inc: In function `_wrap_glGetUniformfvARB': src/interface/GL.ARB._shader_objects.0001.inc:3399: error: `GLhandleARB' undeclared (first use in this function) src/interface/GL.ARB._shader_objects.0001.inc:3399: error: parse error before "arg1" src/interface/GL.ARB._shader_objects.0001.inc:3408: error: `arg1' undeclared (first use in this function) src/interface/GL.ARB._shader_objects.0001.inc: In function `_wrap_glGetUniformivARB': src/interface/GL.ARB._shader_objects.0001.inc:3433: error: `GLhandleARB' undeclared (first use in this function) src/interface/GL.ARB._shader_objects.0001.inc:3433: error: parse error before "arg1" src/interface/GL.ARB._shader_objects.0001.inc:3442: error: `arg1' undeclared (first use in this function) src/interface/GL.ARB._shader_objects.0001.inc: In function `_wrap_glGetShaderSourceARB': src/interface/GL.ARB._shader_objects.0001.inc:3467: error: `GLhandleARB' undeclared (first use in this function) src/interface/GL.ARB._shader_objects.0001.inc:3467: error: parse error before "arg1" src/interface/GL.ARB._shader_objects.0001.inc:3470: error: `GLcharARB' undeclared (first use in this function) src/interface/GL.ARB._shader_objects.0001.inc:3470: error: `arg4' undeclared (first use in this function) src/interface/GL.ARB._shader_objects.0001.inc:3470: error: parse error before ')' token src/interface/GL.ARB._shader_objects.0001.inc:3478: error: `arg1' undeclared (first use in this function) error: command 'gcc' failed with exit status 1 |
From: Mike C. F. <mcf...@ro...> - 2005-08-01 17:55:09
|
Simon Wittber wrote: >I'm trying to use glRenderMode(GL_SELECT) to implement picking. The >problem is, almost all picking examples deal with 3D projection >(gluPerspective), whereas I am using glOrtho, so I suspect I need to >do something different. > > I don't actually use glOrtho, but I'll try to help... >The below code doesn't work, it accumulates hits in the select buffer, >but they are not the hits I expect. Any pointers on where I might be >going wrong? > > From the docs for gluPickMatrix: The matrix created by gluPickMatrix is multiplied by the current matrix just as if glMultMatrix is called with the generated matrix. To effectively use the generated pick matrix for picking, first call glLoadIdentity to load an identity matrix onto the perspective matrix stack. Then call gluPickMatrix, and finally, call a command (such as gluPerspective) to multiply the perspective matrix by the pick matrix. which suggests you want the gluOrtho call *after* the gluPickMatrix call. I don't actually recall reversing the order in *my* code, but then I haven't written code of this type in a long while. >Also, is there a simple way to get OpenGL to render a small box on the >screen which shows exactly which region is being picked? > > You are creating a rectangular prism centred around the pick location. So, do 8 gluUnProjects, one for each corner of the prism, with the near face having winz of 0.0 and the far face having winz of 1.0. That should give you a rectangle in model-space coordinates that you can render (if I'm working through the logic correctly). btw, you might want to check around and see if bitmap operations where the bitmap position is outside of the picking matrix actually register with a selection buffer (i.e. they don't draw if the bitmap position is out-of-frustum, do they select when outside the picking frustum?) Anyway, HTH, Mike ... > glLoadIdentity() > viewport = glGetIntegerv(GL_VIEWPORT) > n_w,n_h = display._screen.dimensions > glOrtho(-n_w,n_w,-n_h,n_h,1,0) > gluPickMatrix(position[0],viewport[3]-position[1],3,3,viewport) > > ... > display._screen.blit(i.item, i.position) > > > ... -- ________________________________________________ Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com |
From: Simon W. <sim...@gm...> - 2005-07-31 03:14:27
|
I'm trying to use glRenderMode(GL_SELECT) to implement picking. The problem is, almost all picking examples deal with 3D projection (gluPerspective), whereas I am using glOrtho, so I suspect I need to do something different. The below code doesn't work, it accumulates hits in the select buffer, but they are not the hits I expect. Any pointers on where I might be going wrong? Also, is there a simple way to get OpenGL to render a small box on the screen which shows exactly which region is being picked? Thanks for any help...=20 Sw. def pick(self, position): glInitNames() glSelectBuffer(64) glRenderMode(GL_SELECT) glMatrixMode(GL_PROJECTION) glPushMatrix() glLoadIdentity() viewport =3D glGetIntegerv(GL_VIEWPORT) n_w,n_h =3D display._screen.dimensions glOrtho(-n_w,n_w,-n_h,n_h,1,0) gluPickMatrix(position[0],viewport[3]-position[1],3,3,viewport) glMatrixMode(GL_MODELVIEW) for index, i in enumerate(self.items): glPushName(index) display._screen.blit(i.item, i.position) glPopName() glMatrixMode(GL_PROJECTION) glPopMatrix() glMatrixMode(GL_MODELVIEW) glFlush() =20 items =3D [] for hit in glRenderMode(GL_RENDER): items =3D items + [self.items[i] for i in hit[2]] return items |
From: Mike C. F. <mcf...@ro...> - 2005-07-30 13:46:10
|
Erik Max Francis wrote: >I was interesting in adding selection and hit testing to ZOE, and was >looking at the PyOpenGL wrappers' handling of selection and picking. I >see glSelectBuffer to specify the size of the buffer, and glRenderMode >properly returns the number of hits when put back into GL_RENDER mode, >but I don't see any way within PyOpenGL itself to access the select >buffer to actually process the hits. Is there any way to do this >without using OpenGLContext? (If not, does this make sense, given that >OpenGLContext is supposed to be an additional helper library for a >gentle introduction to OpenGL?) > > I think you're missing what's returned from the glRenderMode code (which is non-standard OpenGL, to avoid the need for Python code using and decoding structured pointers), from OpenGLContext: nameStack = list(glRenderMode(GL_RENDER)) that is, you get a stack of name records (i.e. your glSelectBuffer with (near,far,names) records) back from the glRenderMode call, *not* just a count of the records produced. In general, you shouldn't *need* OpenGLContext to do anything, as all of its OpenGL code is written directly in Python to PyOpenGL's API (that was its original purpose in life, to test those APIs). It is, however, intended to provide a source for sample code showing how to accomplish effects when using PyOpenGL, so from renderpass.py: event.setObjectPaths([ nodepath.NodePath(filter(None,[ self.selectable.get(name) for name in names ])) for (near,far,names) in nameStack ]) shows you how to deal with the glSelectBuffer result, namely that it's a near value, a far value, and a set of integer names (the name stack) for each record in the set. OpenGLContext is here creating a node-path of all selectable objects from the scenegraph root to the final selected object using the nameStack and a registered set of name:node values (self.selectable). It will use those to populate the event objects that show up in the OpenGLContext mouse-event-handling APIs. HTH, Mike -- ________________________________________________ Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com |
From: Mike C. F. <mcf...@ro...> - 2005-07-30 13:31:05
|
Silverstein wrote: > I have an application written in c++ and motif which draws into a 3D > Workspace using OpenGL. I'd like to be able to use PyOpenGL to draw > into this same window. To do this I need to be able to specify to > PyOpenGL which window is the drawing window. Actually, I think you'll find that's a fairly involved way to go about it. > I think I can manage to get the window/widget id back to python by > providing some python accessor functions which will allow my python > app to get this info. What is not clear to me is what function(s) > would I call to set the buffer appropriately. > > Typically we call glXSwapBuffers in our c++ app, but I don't see any > glx* functions in PyOpenGL. Right, those functions are called by the GUI library's OpenGL widget. > What module and/or functions can I use to do this? > > Any pointers, suggestions would be much appreciated. In your C++ code, set the current GL context, then call the PyOpenGL code. When you want to do a glx-level function, return control to your application, either by returning from your PyOpenGL function, or by providing a wrapped method to your code that calls whichever piece of code you want to trigger. PyOpenGL renders to the current rendering context of the process (as does all OpenGL), so you don't need to do anything special for connecting it to your widgets. The only time you need the special code is when you want to make the window manipulations themselves (glx calls) from Python. If you really do want the window manipulation to happen in Python, you can look at the source code for PyGame's GL widget, or the Togl source-code, which are just encapsulations of the platform APIs for use by Python (or TCL). HTH, Mike -- ________________________________________________ Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com |
From: Silverstein <he...@sc...> - 2005-07-30 01:17:23
|
I have an application written in c++ and motif which draws into a 3D Workspace using OpenGL. I'd like to be able to use PyOpenGL to draw into this same window. To do this I need to be able to specify to PyOpenGL which window is the drawing window. I think I can manage to get the window/widget id back to python by providing some python accessor functions which will allow my python app to get this info. What is not clear to me is what function(s) would I call to set the buffer appropriately. Typically we call glXSwapBuffers in our c++ app, but I don't see any glx* functions in PyOpenGL. What module and/or functions can I use to do this? Any pointers, suggestions would be much appreciated. Herc |
From: <py...@me...> - 2005-07-29 03:04:38
|
Registration is now open for the first Python Game Programming Challenge (also known as PyWeek). The challenge runs from Sunday August 28th to Sunday September 4th. That means there's only (checks website) 29 days to go before the challenge starts! Full details about the challenge, and registration, at the website: http://www.mechanicalcat.net/tech/PyWeek/ You may enter either individually or as a team. If you're keen and would like to join a team, but can't organise your friends, then sign up anyway and offer your services to other entrants. The challenge will use skills in Python programming, graphics, sound or music. For those who came in late, the PyWeek challenge: 1. Invites entrants to create a game (coded in Python) in one week from scratch either as an individual or in a team, 2. Aims to be challenging and fun, 3. Entries must be developed during the competition, and must incorporate some theme decided at the start of the competition, 4. Will hopefully increase the public body of python game tools, code and expertise, 5. Will let a lot of people actually finish a game, and 6. May inspire new projects (with ready made teams!) -- Visit the PyWeek website: http://www.mechanicalcat.net/tech/PyWeek/ |
From: Matt B. <ma...@rt...> - 2005-07-24 01:18:27
|
Sending this to the main list, as your personal e-mail isn't accepting my=20 messages for some reason. Anyway, I am using the Z buffer. Is that a problem? =A0=A0=A0=A0=A0=A0=A0=A0-Matt Bailey On Sunday 17 July 2005 20:54, Fred Burton set 1,000 monkies in front of=20 keyboards and came up with the following: > Are you using Z-Buffering ? |
From: Matt B. <ma...@rt...> - 2005-07-14 08:40:20
|
Howdy all, I just ran into something really weird (and incredibly annoying) with textures and alpha channels. In my game, I've been using my own module to load a 3D model from an ASCII file and load a texture for this object with PIL (specifying the correct mode). The new object has an "update" function that pushes the matrix, does any translations, binds the object's texture, calls the object's display list, and pushes the matrix, thusly: glPushMatrix() glTranslate(self.x, self.y, self.z) glBindTexture(GL_TEXTURE_2D, self.model.texture) glCallList(self.model.displaylist) glPopMatrix() self.model is where the actual loading of the model and texture takes place, and functions as a holder for these. I have two basic types of objects.........one is a building, which uses a PNG file with no alpha channel (so loading it from PIL, I use the 'RGBA' mode). The other is my "ship", which uses alpha textures (RGBX mode). In the initialization of the game, I first call my "ship" object, which contains an update function essentially the same as the buildings object (aside from translations, the actual per-cycle OpenGL code is 100% identical). I then create some instances of the building object, with a non-alpha texture. I create several instances of this object at various locations. The problem is that my ship is not displaying with the alpha channel, it's just solid 100% opacity. However, if, after loading the building objects on initialization, I load another object with an alpha image/RGBX mode, the ship displays with the alpha texture as it should! I don't even have to ever use the new alpha object, all I have to do is load an object with an alpha texture some time after loading all the non-alpha textured objects. It's like the non-alpha textures "override" the alpha textures. Everything works if I load an alpha object last during the initialization, but this sure seems silly. I could also load my ship object last, but I want to know why this is acting this way in the first place. The way I see it, there's no connections between these two objects and OpenGL shouldn't care what the last texture that it loaded was because the texture loading code starts from scratch when loading the new texture. Any ideas? -Matt Bailey PS: Here's how I'm handling alpha vs non-alpha textures in my texture loader: if mode == 'RGBX': glTexImage2D(GL_TEXTURE_2D, 0, 3, ix, iy, 0, GL_RGBA, GL_UNSIGNED_BYTE, image) glBlendFunc(GL_ONE, GL_ZERO) elif mode == 'RGBA': glBlendFunc( GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA ) glEnable(GL_BLEND) glTexImage2D(GL_TEXTURE_2D, 0, 4, ix, iy, 0, GL_RGBA, GL_UNSIGNED_BYTE, image) As you can see, I'm making the same calls, just with different parameters, so nothing should be left "turned on/off" from the last texture call. "image" is an image loaded with PIL. |
From: Tom B. <to...@th...> - 2005-07-10 18:05:38
|
Well I finally was able to compile and install. I had to make a few changes to get it to work. First, to get past the error in my previous post, I had to change config/linux.cfg and modified: include_dirs=/usr/include:/usr/local/include:/usr/X11/include:/usr/X11R6/include to: include_dirs=/usr/local/include Then I got errors from src/interface/_GLUT.0014.inc. These errors were remedied by adding #include <GL/freeglut_ext.h> at line 2411 in src/interface/_GLUT.0014.inc. Finally, I got errors compiling Togl because togl.c and togl.h couldn't include tcl.h and tk.h. This was fixed by changing the include statements to: #include <tcl8.4/tcl.h> #include <tcl8.4/tk.h> So, after these changes it compiled with a lot of warnings and installed. I was able to import the OpenGL module from the python interpreter. Now I just need to write an application to see if it really works. Thanks, Tom |
From: Tom B. <to...@th...> - 2005-07-10 16:02:07
|
Hi, I am trying to install PyOpenGL-2.0.2.01 from the release tarball. I run 'python setup.py install' and see the errors given below. I'm not too worried about the missing __init__.py files. I don't know why they are not there but it doesn't look like they are necessary to build PyOpenGL. Now, the compile errors below them starting with src/interface/GL.ARB._shader_objects.0001.inc:1399: error: parse error before "obj" seem to be the major problem. The line it complains about is the last one in the following code snippet: #include <GL/glext.h> #if !EXT_DEFINES_PROTO || !defined(GL_ARB_shader_objects) DECLARE_VOID_EXT(glDeleteObjectARB, (GLhandleARB obj), (obj)) The glext.h header file is in /usr/local/inlcude/GL and it contains a typedef for GLhandleARB so I don't understand where the error is coming from. There is also a glext.h in /usr/include/GL which, does not contain a typedef for GLhandleARB. However, according to the compile command the glext.h in /usr/local/include/GL should be found first. gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -march=athlon-xp -Wall -Wstrict-prototypes -fPIC -DGLX_PLATFORM -I/usr/include -I/usr/local/include -I/usr/X11/include -I/usr/X11R6/include -I/usr/local/include/python2.4 -c src/interface/GL.ARB._shader_objects.c -o build/temp.linux-i686-2.4/src/interface/GL.ARB._shader_objects.o Here's my system and what's on it: Debian Sarge Python 2.4.1 swig 1.3.24-1 xlibmesa-gl 4.3.0.dfsg.1-1 Mesa 3D graphics library [XFree86] xlibmesa-gl-dev 4.3.0.dfsg.1-1 Mesa 3D graphics library development files [XFree86] xlibmesa-glu 4.3.0.dfsg.1-1 Mesa OpenGL utility library [XFree86] xlibmesa-glu-dev 4.3.0.dfsg.1-1 Mesa OpenGL utility library development files [XFree86] freeglut3 2.2.0-8 OpenGL Utility Toolkit freeglut3-dev 2.2.0-8 OpenGL Utility Toolkit development files libgle3 3.1.0-5 OpenGL tubing and extrusion library libglut3 3.7-25 the OpenGL Utility Toolkit libglut3-dev 3.7-25 development libraries and headers for GLUT I searched the archives and google and didn't find anybody with this particular compile problem. Is there something I'm missing that would cause these errors? Thanks, Tom package init file 'OpenGL/Demo/twburton/__init__.py' not found (or not a regular file) package init file 'OpenGL/Demo/tom/__init__.py' not found (or not a regular file) package init file 'OpenGL/Demo/suite/__init__.py' not found (or not a regular file) package init file 'OpenGL/Demo/rened/__init__.py' not found (or not a regular file) package init file 'OpenGL/Demo/redbook/__init__.py' not found (or not a regular file) package init file 'OpenGL/Demo/dek/__init__.py' not found (or not a regular file) package init file 'OpenGL/Demo/dek/OglSurface/__init__.py' not found (or not a regular file) package init file 'OpenGL/Demo/da/__init__.py' not found (or not a regular file) package init file 'OpenGL/Demo/NeHe/__init__.py' not found (or not a regular file) package init file 'OpenGL/Demo/NeHe/lesson48/__init__.py' not found (or not a regular file) package init file 'OpenGL/Demo/NeHe/lesson44/__init__.py' not found (or not a regular file) package init file 'OpenGL/Demo/NeHe/lesson43/__init__.py' not found (or not a regular file) package init file 'OpenGL/Demo/GLUT/__init__.py' not found (or not a regular file) package init file 'OpenGL/Demo/GLUT/tom/__init__.py' not found (or not a regular file) package init file 'OpenGL/Demo/GLUT/examples/__init__.py' not found (or not a regular file) package init file 'OpenGL/Demo/GLE/__init__.py' not found (or not a regular file) package init file 'OpenGL/scripts/__init__.py' not found (or not a regular file) package init file 'OpenGL/Demo/twburton/__init__.py' not found (or not a regular file) package init file 'OpenGL/Demo/tom/__init__.py' not found (or not a regular file) package init file 'OpenGL/Demo/suite/__init__.py' not found (or not a regular file) package init file 'OpenGL/Demo/rened/__init__.py' not found (or not a regular file) package init file 'OpenGL/Demo/redbook/__init__.py' not found (or not a regular file) package init file 'OpenGL/Demo/dek/__init__.py' not found (or not a regular file) package init file 'OpenGL/Demo/dek/OglSurface/__init__.py' not found (or not a regular file) package init file 'OpenGL/Demo/da/__init__.py' not found (or not a regular file) package init file 'OpenGL/Demo/NeHe/__init__.py' not found (or not a regular file) package init file 'OpenGL/Demo/NeHe/lesson48/__init__.py' not found (or not a regular file) package init file 'OpenGL/Demo/NeHe/lesson44/__init__.py' not found (or not a regular file) package init file 'OpenGL/Demo/NeHe/lesson43/__init__.py' not found (or not a regular file) package init file 'OpenGL/Demo/GLUT/__init__.py' not found (or not a regular file) package init file 'OpenGL/Demo/GLUT/tom/__init__.py' not found (or not a regular file) package init file 'OpenGL/Demo/GLUT/examples/__init__.py' not found (or not a regular file) package init file 'OpenGL/Demo/GLE/__init__.py' not found (or not a regular file) package init file 'OpenGL/scripts/__init__.py' not found (or not a regular file) running build_clib building 'interface_util' library running build_ext building 'GL.ARB._shader_objects' extension gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -march=athlon-xp -Wall -Wstrict-prototypes -fPIC -DGLX_PLATFORM -I/usr/include -I/usr/local/include -I/usr/X11/include -I/usr/X11R6/include -I/usr/local/include/python2.4 -c src/interface/GL.ARB._shader_objects.c -o build/temp.linux-i686-2.4/src/interface/GL.ARB._shader_objects.o In file included from src/interface/GL.ARB._shader_objects.c:8: src/interface/GL.ARB._shader_objects.0001.inc: In function `SWIG_Python_ConvertPtr': src/interface/GL.ARB._shader_objects.0001.inc:737: warning: suggest explicit braces to avoid ambiguous `else' src/interface/GL.ARB._shader_objects.0001.inc: At top level: src/interface/GL.ARB._shader_objects.0001.inc:1277: warning: function declaration isn't a prototype src/interface/GL.ARB._shader_objects.0001.inc:1325: warning: function declaration isn't a prototype src/interface/GL.ARB._shader_objects.0001.inc:1399: error: parse error before "obj" src/interface/GL.ARB._shader_objects.0001.inc:1399: warning: function declaration isn't a prototype src/interface/GL.ARB._shader_objects.0001.inc: In function `glDeleteObjectARB': src/interface/GL.ARB._shader_objects.0001.inc:1399: error: parse error before "obj" src/interface/GL.ARB._shader_objects.0001.inc:1399: warning: function declaration isn't a prototype src/interface/GL.ARB._shader_objects.0001.inc:1399: error: `obj' undeclared (first use in this function) src/interface/GL.ARB._shader_objects.0001.inc:1399: error: (Each undeclared identifier is reported only once src/interface/GL.ARB._shader_objects.0001.inc:1399: error: for each function it appears in.) src/interface/GL.ARB._shader_objects.0001.inc: At top level: src/interface/GL.ARB._shader_objects.0001.inc:1400: error: parse error before "glGetHandleARB" src/interface/GL.ARB._shader_objects.0001.inc:1400: warning: return type defaults to `int' src/interface/GL.ARB._shader_objects.0001.inc: In function `glGetHandleARB': src/interface/GL.ARB._shader_objects.0001.inc:1400: error: parse error before '*' token src/interface/GL.ARB._shader_objects.0001.inc:1400: warning: type defaults to `int' in declaration of `GLhandleARB' src/interface/GL.ARB._shader_objects.0001.inc:1400: error: `GLhandleARB' declared as function returning a function src/interface/GL.ARB._shader_objects.0001.inc:1400: warning: function declaration isn't a prototype src/interface/GL.ARB._shader_objects.0001.inc:1400: error: `proc_glGetHandleARB' undeclared (first use in this function) src/interface/GL.ARB._shader_objects.0001.inc:1400: error: parse error before "proc" src/interface/GL.ARB._shader_objects.0001.inc:1400: error: `proc' undeclared (first use in this function) src/interface/GL.ARB._shader_objects.0001.inc:1400: warning: implicit declaration of function `proc' src/interface/GL.ARB._shader_objects.0001.inc: At top level: src/interface/GL.ARB._shader_objects.0001.inc:1401: error: parse error before "containerObj" src/interface/GL.ARB._shader_objects.0001.inc:1401: warning: function declaration isn't a prototype src/interface/GL.ARB._shader_objects.0001.inc: In function `glDetachObjectARB': src/interface/GL.ARB._shader_objects.0001.inc:1401: error: parse error before "containerObj" src/interface/GL.ARB._shader_objects.0001.inc:1401: warning: function declaration isn't a prototype src/interface/GL.ARB._shader_objects.0001.inc:1401: error: `containerObj' undeclared (first use in this function) src/interface/GL.ARB._shader_objects.0001.inc:1401: error: `attachedObj' undeclared (first use in this function) src/interface/GL.ARB._shader_objects.0001.inc: At top level: src/interface/GL.ARB._shader_objects.0001.inc:1402: error: parse error before "glCreateShaderObjectARB" src/interface/GL.ARB._shader_objects.0001.inc:1402: warning: return type defaults to `int' src/interface/GL.ARB._shader_objects.0001.inc: In function `glCreateShaderObjectARB': src/interface/GL.ARB._shader_objects.0001.inc:1402: error: parse error before '*' token src/interface/GL.ARB._shader_objects.0001.inc:1402: warning: type defaults to `int' in declaration of `GLhandleARB' src/interface/GL.ARB._shader_objects.0001.inc:1402: error: `GLhandleARB' declared as function returning a function src/interface/GL.ARB._shader_objects.0001.inc:1402: warning: function declaration isn't a prototype src/interface/GL.ARB._shader_objects.0001.inc:1402: error: `proc_glCreateShaderObjectARB' undeclared (first use in this function) src/interface/GL.ARB._shader_objects.0001.inc:1402: error: parse error before "proc" src/interface/GL.ARB._shader_objects.0001.inc:1402: error: `proc' undeclared (first use in this function) src/interface/GL.ARB._shader_objects.0001.inc:1402: warning: implicit declaration of function `proc' ... |
From: <py...@me...> - 2005-07-08 02:23:06
|
The date for the first PyWeek challenge has been set: Sunday 28th August to Sunday 4th September (00:00UTC to 00:00UTC). The PyWeek competition: - Invites all Python programmers to write a game in one week from scratch either as an individual or in a team, - Is intended to be challenging and fun, - Will hopefully increase the public body of python game tools, code and expertise, - Will let a lot of people actually finish a game, and - May inspire new projects (with ready made teams!) Entries must be developed during the competition, and must incorporate some theme decided at the start of the competition. See the competition timetable (including competition dates in various timezones), rules, sign-up (commencing 6th August) at: http://www.mechanicalcat.net/tech/PyWeek Richard, the PyWeek coordinator ------------------------------------------------- This mail was sent through http://webmail.obsidian.com.au Brought to you by Obsidian Consulting Group. |
From: McAfee <mc...@sy...> - 2005-07-07 02:15:49
|
I tried to install PyOpenGL-2.0.2.01 via the command 'python setup.py install' but it failed with a gcc error...see below. # python setup.py build_ext -i Togl to be built: Togl-1.6 running build_ext building 'GL.3DFX._multisample' extension creating build/temp.solaris-2.9-sun4u-2.4/src/interface gcc -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -DGLX_PLATFORM -DNUMERIC -I/usr/openwin/include -I/mgl/apps/include -I/usr/local/include/python2.4/Numeric -I/usr/local/include/python2.4 -c src/interface/GL.3DFX._multisample.c -o build/temp.solaris-2.9-sun4u-2.4/src/interface/GL.3DFX._multisample.o In file included from src/interface/../config.h:68, from src/interface/GL.3DFX._multisample.c:6: /usr/openwin/include/GL/glx.h:9: warning: ignoring #pragma ident In file included from /usr/openwin/include/GL/glx.h:28, from src/interface/../config.h:68, from src/interface/GL.3DFX._multisample.c:6: /usr/openwin/include/X11/Xlib.h:32: warning: ignoring #pragma ident In file included from /usr/openwin/include/GL/glx.h:28, from src/interface/../config.h:68, from src/interface/GL.3DFX._multisample.c:6: /usr/openwin/include/X11/Xlib.h:529: warning: function declaration isn't a prototype In file included from /usr/openwin/include/GL/glx.h:29, from src/interface/../config.h:68, from src/interface/GL.3DFX._multisample.c:6: /usr/openwin/include/X11/Xutil.h:56: warning: ignoring #pragma ident In file included from /usr/openwin/include/GL/glx.h:30, from src/interface/../config.h:68, from src/interface/GL.3DFX._multisample.c:6: /usr/openwin/include/X11/Xmd.h:46: warning: ignoring #pragma ident In file included from /usr/openwin/include/GL/glx.h:31, from src/interface/../config.h:68, from src/interface/GL.3DFX._multisample.c:6: /usr/openwin/include/GL/gl.h:9: warning: ignoring #pragma ident In file included from /usr/openwin/include/GL/gl.h:2923, from /usr/openwin/include/GL/glx.h:31, from src/interface/../config.h:68, from src/interface/GL.3DFX._multisample.c:6: /usr/openwin/include/GL/glmacros.h:9: warning: ignoring #pragma ident In file included from /usr/openwin/include/GL/glx.h:32, from src/interface/../config.h:68, from src/interface/GL.3DFX._multisample.c:6: /usr/openwin/include/GL/glxproto.h:10: warning: ignoring #pragma ident In file included from /usr/openwin/include/GL/glxproto.h:29, from /usr/openwin/include/GL/glx.h:32, from src/interface/../config.h:68, from src/interface/GL.3DFX._multisample.c:6: /usr/openwin/include/GL/glxmd.h:9: warning: ignoring #pragma ident In file included from /usr/openwin/include/GL/glx.h:33, from src/interface/../config.h:68, from src/interface/GL.3DFX._multisample.c:6: /usr/openwin/include/GL/glxtokens.h:9: warning: ignoring #pragma ident In file included from src/interface/../config.h:68, from src/interface/GL.3DFX._multisample.c:6: /usr/openwin/include/GL/glx.h:209: warning: function declaration isn't a prototype In file included from src/interface/../config.h:102, from src/interface/GL.3DFX._multisample.c:6: /usr/openwin/include/GL/glu.h:6: warning: ignoring #pragma ident /usr/openwin/include/GL/glu.h:292: warning: function declaration isn't a prototype /usr/openwin/include/GL/glu.h:304: warning: function declaration isn't a prototype /usr/openwin/include/GL/glu.h:313: warning: function declaration isn't a prototype In file included from src/interface/GL.3DFX._multisample.c:6: src/interface/../config.h:103:21: GL/glut.h: No such file or directory In file included from src/interface/GL.3DFX._multisample.c:8: src/interface/GL.3DFX._multisample.0001.inc:472: warning: function declaration isn't a prototype src/interface/GL.3DFX._multisample.0001.inc: In function `SWIG_Python_ConvertPtr': src/interface/GL.3DFX._multisample.0001.inc:737: warning: suggest explicit braces to avoid ambiguous `else' src/interface/GL.3DFX._multisample.0001.inc: At top level: src/interface/GL.3DFX._multisample.0001.inc:1274: warning: function declaration isn't a prototype src/interface/GL.3DFX._multisample.0001.inc:1322: warning: function declaration isn't a prototype In file included from src/interface/GL.3DFX._multisample.c:8: src/interface/GL.3DFX._multisample.0001.inc:1393:22: GL/glext.h: No such file or directory src/interface/GL.3DFX._multisample.0001.inc:1413: warning: function declaration isn't a prototype src/interface/GL.3DFX._multisample.0001.inc:216: warning: 'SWIG_TypeDynamicCast' defined but not used src/interface/GL.3DFX._multisample.0001.inc:329: warning: 'SWIG_PropagateClientData' defined but not used src/interface/GL.3DFX._multisample.0001.inc:602: warning: 'SWIG_Python_addvarlink' defined but not used src/interface/GL.3DFX._multisample.0001.inc:812: warning: 'SWIG_Python_MustGetPtr' defined but not used src/interface/GL.3DFX._multisample.0001.inc:826: warning: 'SWIG_Python_ConvertPacked' defined but not used src/interface/GL.3DFX._multisample.0001.inc:1410: warning: '_doc_glInitMultisample3DFX' defined but not used error: command 'gcc' failed with exit status 1 # Can anyone help me resolve this? Thanks. Graeme N.B.: Env: Solaris-sparc, Python 2.4, wxPython 2.6.0.1 |