PDA

View Full Version : scaling point sprites



Morpheus011
02-08-2006, 10:09 AM
I'm having trouble finding a way to scale point sprites. I'm using them for my particle engine and for a few other features in my game, so I would really like to be able to scale the point sprites so my particles are not always uniform. Any help is greatly appreciated, thanks!

dorbie
02-08-2006, 11:49 AM
Point Sprite assumes EXT_point_parameters support.

http://oss.sgi.com/projects/ogl-sample/registry/ARB/point_parameters.txt

Here's a tutorial on it but using the original SGI extension:

http://www.opengl.org/resources/code/rendering/mjktips/particles/index.html

So using point parameters you can give your points a size that varies by range so your point sprites have a scale.

Be aware that point parameters implementations have size limitations that vary accross platforms.