Skip to main content
GameDev.net gamedev.net
🔒 Locked

GL_ARB_point_sprite

Started by n00body Mar 26, 2007 at 1:13 AM 0 replies 2k views
Original Post
n00body
n00body
How beneficial is the point_sprite extension to rendering particle systems, and in what ways?

[Hardware:] Falcon Northwest Tiki, Windows 7, Nvidia Geforce GTX 970 [Websites:] Development Blog |
gharen2
gharen2
1) You need 1/4 as many vertices. Point sprites just need one vertex per particle, while while quads need four per pixel.

2) Speed. When using quads, the calculations that ensure that the particle is facing the viewer are done on the CPU. With point sprites, they're done on the video card.

However, using quads gives you absolute control over how they're rendered.

But, the advent of shaders complicate things. You can do the calculations on the video card if you write an appropriate vertex shader.

So my advice is this: if you don't want to use a vertex shader, then use point sprites. If you do want to use shaders, then render quads, and offload the calculations to a vertex shader.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.