PDA

View Full Version : Rotating arbitrary blobs



Luke H.
01-26-2005, 04:20 PM
Hi there,

I'm wanting to render (a lot of) white blobs of arbitrary shape and size to the frame buffer. Most importantly, I'm wanting to be able to rotate a blob by some arbitrary amount prior to rendering.

To date, with my blobs stored in memory as pixel data, I've been using glDrawPixels() and glPixelZoom() to do so. However, I can't use glRotate() to effect any rotation -- since glDrawPixels() inputs to the rasterization step, bypassing any rotation transformations.

Any suggestions as to how to deal with my blobs efficiently would be most appreciated.

Thanks,
Luke

SirKnight
01-26-2005, 04:26 PM
You could render your blobs to a pbuffer and use that to texture map a quad which you can rotate.

-SirKnight