Filtering occluded polygons

Date : Thu, 5 Oct 2006 11:34:06 -0400
To : XSI(at)Softimage.COM
From : "Etienne Pellerin" <epelleri(at)gmail.com>
Subject : Filtering occluded polygons
Hi,

I'm writing a C++ tool to select polygons based on their visibility from a camera. I need to flag the polygons that are partially hidden, and/or those that are completely hidden by the selected polymeshes.

As of now, I am considering two possible solutions :

1. Get all polys and calculate a geometrically exact occlusion. It would be a lot of work to write something optimized.

2. Make a ZBuffer to flag the polygons. This would be fast and easy, but would lack precision, with erroneous flagging for very small polys, or it would require a lot of memory for accuracy.

Both cases, I am basically getting the polymesh data and computing everything myself, so it feels like reinventing the wheel.

Is there something in the SDK that could help for this task ?

Any other suggestion ?

Thanks,


Search the XSI List archives here or use the advanced search form to search across mailing lists. Searching help is available.
This site supposedly brought to you by Benjamin Grosser and the Imaging Technology Group.