Path: chuka.playstation.co.uk!news From: Andrew Partington Newsgroups: scee.yaroze.freetalk.english Subject: Re: Quads Date: Sun, 21 Mar 2004 17:29:19 +0000 Organization: PlayStation Net Yaroze (SCEE) Lines: 55 Message-ID: References: NNTP-Posting-Host: spr1-ward1-6-0-cust140.manc.broadband.ntl.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624 X-Accept-Language: en-us, en In-Reply-To: Sorry if you are already doing this, but couldn't you put the background generation code into a display list? It's meant to be quite a bit faster than the normal glBegin(...)/glEnd() way, though perhaps not quite as flexible under some circumstances (like for doing the really trippy stuff) Linkage: http://www.lighthouse3d.com/opengl/displaylists/index.php3?1 There are probably better examples that use SDL if you prefer (like the HeNe and Gamedev.net tutorials, I seem to recall), it doesn't depend on using GLUT though so the principles are the same. Cheers, Andy P Andrew Murray wrote: > Hi Jon, > > Thanks for the crit. I guess I should have put this feature in earlier. I > tried running it on my freind's PC and it was terrible. Anyway the web-site > now brandishes the updated version with the ability to turn off the 3d > background and the blending, F1 and F2 respectively. At the mo, the > background just goes black, I guess I don't even really need a texture, I > could just render to texture and use that as the bg image... hmmm. > > Hope it runs alright now, > > Andy M. > > "Jon Prestidge" wrote in message > news:c3hn28$ano10@www.netyaroze-europe.com... > >>I like the look of your Quads game Andrew.... but I can't really play it >>because it runs too slow on my PC. I guess my graphics card is crap at >>OpenGL. During the game the blocks decend at about one grid square every > > 4 > >>seconds. >>(My CPU is 1GHz) >> >>( Perhaps you could put a switch in for folk with slow PCs so that during >>the game the 3D background is replaced with a 2D static picture of the 3D >>blocks. ) >> >>Jon >> >> > > >