PDA

View Full Version : Sprites



Vbaseball
01-06-2001, 10:00 AM
I'm making a game very similar to Age of Empires and Starcraft, and it's getting there, my problem is that it is realllly slow. I'm using glDrawPixels() to display the sprites, and having the image in GL_RGBA to specify the transparent parts. This goes so slowly, even on a great computer, i'm wondering if i've forgotten to disable something or if i'm using the wrong technique or what... Anyone know?

DFrey
01-06-2001, 10:28 AM
glDrawPixels is just slow in general (there are exceptions for specific video cards and situations). Use textured quads for your sprites and things will typically go much faster.

runggu
07-08-2001, 09:14 AM
How to make *more* faster sprites.

grady
07-08-2001, 10:43 AM
what is a sprite?

rts
07-08-2001, 11:31 AM
From The Free On-line Dictionary of Computing (13 Mar 01) [foldoc]:

sprite

<graphics, file format> A small {bitmap} image, often used in
animated games but also sometimes used as a synonym for
{icon}.

(1997-06-29)

john
07-08-2001, 04:34 PM
Howdy,

hmm, you think? I'd argue... well, "muse" might be a better word, that the term 'sprite' doesn't *really* apply anymore. There is nothing these days to distinguish a sprite from a camera aligned quad... but it wasn't always like this.

ANyone ever coded on a commdore 64 (or Amiga or ...)? I'd argue that they had _real_ sprites =) You could enable a sprite and then move it *without worrying about the background* since they lived on a separate plane. Thats, IMHO, a real sprite because it referred to something the hardware did, rather than some 'magic' property like always been aligned, or some 'term' like a bitmap.

Of course, everyone is entitled to disagree with me.

cheers,
John

NewbieBen
07-09-2001, 10:56 AM
Just for nostiaglias sake, My favourite ever sprite has to be the "FAT NINJA" on "Bruce Lee" game for the C64. anyone got any others http://www.opengl.org/discussion_boards/ubb/biggrin.gif

Platinum
07-10-2001, 09:26 PM
Those little one-eyed aliens in Comm.Keen:Invasion of the Vorticons kicked ass http://www.opengl.org/discussion_boards/ubb/cool.gif

Tim Stirling
07-11-2001, 01:12 AM
Originally posted by Platinum:
Those little one-eyed aliens in Comm.Keen:Invasion of the Vorticons kicked ass http://www.opengl.org/discussion_boards/ubb/cool.gif

I remember, they were cool.

I also think of the the flat characters in doom when you speak of sprites. I think these were also 'real' sprites but different from the origional use which were strictly for 2d games. Billboards is the new name for camera aligned geometry.

07-11-2001, 01:14 AM
use textured quads...
It's much faster....