Package ca.eandb.jmist.framework.material

Examples of ca.eandb.jmist.framework.material.LambertianMaterial


  /**
   * Creates a new <code>CornellBoxModel</code>.
   */
  public EmptyCornellBoxScene(ColorModel colorModel) {
    Material matteWhite = new LambertianMaterial(colorModel.getContinuous(white));
    Material matteGreen = new LambertianMaterial(colorModel.getContinuous(green));
    Material matteRed = new LambertianMaterial(colorModel.getContinuous(red));
    Material matteEmissive = new LambertianMaterial(colorModel.getGray(0.78), colorModel.getContinuous(emission));

    SceneElement materialMap = new MaterialMapSceneElement(geometry)
        .addMaterial("white", matteWhite)
        .addMaterial("red", matteRed)
        .addMaterial("green", matteGreen)
View Full Code Here


  private final SceneElement root;

  public SphereFurnaceScene(Spectrum reflectance, Spectrum emittance) {
    root = new MaterialSceneElement(
        new LambertianMaterial(reflectance, emittance),
        new InsideOutGeometry(new SphereGeometry(Sphere.UNIT)));
  }
View Full Code Here

  private final SceneElement root;

  public BoxFurnaceScene(Spectrum reflectance, Spectrum emittance) {
    root = new MaterialSceneElement(
        new LambertianMaterial(reflectance, emittance),
        new InsideOutGeometry(new BoxGeometry(new Box3(-1, -1, -1, 1, 1, 1))));
  }
View Full Code Here

        Painter ka, kd, ks, tf;

        switch (illum) {
        case 0:
          kd = getPainter("Kd");
          material = new LambertianMaterial(kd);
          shader = new ConstantShader(kd);
          break;

        case 1:
          ka = getPainter("Ka");
          kd = getPainter("Kd");
          // TODO add ambient term
          material = new LambertianMaterial(kd);
          shader = new DirectLightingShader();
          break;

        case 2:
          ka = getPainter("Ka");
View Full Code Here

  /**
   * Creates a new <code>CornellBoxModel</code>.
   */
  public CornellBoxScene(ColorModel colorModel) {
    Material matteWhite = new LambertianMaterial(colorModel.getContinuous(white));
    Material matteGreen = new LambertianMaterial(colorModel.getContinuous(green));
    Material matteRed = new LambertianMaterial(colorModel.getContinuous(red));
    Material matteEmissive = new LambertianMaterial(colorModel.getGray(0.78), colorModel.getContinuous(emission));

    SceneElement materialMap = new MaterialMapSceneElement(geometry)
        .addMaterial("white", matteWhite)
        .addMaterial("red", matteRed)
        .addMaterial("green", matteGreen)
View Full Code Here

  /**
   * Creates a new <code>CornellBoxModel</code>.
   */
  public CornellBoxScene(ColorModel colorModel, ScatteringStrategy strategy, double weight) {
    Material matteWhite = new LambertianMaterial(colorModel.getContinuous(white));
    Material matteGreen = new LambertianMaterial(colorModel.getContinuous(green));
    Material matteRed = new LambertianMaterial(colorModel.getContinuous(red));
    Material matteEmissive = new LambertianMaterial(colorModel.getGray(0.78), colorModel.getContinuous(emission));

    matteWhite = new ScatteringAdapterMaterial(matteWhite, strategy, weight);
    matteGreen = new ScatteringAdapterMaterial(matteGreen, strategy, weight);
    matteRed = new ScatteringAdapterMaterial(matteRed, strategy, weight);
    matteEmissive = new ScatteringAdapterMaterial(matteEmissive, strategy, weight);
View Full Code Here

      if (dxf.getCurrentElement().getStringValue().equals("EOF")) {
        break;
      }
      rootGroupHandler.parse(state, dxf);
    } while (true);
    return new MaterialSceneElement(new LambertianMaterial(cm.getGray(0.5)), new BoundingIntervalHierarchy(state.root));
  }
View Full Code Here

  private static final TransformableLens lens;

  private final SceneElement root;

  public EmissionTestScene(ColorModel colorModel) {
    Material diffuse50 = new LambertianMaterial(colorModel.getGray(0.5));
    Material diffuseLuminaire1 = new LambertianMaterial(null, colorModel.getGray(2e5));

    this.root = new MaterialMapSceneElement(geometry)
        .addMaterial("diffuse50", diffuse50)
        .addMaterial("diffuseLuminaire1", diffuseLuminaire1)
        .setMaterial(0, "diffuseLuminaire1")        // large light source
View Full Code Here

              .addChild(new ScaledFunction1(
                pctWholeBloodInReticularDermis * concentrationBilirubinInBlood / 585.0,
                OMLC_PRAHL_BILIRUBIN))),
            thicknessReticularDermis)))
      .addLayerToBottom( // reticular dermis / hypodermis interface
        new LambertianMaterial(cm.getWhite()));
  }
View Full Code Here

TOP

Related Classes of ca.eandb.jmist.framework.material.LambertianMaterial

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.