Package ca.eandb.jmist.framework

Examples of ca.eandb.jmist.framework.Lens


      }
    }

    if (newEyeTail == null && m1 > 0) {
      PathInfo pi = x.getPathInfo();
      Lens lens = pi.getScene().getLens();
      Point2 p = RandomUtil.canonical2(rnd);
      newEyeTail = lens.sample(p, pi, rnd.next(), rnd.next(), rnd.next());
      m1--;
    }
    while (m1-- > 0) {
      newEyeTail = newEyeTail.expand(rnd.next(), rnd.next(), rnd.next());
      if (newEyeTail == null || newEyeTail.isAtInfinity()) {
View Full Code Here


      Color sample    = colorModel.sample(seq);
      seq.mark();

      PathInfo pi      = new PathInfo(scene, sample.getWavelengthPacket());
      Lens lens      = scene.getLens();
      PathNode eyeTail  = strategy.traceEyePath(lens, p,
                    pi, seq);
      seq.mark();

      Light light      = scene.getLight();
View Full Code Here

      Color sample    = colorModel.sample(seq);
      seq.mark();

      PathInfo pi      = new PathInfo(scene, sample.getWavelengthPacket());
      Lens lens      = scene.getLens();
      PathNode eyeTail  = strategy.traceEyePath(lens, p,
                    pi, seq);
      seq.mark();

      PathNode lightTail  = path.getLightTail();
View Full Code Here

      Color sample    = colorModel.sample(seq);
      seq.mark();

      seq.mutate(width);
      PathInfo pi      = new PathInfo(scene, sample.getWavelengthPacket());
      Lens lens      = scene.getLens();
      PathNode eyeTail  = strategy.traceEyePath(lens, p,
                    pi, seq);
      seq.mark();

      seq.mutate(width);
View Full Code Here

      double    h          = height;
      int      numPixels      = width * height;
      int      samplesPerPixel    = passes * lightPathsPerEyePath;
      double    lightImageWeight  = 1.0 / (double) samplesPerPixel;
      Light    light        = scene.getLight();
      Lens    lens        = scene.getLens();
      Animator  animator      = scene.getAnimator();

      initialize();
      raster.get().clear();

View Full Code Here

    PathInfo pathInfo = new PathInfo(scene, lambda);
    return strategy.traceLightPath(light, pathInfo, rnd);
  }

  private final PathNode generateEyePath(Random rnd, WavelengthPacket lambda) {
    Lens lens = scene.getLens();
    Point2 p = RandomUtil.canonical2(rnd);
    PathInfo pathInfo = new PathInfo(scene, lambda);
    return strategy.traceEyePath(lens, p, pathInfo, rnd);
  }
View Full Code Here

TOP

Related Classes of ca.eandb.jmist.framework.Lens

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.