fast billboards

Posts: 320
Joined: 2003.06
Post: #1

Does anyone know of a nice fast way to draw a heap of billboards? When I say billboards, they don't need to be "true" billboards. Having them always have up vector as 0.0,1.0,0.0 and all facing the camera plane, rather than the camera point would be fine.

So far I've only been able to figure out ways that involve a multMatrix or loadMatrix call for every billboard. Not only is this an overhead, but it rules out vertex arrays.

I thought I'd almost got there when I came across ARB_point_sprite, but it's not defined in panther Sad


Chopper, iSight Screensavers, DuckDuckDuck:
Quote this message in a reply
Posts: 5,143
Joined: 2002.04
Post: #2
Camera-plane-aligned is the usual meaning of "billboard"; camera-point-aligned looks very strange in the rectangular projections of 3D graphics.

ARB_point_sprite is present on hardware that supports it (GeForce FX+, Radeon 9600+)... but it's ugly, damn-ugly.

The code here: draws 'em all in one immediate-mode batch. I'll probably get around to VBO-ing it sooner or later Smile
Quote this message in a reply
Posts: 5,143
Joined: 2002.04
Post: #3
update: vbo-ized. Not elegantly (I don't check for the presence of the extension or fall back to CVA or anything, but it's substantially faster than it was Grin)
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Too fast! Silden 7 6,715 Apr 16, 2003 02:40 PM
Last Post: Mars_999
  how fast should this be? <seb> 3 5,483 Feb 25, 2003 12:51 PM
Last Post: <seb>