Page MenuHome

Fix T69911: Adaptive subdivision offscreen dicing does not work correctly if the camera is shifted
ClosedPublic

Authored by Philipp Oeser (lichtwerk) on Oct 25 2020, 1:16 PM.

Details

Summary

Code was assuming frustrum planes are symmetrical which is not the case
for shifting. This lead to a shrinking region if shift was negative (and
a growing region if shift was positive)

So instead of only keeping track of plane on one side (and mirroring
over in code) get the actual planes after shifting and use these
instead.

This code corrects this for ortho and perspective cameras, it does not
touch panoramic cameras.

Diff Detail

Repository
rB Blender