Examples of ZBufferState


Examples of com.ardor3d.renderer.state.ZBufferState

            ResourceLocatorTool.addResourceLocator(ResourceLocatorTool.TYPE_MODEL, srl);
        } catch (final URISyntaxException ex) {
            ex.printStackTrace();
        }

        /**
         * Create a ZBuffer to display pixels closest to the camera above farther ones.
         */
        final ZBufferState buf = new ZBufferState();
        buf.setEnabled(true);
        buf.setFunction(ZBufferState.TestFunction.LessThanOrEqualTo);
        nodes.getRootNode().setRenderState(buf);

        // ---- LIGHTS
        /** Set up a basic, default light. */
        final DirectionalLight light = new DirectionalLight();
View Full Code Here

Examples of com.ardor3d.renderer.state.ZBufferState

            lineBlendState.setTestEnabled(true);
            lineBlendState.setSourceFunction(BlendState.SourceFunction.SourceAlpha);
            lineBlendState.setDestinationFunction(BlendState.DestinationFunction.OneMinusSourceAlpha);
            lineFrustum.setRenderState(lineBlendState);

            final ZBufferState zstate = new ZBufferState();
            lineFrustum.setRenderState(zstate);
            lineFrustum.updateGeometricState(0.0);

            lineFrustum.getSceneHints().setRenderBucketType(RenderBucketType.Skip);
        }
View Full Code Here

Examples of com.ardor3d.renderer.state.ZBufferState

        _fsq.getMeshData().setIndices(BufferUtils.createIndexBufferData(new int[] { 0, 1, 3, 1, 2, 3 }, 3));

        _fsq.getSceneHints().setCullHint(CullHint.Never);
        _fsq.getSceneHints().setLightCombineMode(LightCombineMode.Off);

        final ZBufferState zState = new ZBufferState();
        zState.setEnabled(false);
        _fsq.setRenderState(zState);

        _fsq.updateGeometricState(0);

        return _fsq;
View Full Code Here

Examples of com.ardor3d.renderer.state.ZBufferState

        setAutoFade(AutoFade.Off);
        setAutoScale(AutoScale.Off);
        setAutoRotate(false);
        setRotation(new Matrix3().fromAngles(-MathUtils.HALF_PI, 0, 0));

        final ZBufferState zState = new ZBufferState();
        zState.setEnabled(false);
        zState.setWritable(false);
        setRenderState(zState);

        final CullState cState = new CullState();
        cState.setEnabled(false);
        setRenderState(cState);
View Full Code Here

Examples of com.ardor3d.renderer.state.ZBufferState

            blendState.setSourceFunction(BlendState.SourceFunction.SourceAlpha);
            blendState.setDestinationFunction(BlendState.DestinationFunction.OneMinusSourceAlpha);
            blendState.setTestEnabled(true);
            blendState.setTestFunction(BlendState.TestFunction.GreaterThan);

            zBuffState = new ZBufferState();
            zBuffState.setFunction(ZBufferState.TestFunction.LessThanOrEqualTo);

            setUseBlend(useBlend);
        }
View Full Code Here

Examples of com.ardor3d.renderer.state.ZBufferState

    public TransparentRenderBucket() {
        super();

        _tranparentCull = new CullState();
        _transparentZBuff = new ZBufferState();
        _transparentZBuff.setWritable(false);
        _transparentZBuff.setFunction(ZBufferState.TestFunction.LessThanOrEqualTo);

        _comparator = new TransparentComparator();
    }
View Full Code Here

Examples of com.ardor3d.renderer.state.ZBufferState

        // We don't want the light to effect our skybox
        getSceneHints().setLightCombineMode(LightCombineMode.Off);

        getSceneHints().setTextureCombineMode(TextureCombineMode.Replace);

        final ZBufferState zbuff = new ZBufferState();
        zbuff.setEnabled(false);
        setRenderState(zbuff);

        final FogState fs = new FogState();
        fs.setEnabled(false);
        setRenderState(fs);
View Full Code Here

Examples of com.ardor3d.renderer.state.ZBufferState

        getSceneHints().setCullHint(CullHint.Never);
        getSceneHints().setRenderBucketType(RenderBucketType.Skip);
        getSceneHints().setLightCombineMode(LightCombineMode.Off);
        getSceneHints().setTextureCombineMode(TextureCombineMode.Replace);

        final ZBufferState zstate = new ZBufferState();
        zstate.setEnabled(false);
        zstate.setWritable(false);
        setRenderState(zstate);

        setupLogicalLayer();
    }
View Full Code Here

Examples of com.ardor3d.renderer.state.ZBufferState

        final BlendState blend = new BlendState();
        blend.setBlendEnabled(true);
        _handle.setRenderState(blend);

        final ZBufferState zstate = new ZBufferState();
        zstate.setFunction(TestFunction.LessThanOrEqualTo);
        _handle.setRenderState(zstate);

        _handle.getSceneHints().setRenderBucketType(RenderBucketType.Transparent);
        _handle.updateGeometricState(0);
View Full Code Here

Examples of com.ardor3d.renderer.state.ZBufferState

        final BlendState blend = new BlendState();
        blend.setBlendEnabled(true);
        _handle.setRenderState(blend);

        final ZBufferState zstate = new ZBufferState();
        zstate.setFunction(TestFunction.LessThanOrEqualTo);
        _handle.setRenderState(zstate);

        _handle.getSceneHints().setRenderBucketType(RenderBucketType.Transparent);
        _handle.updateGeometricState(0);
    }
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.