Examples of attachChild()


Examples of com.jme.scene.Node.attachChild()

     */
    private Node createSphereNode(String name) {
        // Create the new node and sphere primitive
        Node sphereNode = new Node();
        Sphere sphere = new Sphere(name, 30, 30, radius);
        sphereNode.attachChild(sphere);

        // Set the color to black and the transparency
        RenderManager rm = ClientContextJME.getWorldManager().getRenderManager();
        sphere.setSolidColor(new ColorRGBA(0.0f, 0.0f, 0.0f, 0.5f));
        sphereNode.setRenderState(zbuf);
View Full Code Here

Examples of com.jme.scene.Node.attachChild()

    setupFog();

    Node reflectedNode = new Node( "reflectNode" );

    buildSkyBox();
    reflectedNode.attachChild( skybox );
    reflectedNode.attachChild( createObjects() );

    rootNode.attachChild( reflectedNode );

    waterEffectRenderPass = new WaterRenderPass( cam, 1
View Full Code Here

Examples of com.jme.scene.Node.attachChild()

    Node reflectedNode = new Node( "reflectNode" );

    buildSkyBox();
    reflectedNode.attachChild( skybox );
    reflectedNode.attachChild( createObjects() );

    rootNode.attachChild( reflectedNode );

    waterEffectRenderPass = new WaterRenderPass( cam, 1
        , false, true );
View Full Code Here

Examples of com.jme.scene.Node.attachChild()

    ts.setTexture( t0 );

    Box box = new Box( "box1", new Vector3f( -10, -10, -10 ), new Vector3f( 10, 10, 10 ) );
    box.setLocalTranslation( new Vector3f( 0, -7, 0 ) );
    box.setRenderState( ts );
    objects.attachChild( box );

    box = new Box( "box2", new Vector3f( -5, -5, -5 ), new Vector3f( 5, 5, 5 ) );
    box.setLocalTranslation( new Vector3f( 15, 10, 0 ) );
    box.setRenderState( ts );
    objects.attachChild( box );
View Full Code Here

Examples of com.jme.scene.Node.attachChild()

    objects.attachChild( box );

    box = new Box( "box2", new Vector3f( -5, -5, -5 ), new Vector3f( 5, 5, 5 ) );
    box.setLocalTranslation( new Vector3f( 15, 10, 0 ) );
    box.setRenderState( ts );
    objects.attachChild( box );

    box = new Box( "box3", new Vector3f( -5, -5, -5 ), new Vector3f( 5, 5, 5 ) );
    box.setLocalTranslation( new Vector3f( 0, -10, 15 ) );
    box.setRenderState( ts );
    objects.attachChild( box );
View Full Code Here

Examples of com.jme.scene.Node.attachChild()

    objects.attachChild( box );

    box = new Box( "box3", new Vector3f( -5, -5, -5 ), new Vector3f( 5, 5, 5 ) );
    box.setLocalTranslation( new Vector3f( 0, -10, 15 ) );
    box.setRenderState( ts );
    objects.attachChild( box );

    box = new Box( "box4", new Vector3f( -5, -5, -5 ), new Vector3f( 5, 5, 5 ) );
    box.setLocalTranslation( new Vector3f( 20, 0, 0 ) );
    box.setRenderState( ts );
    objects.attachChild( box );
View Full Code Here

Examples of com.jme.scene.Node.attachChild()

    objects.attachChild( box );

    box = new Box( "box4", new Vector3f( -5, -5, -5 ), new Vector3f( 5, 5, 5 ) );
    box.setLocalTranslation( new Vector3f( 20, 0, 0 ) );
    box.setRenderState( ts );
    objects.attachChild( box );

    ts = display.getRenderer().createTextureState();
    t0 = TextureManager.loadTexture(
        TestSimpleQuadWater.class.getClassLoader().getResource(
            "jmetest/data/images/Monkey.jpg" ),
View Full Code Here

Examples of com.jme.scene.Node.attachChild()

    box = new Box( "box5", new Vector3f( -50, -2, -50 ), new Vector3f( 50, 2, 50 ) );
    box.setLocalTranslation( new Vector3f( 0, -15, 0 ) );
    box.setRenderState( ts );
    box.setModelBound( new BoundingBox() );
    box.updateModelBound();
    objects.attachChild( box );

    return objects;
  }

  private void setupKeyBindings() {
View Full Code Here

Examples of com.jme.scene.Node.attachChild()

    setupFog();

    Node reflectedNode = new Node( "reflectNode" );

    buildSkyBox();
    reflectedNode.attachChild( skybox );
    reflectedNode.attachChild( createObjects() );

    rootNode.attachChild( reflectedNode );

    waterEffectRenderPass = new WaterRenderPass( cam, 4, false, true );
View Full Code Here

Examples of com.jme.scene.Node.attachChild()

    Node reflectedNode = new Node( "reflectNode" );

    buildSkyBox();
    reflectedNode.attachChild( skybox );
    reflectedNode.attachChild( createObjects() );

    rootNode.attachChild( reflectedNode );

    waterEffectRenderPass = new WaterRenderPass( cam, 4, false, true );
    //set equations to use z axis as up
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.