The Ur-Quan Masters Discussion Forum

The Ur-Quan Masters Re-Release => General UQM Discussion => Topic started by: the grand fot on November 08, 2002, 01:14:56 am

Title: OpenGL?  Sprites?  Wha?
Post by: the grand fot on November 08, 2002, 01:14:56 am

Aight, so I hear tell that y'all are using openGL for the new SC2.  I'm sure there's a good reason behind it, of course.... anyone mind explaining it to me?

OpenGL is mostly a 3D and/or polygon library, isn't it?  Unless there are some wild changed planned, SC2 is almost exclusively sprite-based... so what's the openGL gonna be for?

Title: Re: OpenGL?  Sprites?  Wha?
Post by: Mika on November 08, 2002, 02:29:34 am
OpenGL usage is optional, though recommended if using TNT2 class gfx card or better (its faster than pure 2d mode then). With OpenGL, things like scaling game's 320x240 surface to screen resolution (640x480 normally) can be done hardware-accelerated, like some fullscreen effects (few different kind of fades currently). Also bilinear filtering and 'scanlines' can be done with it to make things look less pixelated.

Game works internally almost completely as 2d using software blit operations and code starts to differ more between "pure 2d" and OpenGL code only within page flip function, where ogl does upload current surface to texture and draws it as one big quad, etc.