Package ca.eandb.jmist.framework

Examples of ca.eandb.jmist.framework.Scene


  protected final ScatteringNode trace(ScatteredRay sr, double ru, double rv, double rj) {
    if (sr == null) {
      return null;
    }
    Scene scene = pathInfo.getScene();
    Ray3 ray = sr.getRay();
    SceneElement root = scene.getRoot();
    Intersection x = NearestIntersectionRecorder
        .computeNearestIntersection(ray, root);
    if (x != null) {
      ShadingContext context = new MinimalShadingContext(Random.DEFAULT);
      x.prepareShadingContext(context);
View Full Code Here


  /* (non-Javadoc)
   * @see ca.eandb.jmist.framework.path.ScatteringNode#getSourcePDF()
   */
  public double getSourcePDF() {
    PathInfo path = getPathInfo();
    Scene scene = path.getScene();
    Light light = scene.getLight();
    return light.getSamplePDF(surf, path);
  }
View Full Code Here

        throw new IllegalArgumentException(
            "newParent == null && grandChild != null");
      }

      PathInfo pi = getPathInfo();
      Scene scene = pi.getScene();
      Light light = scene.getLight();
      double pdf = light.getSamplePDF(surf, pi);

      return ScaledLightNode.create(pdf, new SurfaceLightNode(pi, surf, getRU(), getRV(), getRJ()), getRJ());
    }
  }
View Full Code Here

TOP

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

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.