I need to change orthoLeft, orthoRight etc. in my project in order to zoom and pan the camera. What I am missing? Is there a manual align method that I need to call after frustum change?
Second problem: SSAO looks messed up if I apply a negative minZ for the camera.
Zooming also involves also shifting the frustum. Maybe it is an odd way but it worked for me until I introduced ambient occlusion. From your example I get that uniformly increasing/decreasing the frustum to all extends (center zoom) does work with SSAO. I guess I can implement panning by changing camera.position and use this in combination with uniformed frustum change for the same resultsâŚ
Any news regarding negative camera.minZ in combination with SSAO? Is it possible to prevent clipping of the ortho cam without negative minZ as a workaround?
Negative values for minZ are not supported, as minZ corresponds to the distance from the near clipping plane. Only values greater than 0 are supported.
Regarding your issue, this is due to the fact that off-center frusta were not supported in SSAO. This PR will fix it: