google-ar / sceneform-android-sdk

Sceneform SDK for Android
https://developers.google.com/sceneform/develop/
Apache License 2.0
1.23k stars 604 forks source link

Want to override default near and far clip planes #679

Open fredsa opened 5 years ago

fredsa commented 5 years ago

(This issue was originally posted on the ARCore SDK for Android issue tracker: https://github.com/google-ar/arcore-android-sdk/issues/766)

Need the ability to override far Sceneform Camera's clip planes, in order to be able to render virtual objects that are far from the user.

fredsa commented 5 years ago

You can override the clip planes in your Activity's onCreate() method:

arFragment.getArSceneView().getScene().getCamera().setNearClipPlane(…);
arFragment.getArSceneView().getScene().getCamera().setFarClipPlane(…);