Examples of SurfacePoint


Examples of ca.eandb.jmist.framework.SurfacePoint

   */
  @Override
  public ScatteredRay scatter(SurfacePoint x, Vector3 v, boolean adjoint,
      WavelengthPacket lambda, double ru, double rv, double rj) {

    SurfacePoint adapter = new SurfacePointAdapter(x);
    ScatteredRay sr = inner.scatter(adapter, v, adjoint, lambda, ru, rv, rj);

    if (sr != null) {
      double idotn = -v.dot(x.getNormal());
      double odotn = sr.getRay().direction().dot(x.getNormal());
View Full Code Here

Examples of ca.eandb.jmist.framework.SurfacePoint

    double idots = -in.dot(x.getShadingNormal());
    double odotn = out.dot(x.getNormal());
    double odots = out.dot(x.getShadingNormal());

    if ((idotn > 0) == (idots > 0) && (odotn > 0) == (odots > 0)) {
      SurfacePoint adapter = new SurfacePointAdapter(x);
      double pdf = inner.getScatteringPDF(adapter, in, out, adjoint, lambda);
      if (adjoint) {
        return pdf * odots / odotn;
      } else {
        return pdf;
View Full Code Here

Examples of ca.eandb.jmist.framework.SurfacePoint

    double idots = -in.dot(x.getShadingNormal());
    double odotn = out.dot(x.getNormal());
    double odots = out.dot(x.getShadingNormal());

    if ((idotn > 0) == (idots > 0) && (odotn > 0) == (odots > 0)) {
      SurfacePoint adapter = new SurfacePointAdapter(x);
      return inner.bsdf(adapter, in, out, lambda);
    } else {
      return ColorUtil.getBlack(lambda);
    }
  }
View Full Code Here

Examples of ca.eandb.jmist.framework.SurfacePoint

  public Vector3 scatter(final SurfacePointGeometry x, Vector3 v, boolean adjoint,
      double wavelength, Random rnd) {

    ColorModel cm = new MonochromeColorModel(wavelength);
    Color white = cm.sample(rnd);
    SurfacePoint surf = new SurfacePoint() {
      public Medium getAmbientMedium() {
        return ambientMedium;
      }
      public Material getMaterial() {
        return material;
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.