title: How to setProjectionMatrix far clipping plane param in ARcore in Android Studio
body: <p>I am rendering a large rectangular surface (flattened cube with texture). When the dimensions are more than 10 meters or so the distal part of the surface gets clipped. While researching the topic I found that my problem may have something to do with setting the near and far clipping planes (see: <a href="https://stackoverflow.com/questions/54926644/arcore-rendering-objects-200m-far-from-camera">ARCore – Rendering objects 200m far from camera</a> ).  How do I set these parameters? Here is how I render the surface:</p>
  
  <pre><code>fun renderImage(arFragment: ArFragment, anchor: Anchor, renderable: Int, width: Float, length: Float, x: Float, y: Float, z: Float, nodeName: String, scale: Float) {
  Texture.builder().setSource(BitmapFactory.decodeResource(arFragment.resources, renderable)) 
          .build()
          .thenAccept {
              MaterialFactory.makeTransparentWithTexture(arFragment.context, it)
                      .thenAccept { material -&gt;
                          val modelRenderable = ShapeFactory.makeCube(
                                  Vector3(width, 0.000001f, length), 
                                  Vector3(x,y,z), // position
                                  material)
                          addNodeToScene(arFragment, anchor, modelRenderable, nodeName, scale)
                      }
          }
  </code></pre>
  
  <p>}</p>
  
  <p>where length=200f; width=100f;</p>
  
  <p>According to answer-0 in the above mentioned post: "at the moment (March 2019) there's no way to setup ARCamera's far clipping plane and near clipping plane." Is this still the case? Could anyone suggest a workaround, please? </p>
  
  <p>I know there is away to get the Projection Matrix (<a href="https://developers.google.com/ar/reference/java/arcore/reference/com/google/ar/core/Camera#getProjectionMatrix(float[],%20int,%20float,%20float)" rel="nofollow noreferrer">https://developers.google.com/ar/reference/java/arcore/reference/com/google/ar/core/Camera#getProjectionMatrix(float[],%20int,%20float,%20float)</a>). But how do I set it?</p>