Quick question about point sprites.
Dear All,
I'm looking for a quick example of the use of point sprites in opengl. The opengl website says "Point sprites replace point texture coordinates with texture coordinates interpolated across the point. This allows drawing points as customized textures, useful for particle systems.
Point sprites were promoted from the ARB point sprite extension, with the further addition of the POINT SPRITE COORD ORIGIN parameter controlling the direction in which the t texture coordinate increases.", which is great, but doesnt provide much in the way of an example. I have googled, but I seem to only see older code, using the ARB extention, or NeHe's code. Anyone know a decent example?
Regards,
Jesse
Code sampler has some decent examples: http://www.codesampler.com/oglsrc/oglsrc_6.htm#ogl_particle_system
Hm so they do, using the ARB point sprite extension. Is the API any different now that point sprites have been "promoted"?
point sprites are pretty useless
*maximum size
*gets clipped totally if the center is offscreen
*texture coord inflexibility
ild only use them if youre drawing huge ie 100,000+ numbers of particles
*maximum size
*gets clipped totally if the center is offscreen
*texture coord inflexibility
ild only use them if youre drawing huge ie 100,000+ numbers of particles
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement