Closed NadirRoGue closed 2 years ago
I forgot to add that with perspective camera, the clipping behaves as expected, though.
Thanks for reporting, this was a not-handled corner case (which however is rather common when using the orthographic camera). The fix is now in devel
and will be part of the next release.
Thanks for the quick reply and support on this!.
Hello, I have been testing clipping geometry with orthographic camera on our application. I found a strange behaviour when using a clipping plane that is completely perpendicular to the orthrographic camera view.
clip_with_planes
sceneBy commenting and un-commenting the
model.setParam("invertNormals", true);
line, I can achieve both behaviours, as showcased in the following screenshots.Without normals inverted:
WIth normals inverted:
Furthermore, the clipping is not "symetrical". I would expect the second one (with inverted normals) to be the opposite clipping of the one without inverted normals, however, it seems to be clipped twice.
Am I setting something wrong or may this be a bug? If its the expected behaviour, how can I achieve clipping with orthographical camera when the planes are perpendicular to the view direction?
Kind regards.