Examples of Light


Examples of com.jme3.light.Light

    if (obj instanceof VisibleObject) {
      VisibleObject vo = (VisibleObject)obj;
      Spatial vos = vo.getSpatial();
      if (vos != null)
        rootNode.attachChild(vos);
      Light vol = vo.getLight();
      if (vol != null)
        rootNode.addLight(vol);
    }
    if (obj instanceof PhysicalObject) {
      PhysicalObject po = (PhysicalObject)obj;
View Full Code Here

Examples of com.jme3.light.Light

    if (obj instanceof VisibleObject) {
      VisibleObject vo = (VisibleObject)obj;
      Spatial vos = vo.getSpatial();
      if (vos != null)
        rootNode.detachChild(vos);
      Light vol = vo.getLight();
      if (vol != null)
        rootNode.removeLight(vol);
    }
    if (obj instanceof PhysicalObject) {
      PhysicalObject po = (PhysicalObject)obj;
View Full Code Here

Examples of com.thecrouchmode.graphics.Light

   
    System.out.println(MVP_manual.multiply(a4).normalize());

    System.out.println(MVP_manual.multiply(a4.normalize()).normalize());
   
    Light lightsource = Light.builder()
        .pos(1, 3, 2)
        .intensity(1, 0, 0)
        .build()
   
  }
View Full Code Here

Examples of de.ailis.jollada.model.Light

    public Light build()
    {
        if (this.lightSource == null)
            throw new IllegalStateException("lightSource not set");
        final CommonLightTechnique commonTechnique = new CommonLightTechnique(this.lightSource);
        final Light light = new Light(commonTechnique);
        light.setAsset(this.asset);
        light.setId(this.id);
        light.setName(this.name);
        return light;
    }
View Full Code Here

Examples of edu.cmu.cs.stage3.alice.core.Light

      edu.cmu.cs.stage3.alice.scenegraph.Light sgLight = getFirstLightChild( sgTransformable );
      edu.cmu.cs.stage3.alice.scenegraph.Camera sgCamera = getFirstCameraChild( sgTransformable );
      edu.cmu.cs.stage3.alice.scenegraph.Visual sgVisual = getFirstVisualChild( sgTransformable );
      Model model = null;
      if( sgLight != null ) {
        Light light = null;
        if( sgLight instanceof edu.cmu.cs.stage3.alice.scenegraph.AmbientLight ) {
          AmbientLight ambientLight = new AmbientLight();
          light = ambientLight;
        } else if( sgLight instanceof edu.cmu.cs.stage3.alice.scenegraph.DirectionalLight ) {
          DirectionalLight directionalLight = new DirectionalLight();
View Full Code Here

Examples of engine.Light

    */
  }
  @Override
  public void init() {
    //this.starfield = new StarField();
    this.light = new Light(0);
    light.move(0f, 3f, 0f);
    loadModel("chamfer_box.obj").setDefaultMaterial(loadMaterial("box_normal.mat"));
    loadModel("plane.obj").setDefaultMaterial(loadMaterial("plane.mat"));
 
    Material cubebox = loadMaterial("box_cubemap.mat");
View Full Code Here

Examples of javafx.scene.effect.Light

   * Creates the {@linkplain Preloader} {@linkplain Scene}
   */
  private void createPreloaderScene() {
    bar = new ProgressBar();
    bar.setMinWidth(WIDTH / 1.3d);
    final Light light = new Light.Distant();
    final Lighting lighting = new Lighting();
    lighting.setSurfaceScale(3d);
    lighting.setLight(light);
    bar.setEffect(lighting);
    new Dialog(null, stage, KEY.APP_TITLE, RS.rbLabel(KEY.LOADING), null,
View Full Code Here

Examples of javafx.scene.effect.Light

   *            the {@linkplain ProgressIndicator} {@linkplain Task} ran in
   *            the {@linkplain Service}
   * @return the {@linkplain ProgressIndicator} alert {@linkplain Service}
   */
  public static <T> Service<T> alertProgress(final Stage parent, final Task<T> progressTask) {
    final Light light = new Light.Distant();
    final Lighting lighting = new Lighting();
    lighting.setSurfaceScale(1d);
    lighting.setLight(light);
    //final ProgressIndicator pi = ProgressIndicatorBuilder.create().maxWidth(200d).effect(lighting).build();
    final ProgressIndicator pi = ProgressBarBuilder.create().maxWidth(parent.getWidth() / 2d).maxHeight(25d).effect(lighting).build();
View Full Code Here

Examples of org.apache.batik.ext.awt.image.Light

        // 'specularExponent' attribute - default is 1
        float specularExponent = convertSpecularExponent(filterElement);

        // extract the light definition from the filterElement's children list
        Light light = extractLight(filterElement, ctx);

        // 'kernelUnitLength' attribute
        double [] kernelUnitLength = convertKernelUnitLength(filterElement);

        // 'in' attribute
View Full Code Here

Examples of org.apache.batik.ext.awt.image.Light

        // 'kernelUnitLength' attribute
        // <!> FIXME: Why is it ignored ???

        // extract the light definition from the filterElement's children list
        Light light = extractLight(filterElement, ctx);

        // 'kernelUnitLength' attribute
        double [] kernelUnitLength = convertKernelUnitLength(filterElement);

        // 'in' attribute
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.