Examples of PathInfo


Examples of ca.eandb.jmist.framework.path.PathInfo

    int l1 = RandomUtil.discrete(0, ka - 1, rnd);
    int m1 = ka - 1 - l1;

    if (newLightTail == null && l1 > 0) {
      PathInfo pi = x.getPathInfo();
      Light light = pi.getScene().getLight();
      newLightTail = light.sample(pi, rnd.next(), rnd.next(), rnd.next());
      l1--;
    }
    while (l1-- > 0) {
      newLightTail = newLightTail.expand(rnd.next(), rnd.next(), rnd.next());
      if (newLightTail == null || newLightTail.isAtInfinity()) {
        return null;
      }
    }

    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) {
View Full Code Here

Examples of ca.eandb.jmist.framework.path.PathInfo

      seq.mark();

      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();
View Full Code Here

Examples of ca.eandb.jmist.framework.path.PathInfo

      seq.mark();

      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();
View Full Code Here

Examples of ca.eandb.jmist.framework.path.PathInfo

      seq.mutate(width);
      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();
View Full Code Here

Examples of ca.eandb.jmist.framework.path.PathInfo

  /* (non-Javadoc)
   * @see ca.eandb.jmist.framework.Lens#rayAt(ca.eandb.jmist.math.Point2, ca.eandb.jmist.framework.color.WavelengthPacket, ca.eandb.jmist.framework.Random)
   */
  public final ScatteredRay rayAt(Point2 p, WavelengthPacket lambda, Random rnd) {
    PathInfo path = new PathInfo(lambda);
    EyeNode node = sample(p, path, rnd.next(), rnd.next(), rnd.next());
    return node.sample(rnd.next(), rnd.next(), rnd.next());
  }
View Full Code Here

Examples of ca.eandb.jmist.framework.path.PathInfo

              animator.setTime(time);
            }

            Point2 p      = RandomUtil.uniform(bounds, random);
            Color sample    = colorModel.sample(random);
            PathInfo path    = new PathInfo(scene, sample.getWavelengthPacket());
            PathNode eyeTail  = strategy.traceEyePath(lens, p,
                          path, random);

            for (int j = 0; j < lightPathsPerEyePath; j++) {
View Full Code Here

Examples of ca.eandb.jmist.framework.path.PathInfo

    this.extraSeeds = numberOfSeeds % seedTasks;
  }

  private final PathNode generateLightPath(Random rnd, WavelengthPacket lambda) {
    Light light = scene.getLight();
    PathInfo pathInfo = new PathInfo(scene, lambda);
    return strategy.traceLightPath(light, pathInfo, rnd);
  }
View Full Code Here

Examples of ca.eandb.jmist.framework.path.PathInfo

  }

  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

Examples of ca.eandb.jmist.framework.path.PathInfo

  /* (non-Javadoc)
   * @see ca.eandb.jmist.framework.Light#emit(ca.eandb.jmist.framework.color.WavelengthPacket, ca.eandb.jmist.framework.Random)
   */
  public final ScatteredRay emit(WavelengthPacket lambda, Random rnd) {
    PathInfo path = new PathInfo(lambda);
    LightNode node = sample(path, rnd.next(), rnd.next(), rnd.next());
    return node.sample(rnd.next(), rnd.next(), rnd.next());
  }
View Full Code Here

Examples of com.day.cq.commons.PathInfo

        }
        return paths;
    }

    private String decode(String url) {
        return new PathInfo(url).getResourcePath();
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.