Jump to content
  • Advertisement
Sign in to follow this  
laeuchli

OpenGL Quick question about point sprites.

This topic is 4161 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

Share this post


Link to post
Share on other sites
Advertisement
Hm so they do, using the ARB point sprite extension. Is the API any different now that point sprites have been "promoted"?

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!