Class ChromaDepthGenerator

java.lang.Object
camera3D.generators.Generator
camera3D.generators.ChromaDepthGenerator

public class ChromaDepthGenerator extends Generator
Chromadepth generator. Create Chromadepth 3D images.
  • Field Details

    • DEFAULT_NEAR

      protected static float DEFAULT_NEAR
    • DEFAULT_FAR

      protected static float DEFAULT_FAR
    • defPointShaderVertURL

      protected static URL defPointShaderVertURL
    • defPointShaderFragURL

      protected static URL defPointShaderFragURL
    • defLineShaderVertURL

      protected static URL defLineShaderVertURL
    • defLineShaderFragURL

      protected static URL defLineShaderFragURL
    • defColorShaderVertURL

      protected static URL defColorShaderVertURL
    • defColorShaderFragURL

      protected static URL defColorShaderFragURL
    • defTextureShaderVertURL

      protected static URL defTextureShaderVertURL
    • defTextureShaderFragURL

      protected static URL defTextureShaderFragURL
    • defLightShaderVertURL

      protected static URL defLightShaderVertURL
    • defLightShaderFragURL

      protected static URL defLightShaderFragURL
    • defTexlightShaderVertURL

      protected static URL defTexlightShaderVertURL
    • defTexlightShaderFragURL

      protected static URL defTexlightShaderFragURL
    • defLightShaderVertBrcmURL

      protected static URL defLightShaderVertBrcmURL
    • defLightShaderVertVc4URL

      protected static URL defLightShaderVertVc4URL
    • defTexlightShaderVertBrcmURL

      protected static URL defTexlightShaderVertBrcmURL
    • defTexlightShaderVertVc4URL

      protected static URL defTexlightShaderVertVc4URL
    • pointShader

      protected processing.opengl.PShader pointShader
    • lineShader

      protected processing.opengl.PShader lineShader
    • colorShader

      protected processing.opengl.PShader colorShader
    • textureShader

      protected processing.opengl.PShader textureShader
    • lightShader

      protected processing.opengl.PShader lightShader
    • texlightShader

      protected processing.opengl.PShader texlightShader
  • Constructor Details

    • ChromaDepthGenerator

      public ChromaDepthGenerator(processing.core.PApplet parent)
  • Method Details

    • getComponentCount

      public int getComponentCount()
      Description copied from class: Generator
      The number of components in the composite image, ie, the number of times to call the draw method.
      Specified by:
      getComponentCount in class Generator
      Returns:
      int
    • getComponentFrameName

      public String getComponentFrameName(int frameNum)
      Description copied from class: Generator
      Give each component a name, such as "left" and "right" for anaglyph images.
      Specified by:
      getComponentFrameName in class Generator
      Returns:
    • recalculateCameraSettings

      protected void recalculateCameraSettings()
      Description copied from class: Generator
      Perform renderer recalculations due to camera config change.
      Specified by:
      recalculateCameraSettings in class Generator
    • prepareForDraw

      public void prepareForDraw(int frameNum, processing.core.PApplet parent)
      Description copied from class: Generator
      This is called once before each call to the user's draw method. Typically the generators need to move the camera around or change some settings.
      Specified by:
      prepareForDraw in class Generator
    • generateCompositeFrame

      public void generateCompositeFrame(int[] pixelDest, int[][] pixelStorage)
      Description copied from class: Generator
      Combine the component frames into one composite frame.
      Specified by:
      generateCompositeFrame in class Generator
    • completedDraw

      public void completedDraw(int frameNum, processing.core.PApplet parent)
      Description copied from class: Generator
      This is called once after each call to the user's draw method. Typically this is not needed.
      Specified by:
      completedDraw in class Generator
    • cleanup

      public void cleanup(processing.core.PApplet parent)
      Description copied from class: Generator
      This is called after the last call to the user's draw method and before the user's postDraw method. This should put the camera back so other libraries like ControlP5 can function correctly.
      Specified by:
      cleanup in class Generator
    • loadShader

      protected String[] loadShader(URL url)
    • initShaders

      protected void initShaders()
    • setNearFar

      public ChromaDepthGenerator setNearFar(float near, float far)
    • setColorShader

      public ChromaDepthGenerator setColorShader()
    • setTextureShader

      public ChromaDepthGenerator setTextureShader()
    • setLightShader

      public ChromaDepthGenerator setLightShader()
    • setTexLightShader

      public ChromaDepthGenerator setTexLightShader()