Module raytracer

Class BidirectionalRenderer

All Implemented Interfaces:
Renderer

public class BidirectionalRenderer extends PixelwiseRenderer
  • Constructor Details

    • BidirectionalRenderer

      public BidirectionalRenderer()
  • Method Details

    • render

      public void render(Scene scene, Sensor camera, Matrix4d cameraTransformation, int width, int height, ImageObserver obs)
      Description copied from interface: Renderer
      Renders an image of a scene.
      Specified by:
      render in interface Renderer
      Overrides:
      render in class PixelwiseRenderer
      Parameters:
      scene - scene to render
      camera - camera to use
      cameraTransformation - transformation from camera coordinates to world coordinates
      width - width of image
      height - height of image
      obs - the observer receives the image data
    • renderLines

      protected void renderLines(Antialiasing antialiasing, IntList lines, PixelwiseRenderer.Result res)
      Overrides:
      renderLines in class PixelwiseRenderer
    • mergeCausticMap

      public void mergeCausticMap(CausticMap localMap)
    • mergeCaustic2Image

      public void mergeCaustic2Image()
    • getPixelsForLine2Vertex

      public float[] getPixelsForLine2Vertex(Environment env, Point3d vertex)