math3d-react icon indicating copy to clipboard operation
math3d-react copied to clipboard

Hidden surface removal issue in orthographic projection mode

Open harry7557558 opened this issue 4 years ago • 1 comments

Some back surface removal seems to be incorrect when using orthographic projection.

Example link: https://www.math3d.org/6A3dX1cX

Chrome screeshot: Screenshot_20200717175105

Firefox screenshot: Screenshot_20200717175132

I'm using Windows 10 with Intel i7-8550U CPU and Intel UHD Graphics 620 GPU.

harry7557558 avatar Jul 17 '20 22:07 harry7557558

Thanks for reporting this.

Unfortunately, to be honest, I doubt I'll be able to do anything about it any time soon.

The orthographic project mode is really hacky because the underlying graphics library math3d uses (MathBox) never fully supported orthographic mode, I believe. The math3d orthographic mode is not "real" orthographic, it's actually just a dolly-zoomed way far out 😦 I suspect what's happening here is some numeric rounding / z-fighting issues since the objects are actually really far from the camera.

ChristopherChudzicki avatar Jul 25 '20 15:07 ChristopherChudzicki