cosmoscout / cosmoscout-vr

:milky_way: A virtual universe which lets you explore, analyze and present huge planetary datasets and large simulation data in real-time.
Other
351 stars 27 forks source link

Use reverse infinite projection #282

Closed Schneegans closed 2 years ago

Schneegans commented 2 years ago

This would resolve most depth-precision related issues.

I think we could add the new matrix type here: https://github.com/cosmoscout/opensg-1.8/blob/master/OSGBase/OSGMatrixUtility.h This is then called by: https://github.com/cosmoscout/opensg-1.8/blob/master/OSGSystem/OSGProjectionCameraDecorator.cpp#L208

Maybe we could just hard-code this projection type...