Package com.ardor3d.renderer.pass

Examples of com.ardor3d.renderer.pass.RenderPass


        eventBus.registerListener(injector.getInstance(Player.class));
       
        net.anzix.fsz.MainThread thread = new net.anzix.fsz.MainThread(_frameHandler, _canvas);
        eventBus.registerListener(thread);
       
        final RenderPass rootPass = new RenderPass();
        rootPass.add(_root);
       
        passManager.add(rootPass);
                       
        new Thread(thread).start();
    }
View Full Code Here


            }
        }));

        _passManager = new BasicPassManager();

        final RenderPass rootPass = new RenderPass();
        rootPass.add(_root);

        final TextureState ts = new TextureState();
        ts.setEnabled(true);
        ts.setTexture(TextureManager.load("images/ardor3d_white_256.jpg", Texture.MinificationFilter.Trilinear, true));
        _root.setRenderState(ts);

        final MaterialState ms = new MaterialState();
        ms.setColorMaterial(ColorMaterial.Diffuse);
        _root.setRenderState(ms);

        _root.attachChild(createObjects());

        bloomRenderPass = new BloomRenderPass(_canvas.getCanvasRenderer().getCamera(), 4);

        if (!bloomRenderPass.isSupported()) {
            logger.severe("Bloom not supported!");
            return;
        } else {
            bloomRenderPass.add(_root);
            // TODO: what?
            // bloomRenderPass.setUseCurrentScene(true);
        }

        // Setup textfields for presenting example info.
        final Node textNodes = new Node("Text");
        final RenderPass renderPass = new RenderPass();
        renderPass.add(textNodes);
        textNodes.getSceneHints().setRenderBucketType(RenderBucketType.Ortho);
        textNodes.getSceneHints().setLightCombineMode(LightCombineMode.Off);

        final double infoStartY = _canvas.getCanvasRenderer().getCamera().getHeight() / 2;
        for (int i = 0; i < _exampleInfo.length; i++) {
View Full Code Here

        _root.setRenderState(ms);

        _passManager = new BasicPassManager();

        // setup some quads for debug viewing.
        final RenderPass renderPass = new RenderPass();
        final int quadSize = _canvas.getCanvasRenderer().getCamera().getWidth() / 10;
        _orthoQuad = new Quad[ParallelSplitShadowMapPass._MAX_SPLITS];
        for (int i = 0; i < ParallelSplitShadowMapPass._MAX_SPLITS; i++) {
            _orthoQuad[i] = new Quad("OrthoQuad", quadSize, quadSize);
            _orthoQuad[i].setTranslation(new Vector3((quadSize / 2 + 5) + (quadSize + 5) * i, (quadSize / 2 + 5), 1));
            _orthoQuad[i].getSceneHints().setRenderBucketType(RenderBucketType.Ortho);
            _orthoQuad[i].getSceneHints().setLightCombineMode(LightCombineMode.Off);
            _orthoQuad[i].getSceneHints().setTextureCombineMode(TextureCombineMode.Replace);
            _orthoQuad[i].getSceneHints().setCullHint(CullHint.Never);
            renderPass.add(_orthoQuad[i]);
        }

        // Create scene objects.
        setupTerrain();

        final RenderPass rootPass = new RenderPass();
        rootPass.add(_root);

        _lightState.detachAll();
        final DirectionalLight light = new DirectionalLight();
        // final PointLight light = new PointLight();
        light.setEnabled(true);
View Full Code Here

TOP

Related Classes of com.ardor3d.renderer.pass.RenderPass

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.