Examples of AmbientLight


Examples of com.jme3.light.AmbientLight

        dl.setColor(ColorRGBA.White);
        dl.setDirection((new Vector3f(0f, -1f, 0f)).normalizeLocal());
        rootNode.addLight(dl);

//
        AmbientLight ambLight = new AmbientLight();
        ambLight.setColor(ColorRGBA.Gray);
        rootNode.addLight(ambLight);
   
       

View Full Code Here

Examples of com.jme3.light.AmbientLight

        DirectionalLight light = new DirectionalLight();
        light.setDirection((new Vector3f(-0.5f, -1f, -0.5f)).normalize());
        rootNode.addLight(light);

        AmbientLight ambLight = new AmbientLight();
        ambLight.setColor(new ColorRGBA(0.2f, 0.2f, 0.2f, 1f));
        rootNode.addLight(ambLight);
     

     
      rootNode.attachChild(scene);
View Full Code Here

Examples of com.jme3.light.AmbientLight

    visible = pcHandler.createPCComponents(data, new NewCharacterModel(pcHandler.getSelectedSummary()));
    logger.fine("Character initialized to:" + visible.getLocalTranslation());

    setupChaseCamera(visible, cam);
   
        AmbientLight al = new AmbientLight();
        al.setColor(new ColorRGBA(.8f, .8f, .8f, 1.0f));
    Singleton.get().getSceneManager().changeRootLight(al,Action.ADD);

    pl = new PointLight();
    pl.setColor(ColorRGBA.White);
    pl.setRadius(15f);
View Full Code Here

Examples of com.jme3.light.AmbientLight

      geom2.setMaterial(mat2);
      geom2.setQueueBucket(Bucket.Transparent);
      geom2.setLocalTranslation(-39f, -15f, -90f)
      Singleton.get().getSceneManager().changeTerrainNode(geom2,Action.ADD);
     
    AmbientLight al = new AmbientLight();
      al.setColor(new ColorRGBA(.8f, .8f, .8f, 1.0f));
    Singleton.get().getSceneManager().changeRootLight(al,Action.ADD);
    //#############################################################

    SwingUtilities.invokeLater(new Runnable() {
View Full Code Here

Examples of com.xith3d.scenegraph.AmbientLight

    TransformGroup sphereTrans = new TransformGroup();
    sphereTrans.addChild(sph);

    objRoot.addChild(sphereTrans);

    AmbientLight aLgt = new AmbientLight(new Color3f(0.2f, 0.2f, 0.2f));
    objRoot.addChild(aLgt);

    locale.addBranchGraph(objRoot);
   
   
View Full Code Here

Examples of com.xith3d.scenegraph.AmbientLight

    sphereTrans.addChild(sph);
    sphereTrans.setName("t1");

    bg.addChild(sphereTrans);

    AmbientLight aLgt = new AmbientLight(new Color3f(0.2f, 0.2f, 0.2f));
    aLgt.setName("l1");
    bg.addChild(aLgt);
   
    VirtualUniverse v2=new VirtualUniverse();
    Locale l2=new Locale();
    l2.setName("loc2");
View Full Code Here

Examples of com.xith3d.scenegraph.AmbientLight

        rootGroup = new BranchGroup();
        rootGroup.setName(name);
        rootGroup.setUserData(this);
        rootGroup.setPickable(true);
       
        AmbientLight alight = new AmbientLight(true,new Color3f(0.5f,0.5f,0.5f));
        rootGroup.addChild(alight);
       
        lights = new DirectionalLight[1];

        for (int i=0; i<lights.length; ++i) {
View Full Code Here

Examples of edu.cmu.cs.stage3.alice.core.light.AmbientLight

      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();
          light = directionalLight;
        } else if( sgLight instanceof edu.cmu.cs.stage3.alice.scenegraph.PointLight ) {
View Full Code Here

Examples of javax.media.j3d.AmbientLight

    scene.detach();
    objRoot.setCapability(BranchGroup.ALLOW_CHILDREN_EXTEND);
    objRoot.addChild(sphereTrans);

    AmbientLight aLgt = new AmbientLight(new Color3f(0.2f, 0.2f, 0.2f));
    objRoot.addChild(aLgt);
   
    scene.attach();
  }
View Full Code Here

Examples of javax.media.j3d.AmbientLight

        branchgroup.setCapability(BranchGroup.ALLOW_CHILDREN_WRITE);
        branchgroup.setCapability(BranchGroup.ALLOW_CHILDREN_EXTEND);
       
        // TODO use light factories

        AmbientLight alight = new AmbientLight(true,new Color3f(0.5f,0.5f,0.5f));
        alight.setEnable(true);
        rootGroup.addChild(alight);
        BoundingSphere bounds = new BoundingSphere (new Point3d (0, 0.0, 0), 1E100);
        alight.setInfluencingBounds(bounds);

        lights = new DirectionalLight[1];

        for (int i=0; i<lights.length; ++i) {
          // TODO : position lights around the object
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.