Class DepthTexture


  • public class DepthTexture
    extends java.lang.Object
         The DepthTexture class holds a special Texture to store
         information from a DepthImage or RawDepthImage to implement the occlusion of
         virtual objects behind real world objects.
     
    • Constructor Summary

      Constructors 
      Constructor Description
      DepthTexture​(int width, int height)
      A call to this constructor creates a new Filament Texture which is later used to feed in data from a DepthImage.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.google.android.filament.Texture getFilamentTexture()  
      void updateDepthTexture​(android.media.Image depthImage)
      This is the most important function of this class.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DepthTexture

        public DepthTexture​(int width,
                            int height)
              A call to this constructor creates a new Filament Texture which is
              later used to feed in data from a DepthImage.
         
        Parameters:
        width - int
        height - int
    • Method Detail

      • getFilamentTexture

        public com.google.android.filament.Texture getFilamentTexture()
      • updateDepthTexture

        public void updateDepthTexture​(android.media.Image depthImage)
             This is the most important function of this class.
             The Filament Texture is updated based on the newest
             DepthImage. To solve a problem with a to early
             released DepthImage the ByteBuffer which holds all
             necessary data is cloned. The cloned ByteBuffer is unaffected
             of a released DepthImage and therefore produces not
             a flickering result.
         
        Parameters:
        depthImage - Image