Examples of Light


Examples of aspect.render.Light

        //setAmbientLight(new Color(0.2f, 0.2f, 0.2f));
        setAmbientLight(Color.BLACK);

        p = new Player(Vector3.zero());
        p.setWalkSpeed(50);
        Light l = new Light(Color.WHITE);
        l.directional = true;
        l.pos = new Vector3(0, 1, 0);

        l.setAttenuation(1.0f, 0.0f, 0.0f);

        crosshair = sprite(new Material(loadTexture(new File("materials/crosshair.png"))), 1, 1);

        int pow = 8;
View Full Code Here

Examples of aspect.render.Light

        //floor.transform.set(new Vector3(0, -12, 0), Vector3.yAxis().negate(), Vector3.zAxis(), Vector3.one());
        floor.addBehavior(new Collider(fv, fn, fe));

        World.main.add(floor);

        Light light = new Light(Color.WHITE);
        light.transform.position = new Vector3(-5, 5, 2);
        light.setAttenuation(1, 0, 0);

        //player = new Player(new Vector3(0, 0, 4));
        //World.main.add(player);
        camera = new Transform(new Vector3(-10, 10, 10), new Vector3(1, -1, -1), Vector3.yAxis(), Vector3.one());
View Full Code Here

Examples of ast.effect.Light

    asteroids = new ArrayList<Entity>();
    bullets = new ArrayList<Bullet>();   
    player = new Player(this, AssetStore.getModel("Player"));
    player.setPos(playerSpawn);
   
    light = new Light();
    light.init(new Vector3f(5,5,0));
   
    addRandomAsteroids(8);
   
    addAddList()
View Full Code Here

Examples of ca.eandb.jmist.framework.Light

   * @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

Examples of ca.eandb.jmist.framework.Light

            "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

Examples of ca.eandb.jmist.framework.Light

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

Examples of ca.eandb.jmist.framework.Light

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

      Light light      = scene.getLight();
      PathNode lightTail  = strategy.traceLightPath(
                    light, pi, seq);
      seq.mark();

      return new Path(lightTail, eyeTail);
View Full Code Here

Examples of ca.eandb.jmist.framework.Light

      PathNode eyeTail  = strategy.traceEyePath(lens, p,
                    pi, seq);
      seq.mark();

      seq.mutate(width);
      Light light      = scene.getLight();
      PathNode lightTail  = strategy.traceLightPath(
                    light, pi, seq);
      seq.mark();

      return new Path(lightTail, eyeTail);
View Full Code Here

Examples of ca.eandb.jmist.framework.Light

      double    w          = width;
      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

Examples of ca.eandb.jmist.framework.Light

    this.minSeedsPerSeedTask = numberOfSeeds / seedTasks;
    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
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.