MaskedOcclusionCulling icon indicating copy to clipboard operation
MaskedOcclusionCulling copied to clipboard

test bounding cube

Open coldgemini opened this issue 4 years ago • 1 comments

is there a way to test visibility of a bounding cube instead of testing all the composing triangles of the bounding cube??

Thanks

coldgemini avatar Sep 15 '20 03:09 coldgemini

TestRect would be the preferred way. An example of using this function is given in the companion sample https://github.com/GameTechDev/OcclusionCulling in the file https://github.com/GameTechDev/OcclusionCulling/blob/master/TransformedAABBoxAVX.cpp, look for function TransformAndPreTestAABBox line 165.

DaviesLeigh avatar Sep 15 '20 10:09 DaviesLeigh