You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is currently no viewframe clipping of occlusion shapes when drawing to the occlusion grid, which makes large occlusion shapes less effective when entering a clip plane makes them vanish. With clipping, more surface would be occluded. One could also calculate the worst case depth per cell instead of per shape for long walls.
Occlusion shapes currently only support boxes, but arbitrary convex shapes from point clouds could also be added.
The text was updated successfully, but these errors were encountered:
Using the fact that a drawn convex shape will have its furthest point of a convex screen region in one of the corners (assuming that the near clip plane is not cutting up holes), one can apply sparse ray-tracing against convex polyhedrons defined as a set of cutting planes. Then just take the line intersection against all forward facing planes and use the intersection furthest in as the intersection against the occlusion shape. If the closest back intersection is closer, we are outside and get infinite depth as the result. Each cell in the depth grid then becomes the furthest of all four corner depths from the grid. By starting ray-tracing at the camera's near clip plane and not sending rays outside of the view frustum, no clipping is required. If one would go inside of an occlusion shape however, everything would become invisible from detecting the occlusion from each ray's origin. This would be better than clipping against the camera, because it would also give the pessimistic furthest depth per cell instead of occluder, allowing occlusion shapes to run along a large wall and hide things closely on the other side.
There is currently no viewframe clipping of occlusion shapes when drawing to the occlusion grid, which makes large occlusion shapes less effective when entering a clip plane makes them vanish. With clipping, more surface would be occluded. One could also calculate the worst case depth per cell instead of per shape for long walls.
Occlusion shapes currently only support boxes, but arbitrary convex shapes from point clouds could also be added.
The text was updated successfully, but these errors were encountered: