Cardboard-VR-Unity-SDK icon indicating copy to clipboard operation
Cardboard-VR-Unity-SDK copied to clipboard

Clipping far distance objects

Open JChudinov opened this issue 4 years ago • 2 comments

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 avatar Oct 30 '20 12:10 JChudinov

we found solution here

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

JChudinov avatar Oct 30 '20 15:10 JChudinov

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.

cdytoby avatar Nov 04 '20 16:11 cdytoby