<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.3" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: OpenGL sample code for PyGame</title>
	<link>http://www.willmcgugan.com/2007/06/04/opengl-sample-code-for-pygame/</link>
	<description>Blog of Will McGugan</description>
	<pubDate>Thu, 20 Nov 2008 23:04:37 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.3</generator>
		<item>
		<title>By: Sahadev Tarei</title>
		<link>http://www.willmcgugan.com/2007/06/04/opengl-sample-code-for-pygame/#comment-40267</link>
		<dc:creator>Sahadev Tarei</dc:creator>
		<pubDate>Fri, 22 Aug 2008 05:43:05 +0000</pubDate>
		<guid>http://www.willmcgugan.com/2007/06/04/opengl-sample-code-for-pygame/#comment-40267</guid>
		<description>I’m guessing that the version of PyOpenGL I was using expands Python sequences and calls an appropriate glColor*v function in C. The version you are using must require four separate values. If I’m right you could also do glColorv(self color), which is probably more efficient.</description>
		<content:encoded><![CDATA[<p>I’m guessing that the version of PyOpenGL I was using expands Python sequences and calls an appropriate glColor*v function in C. The version you are using must require four separate values. If I’m right you could also do glColorv(self color), which is probably more efficient.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rudbol</title>
		<link>http://www.willmcgugan.com/2007/06/04/opengl-sample-code-for-pygame/#comment-25644</link>
		<dc:creator>rudbol</dc:creator>
		<pubDate>Mon, 19 May 2008 08:41:45 +0000</pubDate>
		<guid>http://www.willmcgugan.com/2007/06/04/opengl-sample-code-for-pygame/#comment-25644</guid>
		<description>I'm getting this error trying to run "firstopengl":

Traceback (most recent call last):
  File "/home/rudin/Skrivebord/python-bok/firstopengl.py", line 184, in 
    run()
  File "/home/rudin/Skrivebord/python-bok/firstopengl.py", line 169, in run
    camera_matrix.translate += movement * time_passed_seconds
  File "/usr/lib/python2.5/site-packages/gameobjects/vector3.py", line 247, in __radd__
    ox, oy, oz = lhs
ValueError: too many values to unpack

petzolt@online.no</description>
		<content:encoded><![CDATA[<p>I&#8217;m getting this error trying to run &#8220;firstopengl&#8221;:</p>
<p>Traceback (most recent call last):<br />
  File &#8220;/home/rudin/Skrivebord/python-bok/firstopengl.py&#8221;, line 184, in<br />
    run()<br />
  File &#8220;/home/rudin/Skrivebord/python-bok/firstopengl.py&#8221;, line 169, in run<br />
    camera_matrix.translate += movement * time_passed_seconds<br />
  File &#8220;/usr/lib/python2.5/site-packages/gameobjects/vector3.py&#8221;, line 247, in __radd__<br />
    ox, oy, oz = lhs<br />
ValueError: too many values to unpack</p>
<p><a href="mailto:petzolt@online.no">petzolt@online.no</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Will</title>
		<link>http://www.willmcgugan.com/2007/06/04/opengl-sample-code-for-pygame/#comment-8216</link>
		<dc:creator>Will</dc:creator>
		<pubDate>Sat, 13 Oct 2007 20:30:46 +0000</pubDate>
		<guid>http://www.willmcgugan.com/2007/06/04/opengl-sample-code-for-pygame/#comment-8216</guid>
		<description>I'm guessing that the version of PyOpenGL I was using expands Python sequences and calls an appropriate glColor*v function in C. The version you are using must require four separate values. If I'm right you could also do glColorv(self color), which is probably more efficient.

The book should be out everywhere on the 24th, but Amazon.co.uk are showing the wrong date!</description>
		<content:encoded><![CDATA[<p>I&#8217;m guessing that the version of PyOpenGL I was using expands Python sequences and calls an appropriate glColor*v function in C. The version you are using must require four separate values. If I&#8217;m right you could also do glColorv(self color), which is probably more efficient.</p>
<p>The book should be out everywhere on the 24th, but Amazon.co.uk are showing the wrong date!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon</title>
		<link>http://www.willmcgugan.com/2007/06/04/opengl-sample-code-for-pygame/#comment-8213</link>
		<dc:creator>Jon</dc:creator>
		<pubDate>Sat, 13 Oct 2007 17:22:26 +0000</pubDate>
		<guid>http://www.willmcgugan.com/2007/06/04/opengl-sample-code-for-pygame/#comment-8213</guid>
		<description>Hi Will,

Thanks Will that's fixed it. What was the cause of the error if you don't mind me asking ? 

BTW do you know when your book will be available in the UK ?

Cheers
Jon</description>
		<content:encoded><![CDATA[<p>Hi Will,</p>
<p>Thanks Will that&#8217;s fixed it. What was the cause of the error if you don&#8217;t mind me asking ? </p>
<p>BTW do you know when your book will be available in the UK ?</p>
<p>Cheers<br />
Jon</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Will</title>
		<link>http://www.willmcgugan.com/2007/06/04/opengl-sample-code-for-pygame/#comment-8208</link>
		<dc:creator>Will</dc:creator>
		<pubDate>Sat, 13 Oct 2007 15:50:39 +0000</pubDate>
		<guid>http://www.willmcgugan.com/2007/06/04/opengl-sample-code-for-pygame/#comment-8208</guid>
		<description>Hi Jon,

Are you running the latest version of PyOpenGL?

Try replacing the glColor line with the following:

glColor( *self.color )

Will</description>
		<content:encoded><![CDATA[<p>Hi Jon,</p>
<p>Are you running the latest version of PyOpenGL?</p>
<p>Try replacing the glColor line with the following:</p>
<p>glColor( *self.color )</p>
<p>Will</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon</title>
		<link>http://www.willmcgugan.com/2007/06/04/opengl-sample-code-for-pygame/#comment-8180</link>
		<dc:creator>Jon</dc:creator>
		<pubDate>Fri, 12 Oct 2007 22:08:18 +0000</pubDate>
		<guid>http://www.willmcgugan.com/2007/06/04/opengl-sample-code-for-pygame/#comment-8180</guid>
		<description>Hi, I'm getting the following error, any ideas how to fix it. Thanks.

Traceback (most recent call last):
  File "firstopengl.py", line 231, in 
    run()
  File "firstopengl.py", line 225, in run
    map.render()
  File "firstopengl.py", line 133, in render
    cube.render()
  File "firstopengl.py", line 73, in render
    glColor( self.color )
  File "build/bdist.macosx-10.3-fat/egg/OpenGL/GL/exceptional.py", line 207, in glColor
KeyError: 1</description>
		<content:encoded><![CDATA[<p>Hi, I&#8217;m getting the following error, any ideas how to fix it. Thanks.</p>
<p>Traceback (most recent call last):<br />
  File &#8220;firstopengl.py&#8221;, line 231, in<br />
    run()<br />
  File &#8220;firstopengl.py&#8221;, line 225, in run<br />
    map.render()<br />
  File &#8220;firstopengl.py&#8221;, line 133, in render<br />
    cube.render()<br />
  File &#8220;firstopengl.py&#8221;, line 73, in render<br />
    glColor( self.color )<br />
  File &#8220;build/bdist.macosx-10.3-fat/egg/OpenGL/GL/exceptional.py&#8221;, line 207, in glColor<br />
KeyError: 1</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard</title>
		<link>http://www.willmcgugan.com/2007/06/04/opengl-sample-code-for-pygame/#comment-2252</link>
		<dc:creator>Richard</dc:creator>
		<pubDate>Tue, 12 Jun 2007 21:13:48 +0000</pubDate>
		<guid>http://www.willmcgugan.com/2007/06/04/opengl-sample-code-for-pygame/#comment-2252</guid>
		<description>Well,I like to say  thank you this gets me closer to understandig opengl. Since my compt refuses to let me play  anymore it claims it cannot open the gl,weird ha, mohaa.os was before ME i SWITCH TO,WINDOWS XP HOME EDITION.MORE POWER TO YA SOON i SHALL PLAY AGAIN.</description>
		<content:encoded><![CDATA[<p>Well,I like to say  thank you this gets me closer to understandig opengl. Since my compt refuses to let me play  anymore it claims it cannot open the gl,weird ha, mohaa.os was before ME i SWITCH TO,WINDOWS XP HOME EDITION.MORE POWER TO YA SOON i SHALL PLAY AGAIN.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robb Drinkwater</title>
		<link>http://www.willmcgugan.com/2007/06/04/opengl-sample-code-for-pygame/#comment-2224</link>
		<dc:creator>Robb Drinkwater</dc:creator>
		<pubDate>Sun, 10 Jun 2007 16:28:41 +0000</pubDate>
		<guid>http://www.willmcgugan.com/2007/06/04/opengl-sample-code-for-pygame/#comment-2224</guid>
		<description>Will,
Thanks for sharing this. Great coding. It gave me a huge leg up on understanding GL in PyGame and a great start on my (non-commercial) project.
But you didn't include any GNU license... and I'd like to give credit where it's due.
Also, did you write the matrix44 &#38; vector3 classes? Very elegant and infinitely useful... they should be part of the standard library.
(BTW If you are not the author, do you know who is? Again: credit due)

So thanks again for the great code!
rd</description>
		<content:encoded><![CDATA[<p>Will,<br />
Thanks for sharing this. Great coding. It gave me a huge leg up on understanding GL in PyGame and a great start on my (non-commercial) project.<br />
But you didn&#8217;t include any GNU license&#8230; and I&#8217;d like to give credit where it&#8217;s due.<br />
Also, did you write the matrix44 &amp; vector3 classes? Very elegant and infinitely useful&#8230; they should be part of the standard library.<br />
(BTW If you are not the author, do you know who is? Again: credit due)</p>
<p>So thanks again for the great code!<br />
rd</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sean Berry</title>
		<link>http://www.willmcgugan.com/2007/06/04/opengl-sample-code-for-pygame/#comment-2071</link>
		<dc:creator>Sean Berry</dc:creator>
		<pubDate>Thu, 07 Jun 2007 16:02:20 +0000</pubDate>
		<guid>http://www.willmcgugan.com/2007/06/04/opengl-sample-code-for-pygame/#comment-2071</guid>
		<description>This is really great, thanks!</description>
		<content:encoded><![CDATA[<p>This is really great, thanks!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
