Examples of BlendState


Examples of com.ardor3d.renderer.state.BlendState

        mesh.getMeshData().setTextureBuffer(BufferUtils.createVector2Buffer(4), 0);
        mesh.getMeshData().setIndexMode(IndexMode.TriangleFan);

        mesh.setRenderState(SubTexUtil._tstate);

        final BlendState blend = new BlendState();
        blend.setBlendEnabled(true);
        blend.setSourceFunction(SourceFunction.SourceAlpha);
        blend.setDestinationFunction(DestinationFunction.OneMinusSourceAlpha);
        mesh.setRenderState(blend);

        mesh.updateWorldRenderStates(false);

        return mesh;
View Full Code Here

Examples of com.ardor3d.renderer.state.BlendState

    protected InteractMatrix _interactMatrix = InteractMatrix.World;

    public MoveWidget() {
        _handle = new Node("moveHandle");

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

        final ZBufferState zstate = new ZBufferState();
        zstate.setFunction(TestFunction.LessThanOrEqualTo);
        _handle.setRenderState(zstate);
View Full Code Here

Examples of com.ardor3d.renderer.state.BlendState

        _handle = new InteractArrow("scaleHandle", 1.0, 0.125, lengthGap, tipGap);
        if (!_arrowDirection.equals(Vector3.UNIT_Z)) {
            _handle.setRotation(new Quaternion().fromVectorToVector(Vector3.UNIT_Z, _arrowDirection));
        }

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

        ((Arrow) _handle).setDefaultColor(color);

        final ZBufferState zstate = new ZBufferState();
View Full Code Here

Examples of com.ardor3d.renderer.state.BlendState

        this.name = name;
    }

    public BlendState getBlendState() {
        if (forceBlend || d != -1 && d < 1.0f) {
            final BlendState blend = new BlendState();
            blend.setBlendEnabled(true);
            blend.setSourceFunction(BlendState.SourceFunction.SourceAlpha);
            blend.setDestinationFunction(BlendState.DestinationFunction.OneMinusSourceAlpha);
            blend.setTestEnabled(true);
            blend.setTestFunction(BlendState.TestFunction.GreaterThan);
            blend.setReference(0);
            return blend;
        }
        return null;
    }
View Full Code Here

Examples of com.ardor3d.renderer.state.BlendState

    }

    public MovePlanarWidget() {
        _handle = new Node("moveHandle");

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

        final ZBufferState zstate = new ZBufferState();
        zstate.setFunction(TestFunction.LessThanOrEqualTo);
        _handle.setRenderState(zstate);
View Full Code Here

Examples of com.ardor3d.renderer.state.BlendState

    }

    public MoveMultiPlanarWidget(final double extent) {
        _handle = new Node("moveHandle");

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

        final ZBufferState zstate = new ZBufferState();
        zstate.setFunction(TestFunction.LessThanOrEqualTo);
        _handle.setRenderState(zstate);
View Full Code Here

Examples of com.ardor3d.renderer.state.BlendState

    protected InteractRing _zRing = null;

    public RotateWidget() {
        _handle = new Node("rotationHandle");

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

        final ZBufferState zstate = new ZBufferState();
        zstate.setFunction(TestFunction.LessThanOrEqualTo);
        _handle.setRenderState(zstate);
View Full Code Here

Examples of com.ardor3d.renderer.state.BlendState

        final TextureState tState = _currentMaterial.getTextureState();
        if (tState != null) {
            target.setRenderState(tState);
        }

        final BlendState blend = _currentMaterial.getBlendState();
        if (blend != null) {
            target.setRenderState(blend);
            target.getSceneHints().setRenderBucketType(RenderBucketType.Transparent);
        }
View Full Code Here

Examples of com.ardor3d.renderer.state.BlendState

        final ColorReplaceEffect sepiaEffect = new ColorReplaceEffect(sepiaTexture);
        effectManager.addEffect(sepiaEffect);

        // Finally, add a step to draw the result to the framebuffer
        final FrameBufferOutputEffect out = new FrameBufferOutputEffect();
        final BlendState blend = new BlendState();
        blend.setBlendEnabled(true);
        blend.setSourceFunction(SourceFunction.SourceAlpha);
        blend.setDestinationFunction(DestinationFunction.OneMinusSourceAlpha);
        out.setBlend(blend);
        effectManager.addEffect(out);

        // setup effects
        effectManager.setupEffects();
View Full Code Here

Examples of com.ardor3d.renderer.state.BlendState

        final Point pointsA = new Point("points", pointData, null, null, null);
        pointsA.setRandomColors();
        pointsA.setAntialiased(true);
        pointsA.setPointSize(4.25f);

        final BlendState bState = new BlendState();
        bState.setBlendEnabled(true);
        pointsA.setRenderState(bState);
        _root.attachChild(pointsA);
    }
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.