mobfishgmbh / Cardboard-VR-Unity-SDK

Apache License 2.0
56 stars 11 forks source link

Clipping far distance objects #80

Open JChudinov opened 3 years ago

JChudinov commented 3 years ago

Hi! We using ur SDK in our app, where we have a couple of far distance objects. The matter is that in editor everyting works fine, yet on mobile devices (we tested samsung s7, s8, poco f1) objects placed further then ~110 units are invisible. It looks like a wrong value of clipping planes, but changing this value brought us no luck.

On this screens we have a brand new project with your SDK. Right behind the cube there is a plane and the result on mobile device u can see below. All parameters are in default state

image_2020_10_30T12_37_00_019Z

1604061375783 1604061388910

JChudinov commented 3 years ago

we found solution here

https://github.com/mobfishgmbh/Cardboard-VR-Unity-SDK/issues/69

cdytoby commented 3 years ago

Thank you for the report and note.

I made a mistake on this one. Reopen this ticket for me:

Make variable for nearClip and farClip so that people can set it dynamically.

In Method CardboardLensDistortion.RefreshProjectionMatrix(), the near and far clip are not variable, which is not good.