pyopengl-users Mailing List for PyOpenGL (Page 63)
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: Astan C. <st...@al...> - 2008-04-08 05:03:44
|
Hi, Im trying to make this: green = (( 0.0, 1.0, 0.0, 1 )) glColor4f( 0, 1, 0, .1 ) glBegin( GL_POLYGON ) glMaterialfv( GL_FRONT, GL_EMISSION, green ) rad = 0.5 for i in xrange(0,360,5): glVertex3f(x1+math.sin(i*math.pi/180.0)*rad , y1+math.cos(i*math.pi/180.0)*rad,z1) glEnd( ) to be opaque. I read that the last part of glColor4f() allows alpha channels for transparency levels. I changed it and it still remains solid. What am I doing wrong? Thanks again for any help. Cheers Astan -- "Formulations of number theory: Complete, Consistent, Non-trivial. Choose two." Animal Logic http://www.animallogic.com Please think of the environment before printing this email. This email and any attachments may be confidential and/or privileged. If you are not the intended recipient of this email, you must not disclose or use the information contained in it. Please notify the sender immediately and delete this document if you have received it in error. We do not guarantee this email is error or virus free. |
From: altern <al...@gm...> - 2008-04-04 19:48:14
|
Mike C. Fletcher(e)k dio: > René Dudfield wrote: >> hey, >> >> yeah, I'm not really sure. I think it's mainly because setuptools >> does not work with py2exe. >> > Yes, we had a hack that was working for a version or two of py2exe, but > that seems to be non-functional by recent reports. The problem really > should be solved within py2exe, so that it can handle any project that > uses eggs, but we could use a hack that works in the meantime if anyone > wants to play with it. it would be good to have some kind of solution for this, even if it is not nice... something that at least works. enrike |
From: Mike C. F. <mcf...@vr...> - 2008-04-04 14:53:57
|
René Dudfield wrote: > hey, > > yeah, I'm not really sure. I think it's mainly because setuptools > does not work with py2exe. > Yes, we had a hack that was working for a version or two of py2exe, but that seems to be non-functional by recent reports. The problem really should be solved within py2exe, so that it can handle any project that uses eggs, but we could use a hack that works in the meantime if anyone wants to play with it. Take care, Mike -- ________________________________________________ Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com |
From: R. D. <re...@gm...> - 2008-04-03 23:46:57
|
hey, yeah, I'm not really sure. I think it's mainly because setuptools does not work with py2exe. On Thu, Apr 3, 2008 at 12:06 PM, Astan Chee <st...@al...> wrote: > > Thanks for the info. I was just wondering why this is happening? The import > of modules are not in run-time,right? > Oh well, looks like I'll have to wait them. > Cheers > > > > René Dudfield wrote: > Hi, > > pyopengl 2.x seems to work with py2exe. Maybe you could use that. I > haven't heard of anyone getting 3.x working at all with it. > > Here's a more recent build of 2.x for python2.5. It doesn't support > numeric, or togl. > http://thorbrian.com/pyopengl/builds.php > > > cheers, > > > On undefined, Astan Chee <st...@al...> wrote: > > > Hi, > Im trying to make a .exe out of a pygame/pyopengl script using py2exe. > The headers of my script looks like this: > import sys > from OpenGL.GL import * > from OpenGL.GLU import * > from OpenGL.arrays import formathandler > formathandler.FormatHandler.chooseOutput( 'ctypesarrays' ) > import os, math, random > import pygame > from pygame.locals import * > if sys.platform == 'win32' or sys.platform == 'win64': > os.environ['SDL_VIDEO_CENTERED'] = '1' > > Im using py2exe 0.6.6 and pyopengl 3.0.0b1, and my steup.py file looks > like this: > > #!/usr/bin/env python > from distutils.core import setup > import py2exe > > setup(console=["script.py"]) > > And I can make the .exe fine, but when I try to run the .exe, I keep > getting this error: > > Traceback (most recent call last): > File "script.py", line 2, in <module> > File "OpenGL\GL\__init__.pyc", line 2, in <module> > File "OpenGL\raw\GL\__init__.pyc", line 6, in <module> > File "OpenGL\raw\GL\constants.pyc", line 7, in <module> > File "OpenGL\platform\__init__.pyc", line 57, in <module> > File "OpenGL\platform\__init__.pyc", line 53, in _load > RuntimeError: Unable to find an implementation for the 'win32' ('nt') > platform > > I've tried various things like copying the openGL folder to the .exe > folder and such, but it didnt work. What am I doing wrong here? > Thanks > Astan > > -- > "Formulations of number theory: Complete, Consistent, Non-trivial. Choose > two." > > > Animal Logic > http://www.animallogic.com > > Please think of the environment before printing this email. > > This email and any attachments may be confidential and/or privileged. If > you are not the intended recipient of this email, you must not disclose or > use the information contained in it. Please notify the sender immediately > and delete this document if you have received it in error. We do not > guarantee this email is error or virus free. > > > > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > PyOpenGL Homepage > http://pyopengl.sourceforge.net > _______________________________________________ > PyOpenGL-Users mailing list > PyO...@li... > https://lists.sourceforge.net/lists/listinfo/pyopengl-users > > > > > -- > "Formulations of number theory: Complete, Consistent, Non-trivial. Choose > two." > > > > > > Please think of the environment before printing this email. > > This email and any attachments may be confidential and/or privileged. If you > are not the intended recipient of this email, you must not disclose or use > the information > contained in it. Please notify the sender immediately and delete this > document if you have received it in error. We do not guarantee this email is > error or virus free. > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > PyOpenGL Homepage > http://pyopengl.sourceforge.net > _______________________________________________ > PyOpenGL-Users mailing list > PyO...@li... > https://lists.sourceforge.net/lists/listinfo/pyopengl-users > > |
From: Jason W. <ny...@gm...> - 2008-04-03 06:52:50
|
Hi. How would I use a VBO with PyOpenGL? Is there a cross-platform method of doing this? I can do it in C/C++ but not sure how I would do it in PyOpenGL. Thanks |
From: R. D. <re...@gm...> - 2008-04-03 05:42:50
|
yes On Wed, Apr 2, 2008 at 12:00 AM, Jason Ward <ny...@gm...> wrote: > Hi > Does the new version of PyOpenGL support CG shaders, GLSLang and VBO's? > > > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > PyOpenGL Homepage > http://pyopengl.sourceforge.net > _______________________________________________ > PyOpenGL-Users mailing list > PyO...@li... > https://lists.sourceforge.net/lists/listinfo/pyopengl-users > > |
From: Astan C. <st...@al...> - 2008-04-03 01:06:49
|
Thanks for the info. I was just wondering why this is happening? The import of modules are not in run-time,right? Oh well, looks like I'll have to wait them. Cheers René Dudfield wrote: > Hi, > > pyopengl 2.x seems to work with py2exe. Maybe you could use that. I > haven't heard of anyone getting 3.x working at all with it. > > Here's a more recent build of 2.x for python2.5. It doesn't support > numeric, or togl. > http://thorbrian.com/pyopengl/builds.php > > > cheers, > > > On undefined, Astan Chee <st...@al...> wrote: > >> Hi, >> Im trying to make a .exe out of a pygame/pyopengl script using py2exe. >> The headers of my script looks like this: >> import sys >> from OpenGL.GL import * >> from OpenGL.GLU import * >> from OpenGL.arrays import formathandler >> formathandler.FormatHandler.chooseOutput( 'ctypesarrays' ) >> import os, math, random >> import pygame >> from pygame.locals import * >> if sys.platform == 'win32' or sys.platform == 'win64': >> os.environ['SDL_VIDEO_CENTERED'] = '1' >> >> Im using py2exe 0.6.6 and pyopengl 3.0.0b1, and my steup.py file looks >> like this: >> >> #!/usr/bin/env python >> from distutils.core import setup >> import py2exe >> >> setup(console=["script.py"]) >> >> And I can make the .exe fine, but when I try to run the .exe, I keep >> getting this error: >> >> Traceback (most recent call last): >> File "script.py", line 2, in <module> >> File "OpenGL\GL\__init__.pyc", line 2, in <module> >> File "OpenGL\raw\GL\__init__.pyc", line 6, in <module> >> File "OpenGL\raw\GL\constants.pyc", line 7, in <module> >> File "OpenGL\platform\__init__.pyc", line 57, in <module> >> File "OpenGL\platform\__init__.pyc", line 53, in _load >> RuntimeError: Unable to find an implementation for the 'win32' ('nt') >> platform >> >> I've tried various things like copying the openGL folder to the .exe >> folder and such, but it didnt work. What am I doing wrong here? >> Thanks >> Astan >> >> -- >> "Formulations of number theory: Complete, Consistent, Non-trivial. Choose two." >> >> >> Animal Logic >> http://www.animallogic.com >> >> Please think of the environment before printing this email. >> >> This email and any attachments may be confidential and/or privileged. If you are not the intended recipient of this email, you must not disclose or use the information contained in it. Please notify the sender immediately and delete this document if you have received it in error. We do not guarantee this email is error or virus free. >> >> >> >> >> ------------------------------------------------------------------------- >> Check out the new SourceForge.net Marketplace. >> It's the best place to buy or sell services for >> just about anything Open Source. >> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace >> _______________________________________________ >> PyOpenGL Homepage >> http://pyopengl.sourceforge.net >> _______________________________________________ >> PyOpenGL-Users mailing list >> PyO...@li... >> https://lists.sourceforge.net/lists/listinfo/pyopengl-users >> >> > > -- "Formulations of number theory: Complete, Consistent, Non-trivial. Choose two." Animal Logic http://www.animallogic.com Please think of the environment before printing this email. This email and any attachments may be confidential and/or privileged. If you are not the intended recipient of this email, you must not disclose or use the information contained in it. Please notify the sender immediately and delete this document if you have received it in error. We do not guarantee this email is error or virus free. |
From: R. D. <re...@gm...> - 2008-04-03 00:56:14
|
Hi, pyopengl 2.x seems to work with py2exe. Maybe you could use that. I haven't heard of anyone getting 3.x working at all with it. Here's a more recent build of 2.x for python2.5. It doesn't support numeric, or togl. http://thorbrian.com/pyopengl/builds.php cheers, On undefined, Astan Chee <st...@al...> wrote: > Hi, > Im trying to make a .exe out of a pygame/pyopengl script using py2exe. > The headers of my script looks like this: > import sys > from OpenGL.GL import * > from OpenGL.GLU import * > from OpenGL.arrays import formathandler > formathandler.FormatHandler.chooseOutput( 'ctypesarrays' ) > import os, math, random > import pygame > from pygame.locals import * > if sys.platform == 'win32' or sys.platform == 'win64': > os.environ['SDL_VIDEO_CENTERED'] = '1' > > Im using py2exe 0.6.6 and pyopengl 3.0.0b1, and my steup.py file looks > like this: > > #!/usr/bin/env python > from distutils.core import setup > import py2exe > > setup(console=["script.py"]) > > And I can make the .exe fine, but when I try to run the .exe, I keep > getting this error: > > Traceback (most recent call last): > File "script.py", line 2, in <module> > File "OpenGL\GL\__init__.pyc", line 2, in <module> > File "OpenGL\raw\GL\__init__.pyc", line 6, in <module> > File "OpenGL\raw\GL\constants.pyc", line 7, in <module> > File "OpenGL\platform\__init__.pyc", line 57, in <module> > File "OpenGL\platform\__init__.pyc", line 53, in _load > RuntimeError: Unable to find an implementation for the 'win32' ('nt') > platform > > I've tried various things like copying the openGL folder to the .exe > folder and such, but it didnt work. What am I doing wrong here? > Thanks > Astan > > -- > "Formulations of number theory: Complete, Consistent, Non-trivial. Choose two." > > > Animal Logic > http://www.animallogic.com > > Please think of the environment before printing this email. > > This email and any attachments may be confidential and/or privileged. If you are not the intended recipient of this email, you must not disclose or use the information contained in it. Please notify the sender immediately and delete this document if you have received it in error. We do not guarantee this email is error or virus free. > > > > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > PyOpenGL Homepage > http://pyopengl.sourceforge.net > _______________________________________________ > PyOpenGL-Users mailing list > PyO...@li... > https://lists.sourceforge.net/lists/listinfo/pyopengl-users > |
From: Astan C. <st...@al...> - 2008-04-02 23:37:09
|
Hi, Im trying to make a .exe out of a pygame/pyopengl script using py2exe. The headers of my script looks like this: import sys from OpenGL.GL import * from OpenGL.GLU import * from OpenGL.arrays import formathandler formathandler.FormatHandler.chooseOutput( 'ctypesarrays' ) import os, math, random import pygame from pygame.locals import * if sys.platform == 'win32' or sys.platform == 'win64': os.environ['SDL_VIDEO_CENTERED'] = '1' Im using py2exe 0.6.6 and pyopengl 3.0.0b1, and my steup.py file looks like this: #!/usr/bin/env python from distutils.core import setup import py2exe setup(console=["script.py"]) And I can make the .exe fine, but when I try to run the .exe, I keep getting this error: Traceback (most recent call last): File "script.py", line 2, in <module> File "OpenGL\GL\__init__.pyc", line 2, in <module> File "OpenGL\raw\GL\__init__.pyc", line 6, in <module> File "OpenGL\raw\GL\constants.pyc", line 7, in <module> File "OpenGL\platform\__init__.pyc", line 57, in <module> File "OpenGL\platform\__init__.pyc", line 53, in _load RuntimeError: Unable to find an implementation for the 'win32' ('nt') platform I've tried various things like copying the openGL folder to the .exe folder and such, but it didnt work. What am I doing wrong here? Thanks Astan -- "Formulations of number theory: Complete, Consistent, Non-trivial. Choose two." Animal Logic http://www.animallogic.com Please think of the environment before printing this email. This email and any attachments may be confidential and/or privileged. If you are not the intended recipient of this email, you must not disclose or use the information contained in it. Please notify the sender immediately and delete this document if you have received it in error. We do not guarantee this email is error or virus free. |
From: Jason W. <ny...@gm...> - 2008-04-02 21:01:43
|
Hi I've been looking into pyOpenGL but I don't know how I would be able to use VBO's with it since the commands are usually platform specific and also I don't know how it would work in PyOpengl. Does PyOpenGL support the OpenGL shader langauge? Thanks |
From: Jason W. <ny...@gm...> - 2008-04-01 13:00:24
|
Hi Does the new version of PyOpenGL support CG shaders, GLSLang and VBO's? |
From: Nate S. <Na...@gw...> - 2008-03-31 21:00:24
|
I am trying to use PyOpenGL and am running into some errors getting even the most basic program working. For example, this program: --------------------------------------------- from OpenGL.GL import * from OpenGL.GLUT import * def init(): glClearColor(0, 0, 0, 0) def display(): glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT) glutInit('') glutInitDisplayMode(GLUT_SINGLE | GLUT_RGB) ------------------------------------------- generates this error: ------------------------------------------- Traceback (most recent call last): File "C:/Python25/Py3D/test2.py", line 12, in <module> glutInitDisplayMode(GLUT_SINGLE | GLUT_RGB) File "C:\Python25\Lib\site-packages\OpenGL\platform\baseplatform.py", line 258, in __call__ self.__name__, self.__name__, NullFunctionError: Attempt to call an undefined function glutInitDisplayMode, check for bool(glutInitDisplayMode) before calling --------------------------------------------- which seems to be referring to this code in "Python25\Lib\site-packages\OpenGL\platform\baseplatform.py": --------------------------------------------- def __call__( self, *args, **named ): if self.extension and self.load(): return self( *args, **named ) else: from OpenGL import error raise error.NullFunctionError( """Attempt to call an undefined function %s, check for bool(%s) before calling"""%( self.__name__, self.__name__, ) ) ----------------------------------------------- Which appears to tell me that GLUT is not properly installed, which is silly because GLUT works when I use Microsoft Visual C++ (but who chooses to use Microsoft Visual C++ when they can use python?). What do I need to do to get GLUT up on python? |
From: Floyd M <gre...@gc...> - 2008-03-31 05:07:42
|
thank you -- a friend helped me figure it out (had to download setuptools.msi). Floyd M wrote: > > i've downloaded and installed pyopengl.exe and openglcontext.exe from > sourceforge and i keep getting the following error: > > Traceback (most recent call last): > File "<pyshell#5>", line 1, in <module> > import OpenGL.GL > File "C:\Python\Python25\lib\site-packages\OpenGL\GL\__init__.py", > line 2, in <module> > from OpenGL.raw.GL import * > File > "C:\Python\Python25\lib\site-packages\OpenGL\raw\GL\__init__.py", line > 6, in <module> > from OpenGL.raw.GL.constants import * > File > "C:\Python\Python25\lib\site-packages\OpenGL\raw\GL\constants.py", > line 7, in <module> > from OpenGL import platform, arrays > File > "C:\Python\Python25\Lib\site-packages\OpenGL\platform\__init__.py", > line 20, in <module> > import os, sys, pkg_resources > ImportError: No module named pkg_resources > > i've checked the site-packages folder and opengl is there along with > the gl and glu directories. > |
From: Floyd M <gre...@gc...> - 2008-03-31 04:56:40
|
i've downloaded and installed pyopengl.exe and openglcontext.exe from sourceforge and i keep getting the following error: Traceback (most recent call last): File "<pyshell#5>", line 1, in <module> import OpenGL.GL File "C:\Python\Python25\lib\site-packages\OpenGL\GL\__init__.py", line 2, in <module> from OpenGL.raw.GL import * File "C:\Python\Python25\lib\site-packages\OpenGL\raw\GL\__init__.py", line 6, in <module> from OpenGL.raw.GL.constants import * File "C:\Python\Python25\lib\site-packages\OpenGL\raw\GL\constants.py", line 7, in <module> from OpenGL import platform, arrays File "C:\Python\Python25\Lib\site-packages\OpenGL\platform\__init__.py", line 20, in <module> import os, sys, pkg_resources ImportError: No module named pkg_resources i've checked the site-packages folder and opengl is there along with the gl and glu directories. |
From: Astan C. <st...@al...> - 2008-03-27 08:49:47
|
Hi, I have attached a sphere 'obiting' around another sphere. Im not sure how to rotate properly but what Im trying to achieve is to get the second sphere (the green one) rotate around the first one (yellow) but always infront of the camera/point of view along the x-axis (horizontally). It seems that whatever I try to rotate it, it always goes behind the camera. What other values do I have to change? Thanks again Astan -- "Formulations of number theory: Complete, Consistent, Non-trivial. Choose two." Animal Logic http://www.animallogic.com Please think of the environment before printing this email. This email and any attachments may be confidential and/or privileged. If you are not the intended recipient of this email, you must not disclose or use the information contained in it. Please notify the sender immediately and delete this document if you have received it in error. We do not guarantee this email is error or virus free. |
From: Astan C. <st...@al...> - 2008-03-27 02:40:05
|
Hi, I have just started to learn about openGL using pyOpenGL because I am rather proficient in python. Im trying to convert the code from http://www.edm2.com/0511/opengl.html or http://www.edm2.com/0511/glcol5f.zip and make it using pyOpenGL. I have made two attempts at it and both seems to fail/not display what I expected. I was expecting either a side view or a top-down view of the entire solar system instead of the vewing from the pole of earth. Does anyone have any idea how I can change the point of view or camera position or what I need to do here? Im not sure how OpenGL does this. Both my attempts are attached (sorry about the messy code) and both are similar to NeHe's tutorials. Thanks for the help. Astan -- "Formulations of number theory: Complete, Consistent, Non-trivial. Choose two." Animal Logic http://www.animallogic.com Please think of the environment before printing this email. This email and any attachments may be confidential and/or privileged. If you are not the intended recipient of this email, you must not disclose or use the information contained in it. Please notify the sender immediately and delete this document if you have received it in error. We do not guarantee this email is error or virus free. |
From: R. D. <re...@gm...> - 2008-03-03 22:54:29
|
hi, can you try installing setuptools first? I think that'll fix it. cu. On Wed, Feb 27, 2008 at 8:47 AM, Jason Ward <ny...@gm...> wrote: > HI. I am using the latest pyOpenGL for windows and when I type this in > python > import OpenGL.GL > it says that pkg_resources is missing. > > I have no clue what I am supposed to do. > > Please can you help me > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > PyOpenGL Homepage > http://pyopengl.sourceforge.net > _______________________________________________ > PyOpenGL-Users mailing list > PyO...@li... > https://lists.sourceforge.net/lists/listinfo/pyopengl-users > > |
From: George B. <br...@ve...> - 2008-02-27 17:19:37
|
Still new at this, especially graphics. I'm working on a 3d graphics project, and found nice samples for mat3D.py, which is available from http://www.scipy.org/WilnaDuToit. The program includes this code: """OpenGL-based 3d surface plot""" #last updated 12/10/2006 from OpenGL.GL import * from OpenGL.GLUT import * from OpenGL.Tk import * import Tkinter import numpy as N import tkFileDialog -snip- def make_plot(self,colors = Colors): """Draw a plot in a Tk OpenGL render window.""" # Some api in the chain is translating the keystrokes to this octal string # so instead of saying: ESCAPE = 27, we use the following. ESCAPE = '\033' # Number of the glut window. window = 0 # Create render window (tk) f = Tkinter.Frame() f.pack(side = 'top') self.offset = 0.05 self.textlength,self.xticks,self.yticks,self.zticks =self.GetFormatMaxTextLength() #todo: each tick own offset o = Opengl(width = 640, height = 480, double = 1, depth = 1) o.redraw = self.redraw -snip- which yields the following error: Traceback (most recent call last): File "/home/browerg/text.py", line 35, in <module> o = Opengl(None, width = 400, height = 200, double = 1, depth = 1) NameError: name 'Opengl' is not defined Searching the web led me to text.py at http://www.koders.com/python/fid02D8AE6DDE1B87CF36E3766500C78F05AAF6C31C.aspx?s=tkinter#L33. The program includes this code: #!/usr/bin/env python from OpenGL.GL import * from OpenGL.Tk import * from logo import * -snip- import Tkinter, sys o = Opengl(None, width = 400, height = 200, double = 1, depth = 1) -snip- which gave the same error: Traceback (most recent call last): File "/home/browerg/text.py", line 35, in <module> o = Opengl(None, width = 400, height = 200, double = 1, depth = 1) NameError: name 'Opengl' is not defined I'm running Python2.5, Tk8.4, and Tcl8.4 on Ubuntu 7.10. Hardware is an i686 laptop. What am I missing? Thanks in advance. George |
From: Robert A. <rob...@gm...> - 2008-02-27 05:55:16
|
Hi, I'm the maintainer for glChess in the gnome-games package and we're having a problem with the name of the GLU error exception class on Gentoo. On my Ubuntu 7.10 box the following works: >>> import OpenGL.GLU >>> OpenGL.GLU.GLUError but on Gentoo it fails, they expect: >>> import OpenGL.GLU >>> OpenGL.GLU.GLUerror What is the correct name for the exception class? Thanks, --Robert See: http://bugzilla.gnome.org/show_bug.cgi?id=503238 |
From: Jason W. <ny...@gm...> - 2008-02-26 21:47:01
|
HI. I am using the latest pyOpenGL for windows and when I type this in python import OpenGL.GL it says that pkg_resources is missing. I have no clue what I am supposed to do. Please can you help me |
From: Jason T. <ten...@gm...> - 2008-02-26 16:13:39
|
I would like to use a single vertex buffer object to contain information about vertices, normals, and colors. According to the GL spec for glNormalPointer, glVertexPointer, and glColorPointer: If a non-zero named buffer object is bound to the GL_ARRAY_BUFFER target (see glBindBuffer) while a normal/vertex/color array is specified, pointer is treated as a byte offset into the buffer object's data store. Also, the buffer object binding (GL_ARRAY_BUFFER_BINDING) is saved as normal vertex array client-side state (GL_NORMAL_ARRAY_BUFFER_BINDING). Is there any way to do this currently? PyOpenGL seems to expect an actual sequence for the pointer value. If there isn't a way of doing this already, I'll poke around and see if I can't make a patch to support this alternative behavior in my spare time. Any suggestions about how to go about this patch for PyOpenGL? (I'm fairly swift with Python, minimal experience with ctypes, and moderate OpenGL experience.) --Jason -- ^ ^ <<o.o>> ="'=="`== |
From: Sibtey M. <si...@in...> - 2008-02-14 10:22:51
|
Hi All I am new to PyOpenGl and want to use 2D graphics, to create rectangle to represent some information. Is there any 2D graphics library that is supported by pygame and will be a better option instead of using PyOpenGl? Thanks, Sibtey Mehdi |
From: Alan B. <ab...@ve...> - 2008-02-05 19:38:28
|
Is there a simple example in pyopengl that uses numpy to generate a display list of verticies? If so, where can I find it? |
From: Gary H. <gh...@is...> - 2008-01-16 01:20:53
|
Patrick Van Pelt wrote: > Hello! New user here, with a hopefully simple question. > > I'm currently writing an object/animation loader with PyOpenGL, using mostly what is presented in the python-adjusted Nehe tutorials (with some hackery to display calllists like a flipbook). I'm happy to say that it is all working great so far, however I just started to include some of the lighting code and its giving me some nasty polygon edges. Basically, it looks like the normals aren't smoothing across the surface of the object. See picture here: > > http://img212.imageshack.us/img212/5102/facetedgd8.jpg > > It was at this point that I realized the tutorials all use cubes, which of course have a sharp edge. Can anyone point me in a direction to get the surface to look like it is a nice smooth surface? Thanks for any and all help! > glShadeModel(GL_SMOOTH) will work if you model is defined correctly (i.e., shared vertices share normals). Gary Herron > PS: The model was a free one off of Turbosquid that I slapped some quick animation onto. > > _____________________________________________________________________ > The information contained in this message and its attachments is > confidential and proprietary to LAIKA, Inc. By opening this email > or any of its attachments, you agree to keep all such information > confidential and not to use, distribute, disclose or copy any part > of such information without the prior written consent of LAIKA, > Inc. If you are not the intended recipient of this message, any use, > distribution, disclosure or copying of such information is prohibited. > If received in error, please contact the sender. > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > PyOpenGL Homepage > http://pyopengl.sourceforge.net > _______________________________________________ > PyOpenGL-Users mailing list > PyO...@li... > https://lists.sourceforge.net/lists/listinfo/pyopengl-users > |
From: Patrick V. P. <pa...@la...> - 2008-01-16 00:45:18
|
Hello! New user here, with a hopefully simple question. I'm currently writing an object/animation loader with PyOpenGL, using mostly what is presented in the python-adjusted Nehe tutorials (with some hackery to display calllists like a flipbook). I'm happy to say that it is all working great so far, however I just started to include some of the lighting code and its giving me some nasty polygon edges. Basically, it looks like the normals aren't smoothing across the surface of the object. See picture here: http://img212.imageshack.us/img212/5102/facetedgd8.jpg It was at this point that I realized the tutorials all use cubes, which of course have a sharp edge. Can anyone point me in a direction to get the surface to look like it is a nice smooth surface? Thanks for any and all help! PS: The model was a free one off of Turbosquid that I slapped some quick animation onto. _____________________________________________________________________ The information contained in this message and its attachments is confidential and proprietary to LAIKA, Inc. By opening this email or any of its attachments, you agree to keep all such information confidential and not to use, distribute, disclose or copy any part of such information without the prior written consent of LAIKA, Inc. If you are not the intended recipient of this message, any use, distribution, disclosure or copying of such information is prohibited. If received in error, please contact the sender. |