PDA

View Full Version : Sprites



johnnyp05
10-02-2005, 02:08 AM
Hi, I'm going to be creating some sprites using OGL, I was just wondering if someone could help me on the best way to do it? I hear just creating a QUAD and texturing the QUAD is the best way? is this true? Thanks!

Omaha
10-02-2005, 11:01 AM
Yes.

johnnyp05
10-06-2005, 02:09 PM
thnx! :)

10-11-2005, 05:36 AM
if your sprites are small, you could look into point-sprites extension, which would be the fastest way of generating many sprites.
however you cannot rotate them individiually, and they are limited in size (e.g. 64 pixel square, but this depends on the graphics card zou have). Also the range attenuation (the further away the smaller...) is a bit ugly to setup.

here is a pointsprite example

http://www.codesampler.com/oglsrc/oglsrc_6.htm