Package com.jme.scene.state

Examples of com.jme.scene.state.ZBufferState


    private void initStates() {
        setRenderQueueMode(Renderer.QUEUE_ORTHO);
        setLastFrustumIntersection(Camera.FrustumIntersect.Inside);
        setLightCombineMode(LightCombineMode.Off);
        ZBufferState zs = DisplaySystem.getDisplaySystem().getRenderer().createZBufferState();
        zs.setEnabled(false);
        setRenderState(zs);
        //lock();
    }
View Full Code Here


        } else {
            GraphicsUtils.printRenderState(ls);
        }

        System.err.println("Z Buffer State =");
        ZBufferState zs = (ZBufferState) spatial.getRenderState(RenderState.RS_ZBUFFER);
        if (zs == null) {
            System.err.println("null");
        } else {
            GraphicsUtils.printRenderState(zs);
        }
View Full Code Here

            skybox.setTexture(Skybox.Face.Down, down);
            //skybox.preloadTextures();
            CullState cullState = (CullState) wm.getRenderManager().createRendererState(RenderState.RS_CULL);
            cullState.setEnabled(true);
            skybox.setRenderState(cullState);
            ZBufferState zState = (ZBufferState) wm.getRenderManager().createRendererState(RenderState.RS_ZBUFFER);
            //zState.setEnabled(false);
            skybox.setRenderState(zState);
            FogState fs = (FogState) wm.getRenderManager().createRendererState(RenderState.RS_FOG);
            fs.setEnabled(false);
            skybox.setRenderState(fs);
View Full Code Here

     *
     * NOTE: This method assumes it is being called in a MT-Safe manner.
     */
    private void setZBufferState(Node node) {
        RenderManager rm = ClientContextJME.getWorldManager().getRenderManager();
        ZBufferState zbuf = (ZBufferState)rm.createRendererState(RenderState.StateType.ZBuffer);
        zbuf.setEnabled(true);
        zbuf.setFunction(ZBufferState.TestFunction.LessThanOrEqualTo);
        node.setRenderState(zbuf);
    }
View Full Code Here

TOP

Related Classes of com.jme.scene.state.ZBufferState

Copyright © 2018 www.massapicom. 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.