Astan Chee wrote:
Hi,
Im trying to do glGenLists while a program is running and it keeps
returning 0 and whenever I try to do a glCallList, it fails with a
'invalid value' error.
Is this a known issue? why would my program give valid glGenList while
being initialized but not while it is running?
IIRC, this can happen if you call glGenLists *before* you create any
windows (or perhaps more accurately, before an OpenGL context has been
created).
Im using wx to create a new pygame thread that uses pyopengl. This is
the glGenList snippet:
dlBody = glGenLists(1)
glNewList(dlBody,GL_COMPILE)
SphereT = gluNewQuadric()
gluSphere(SphereT, 0.5, 32, 32)
gluQuadricNormals(SphereT, GLU_SMOOTH)
gluQuadricDrawStyle(SphereT, GLU_FILL)
glEndList()
and here is how I init:
glShadeModel(GL_SMOOTH)
glClearColor(0.0, 0.0, 0.0, 0.0)
glClearDepth(1.0)
glEnable(GL_DEPTH_TEST)
glDepthFunc(GL_LEQUAL)
glHint(GL_PERSPECTIVE_CORRECTION_HINT, GL_NICEST)
glEnable (GL_LIGHT0)
glEnable (GL_LIGHTING)
glEnable(GL_TEXTURE_2D)
LightAmbient = ( (0., 0., 0., 0.,1.) )
glLightModelfv( GL_LIGHT_MODEL_AMBIENT, LightAmbient )
glEnable(GL_COLOR_MATERIAL)
glViewport(0, 0, width, height)
glMatrixMode(GL_PROJECTION)
glLoadIdentity()
gluPerspective(45, 1.0*width/height, 1.0, 10000.0)
glMatrixMode(GL_MODELVIEW)
glLoadIdentity()
0 876 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Sébastien Ramage |
last post by:
Bonjour à tous,
Dans la folie j'ai installé le nouveau python, impatient de voir les
nouveautés
mais je pense que j'ai été un peu rapide car j'ai voulu utiliser
pyOpenGL et là problème il...
|
by: joroy |
last post by:
Hi all,
I think this is ctypes related but how can I call the glShaderSourceARB
function?
The function have this header:
glShaderSourceARB( GLhandleARB(shaderObj), GLsizei(count),...
|
by: sweetmelon |
last post by:
(I'm a newbie in Python and pyOpenGL.)
Environment:
WinXP SP2
Python ver. 2.5
WingIDE
easy_install is installed
PIL, pyNum is installed
Download PyOpenGL-3.0.0a5-py2.5.egg
run: easy_install...
|
by: seb.haase |
last post by:
Hi,
I am distributing a package with a precompiled collection of modules
and packages useful for Python based medical/biological/astronomical
image analysis and algorithm development. (Codename:...
|
by: Colin J. Williams |
last post by:
I have just installed PyOpenGL and get a
series of warning messages:
Best match: PyOpenGL 3.0.0b3
Downloading...
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
| |