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,