Examples of updateRenderState()


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

            BlendState bs = renderer.createBlendState();
            bs.setBlendEnabled(true);
            node.setRenderState(bs);
            node.setRenderQueueMode(Renderer.QUEUE_TRANSPARENT);
        }
        node.updateRenderState();
        Random r = new Random();
        Node[] subNode = new Node[5];
        TriMesh[] triMesh = new TriMesh[5];
        subNode[0] = new Node("spheres");
        subNode[0].setRenderState(Tool.createXRayShader());
View Full Code Here

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

     
      // Don't know what this is doing really.... see comments below
        LightState ls = display.getRenderer().createLightState();
        ls.setEnabled(false);
        missleTrajectory2.setRenderState(ls);
        missleTrajectory2.updateRenderState();
       
        //  Add the controller class to the box. Notice, I am passing the
        //  missleTrajectory2 node to the BulletMover class.  This is so the
        //  bullet can be removed from the rootNode when it times out.  If
        //  I could remove the missleTrajectory2 junk, I could make it a lot simpler.
View Full Code Here

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

     
      // Don't know what this is doing really.... see comments below
        LightState ls = getRenderer().createLightState();
        ls.setEnabled(false);
        missleTrajectory2.setRenderState(ls);
        missleTrajectory2.updateRenderState();
       
        //  Add the controller class to the box. Notice, I am passing the
        //  missleTrajectory2 node to the BulletMover class.  This is so the
        //  bullet can be removed from the getRootNode() when it times out.  If
        //  I could remove the missleTrajectory2 junk, I could make it a lot simpler.
View Full Code Here

Examples of com.jme.scene.shape.Box.updateRenderState()

    getLocalTranslation().set(vector.getOrigin());
    getLocalRotation().lookAt(vector.getDirection(),
        TankGame.GAMESTATE.UP);

    model.updateRenderState();
    setMaterial(Material.IRON);

    addController(new BasicPhysicsFireableController(this));
   
    final SyntheticButton detonator = getCollisionEventHandler();
View Full Code Here

Examples of com.jme.scene.shape.Box.updateRenderState()

    getLocalTranslation().set(vector.getOrigin());
    getLocalRotation().lookAt(vector.getDirection(),
        TankGame.GAMESTATE.UP);

    model.updateRenderState();
    setMaterial(Material.IRON);

    addController(new BasicPhysicsFireableController(this));
   
    final SyntheticButton detonator = getCollisionEventHandler();
View Full Code Here

Examples of com.jme.scene.shape.Box.updateRenderState()

    getLocalTranslation().set(vector.getOrigin());
    getLocalRotation().lookAt(vector.getDirection(),
        TankGame.GAMESTATE.UP);

    model.updateRenderState();
    setMaterial(Material.IRON);

    addController(new MissileFireableController(this));
   
    final SyntheticButton detonator = getCollisionEventHandler();
View Full Code Here

Examples of com.jme.scene.shape.Quad.updateRenderState()

            as.setTestFunction(BlendState.TestFunction.GreaterThan);
            as.setTestEnabled(true);
            ret.setRenderState(as);

            ret.setLightCombineMode(LightCombineMode.Off);
            ret.updateRenderState();
            this.quad = ret;
            imgWidth = w;
            imgHeight = h;
            imgFactor = factor;
        }
View Full Code Here

Examples of com.jme.scene.shape.Quad.updateRenderState()

    debugQuad.setCullMode( SceneElement.CULL_NEVER );
    debugQuad.setLightCombineMode( LightState.OFF );
    TextureState ts = display.getRenderer().createTextureState();
    ts.setTexture( waterEffectRenderPass.getTextureReflect() );
    debugQuad.setRenderState( ts );
    debugQuad.updateRenderState();
    debugQuad.getLocalTranslation().set( quadWidth * 0.6f, quadHeight * 1.0f, 1.0f );
    debugQuadsNode.attachChild( debugQuad );

    if( waterEffectRenderPass.getTextureRefract() != null ) {
      debugQuad = new Quad( "refractionQuad", quadWidth, quadHeight );
View Full Code Here

Examples of com.jme.scene.shape.Quad.updateRenderState()

      debugQuad.setCullMode( SceneElement.CULL_NEVER );
      debugQuad.setLightCombineMode( LightState.OFF );
      ts = display.getRenderer().createTextureState();
      ts.setTexture( waterEffectRenderPass.getTextureRefract() );
      debugQuad.setRenderState( ts );
      debugQuad.updateRenderState();
      debugQuad.getLocalTranslation().set( quadWidth * 0.6f, quadHeight * 2.1f, 1.0f );
      debugQuadsNode.attachChild( debugQuad );
    }

        if( waterEffectRenderPass.getTextureDepth() != null ) {
View Full Code Here

Examples of com.jme.scene.shape.Quad.updateRenderState()

            debugQuad.setCullMode( SceneElement.CULL_NEVER );
            debugQuad.setLightCombineMode( LightState.OFF );
            ts = display.getRenderer().createTextureState();
            ts.setTexture( waterEffectRenderPass.getTextureDepth() );
            debugQuad.setRenderState( ts );
            debugQuad.updateRenderState();
            debugQuad.getLocalTranslation().set( quadWidth * 0.6f, quadHeight * 3.2f, 1.0f );
            debugQuadsNode.attachChild( debugQuad );
        }
    }
}
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.