Package javax.media.j3d

Examples of javax.media.j3d.BranchGroup.compile()


    bg.setApplicationBounds(bounds);
    theScene.addChild(bg);



    theScene.compile();

    //Add the scene to the universe.
    su.addBranchGraph(theScene);

  }
View Full Code Here


    theScene.addChild(bgImage);

    //Add the background sound (rain) to the scene.
    theScene.addChild(soundBG);

    theScene.compile();

    //Add the scene to the universe.
    su.addBranchGraph(theScene);

  }
View Full Code Here

    Background bgImage = new Background(textureLoad.getImage());
    bgImage.setApplicationBounds(bounds);
    theScene.addChild(bgImage);


    theScene.compile();

    //Add the scene to the universe.
    su.addBranchGraph(theScene);

  }
View Full Code Here

    BoundingSphere bounds = new BoundingSphere(new Point3d(0.0,0.0,0.0),Double.MAX_VALUE);
    bg.setApplicationBounds(bounds);
    theScene.addChild(bg);


    theScene.compile();

    //Add the scene to the universe.
    su.addBranchGraph(theScene);

  }
View Full Code Here

    bg.setApplicationBounds(bounds);
    theScene.addChild(bg);



    theScene.compile();

    //Add the scene to the universe.
    su.addBranchGraph(theScene);

  }
View Full Code Here

    bg.setApplicationBounds(bounds);
    theScene.addChild(bg);



    theScene.compile();

    //Add the scene to the universe.
    su.addBranchGraph(theScene);

  }
View Full Code Here

    theScene.addChild(tgHeliPlat);
    theScene.addChild(tgTree);



    theScene.compile();

    //Add the scene to the universe.
    su.addBranchGraph(theScene);

  }
View Full Code Here

    bg.setApplicationBounds(bounds);
    theScene.addChild(bg);



    theScene.compile();

    //Add the scene to the universe
    su.addBranchGraph(theScene);

  }
View Full Code Here

    Box BoxObj = new Box(0.8f, 0.8f, 0.8f, ap);
    objTrans3.addChild(BoxObj);


    // Let Java 3D perform optimizations on this scene graph.
    objRoot.compile();

    return objRoot;
  }

  public BranchGroup createSceneGraph2()
View Full Code Here

     * @param shape a shape to be compiled
     */
    public static void compile(Shape3D shape) {
        BranchGroup bgTemp = new BranchGroup();
        bgTemp.addChild(shape);
        bgTemp.compile();
    }

    /**
     * Add the given light to a branch group, and compile it.
     *
 
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.