Jump to content
  • Advertisement
Sign in to follow this  
InfestedFurby

gl_point_sprite scaling question

This topic is 4478 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

I'm working on a particle system that currently uses gl_point_sprite to draw the particles. The problem is that regardless of the camera position, the particles all come out the same size ( as specified by glPointSize() ). I would like the particles to naturally get smaller as they move farther from the camera, and also appear the same size at different screen resolutions ( right now they look bigger in lower resolutions because glPointSize is in pixels). Now I could of course calculate all this by hand, but if there is a way to tell the hardware to do it for me that would be better. Is there a way to do this on the gpu? (preferably withouth using shaders, since I'd like my game to work on older computers).

Share this post


Link to post
Share on other sites
Advertisement
Quote:
Original post by InfestedFurby
I'm working on a particle system that currently uses gl_point_sprite to draw the particles. The problem is that regardless of the camera position, the particles all come out the same size ( as specified by glPointSize() ). I would like the particles to naturally get smaller as they move farther from the camera, and also appear the same size at different screen resolutions ( right now they look bigger in lower resolutions because glPointSize is in pixels). Now I could of course calculate all this by hand, but if there is a way to tell the hardware to do it for me that would be better. Is there a way to do this on the gpu? (preferably withouth using shaders, since I'd like my game to work on older computers).
This is a part of the GL_ARB_point_parameters extension.

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!