Please post your code.
Richard
Why are you calling glBegin(GL_TRIANGLES)? In addition to posting
code, you should also post a stacktrace to explain your crash.
Anyhow, just glancing at the code, I imagine the explosion is due to
calling glBegin(...) without a corresponding glEnd() .. or calling
gluSpehere in the context of glBegin(GL_TRIANGLES).
Regards,
--
\\\\\/\"/\\\\\\\\\\\
\\\\/ // //\/\\\\\\\
\\\/ \\// /\ \/\\\\
\\/ /\/ / /\/ /\ \\\
\/ / /\/ /\ /\\\ \\
/ /\\\ /\\\ \\\\\/\
\/\\\\\/\\\\\/\\\\\\
d.p.s
See
http://groups.google.com/group/pyglet-users/web/pyglet-projection-matrix?hl=en
You can test those 2 lines in projections.py, and they work perfectly.
def playground():
# Test your code here
sphere = gluNewQuadric()
gluSphere(sphere,10.0,10,10)
>> Why are you calling glBegin(GL_TRIANGLES)? In addition to posting
>> code, you should also post a stacktrace to explain your crash.
This what I get with that lost glBegin.
File ".\xx.py", line 30, in draw
gluSphere(sphere,10.0,10,10)
WindowsError: exception: access violation reading 0x00000000
Presione una tecla para continuar . . .
Funny, your camera is INSIDE the sphere ;)