Package com.ardor3d.scenegraph.extension

Examples of com.ardor3d.scenegraph.extension.QuadImposterNode.attachChild()


        imposter0.setCameraDistanceThreshold(0.1);
        _root.attachChild(imposter0);

        final Node scene1 = createModel();
        scene1.setTranslation(0, 0, 0);
        imposter0.attachChild(scene1);

        final QuadImposterNode imposter1 = new QuadImposterNode("Imposter1", 128, 128, _settings.getDepthBits(),
                _settings.getSamples(), _timer);
        imposter1.setRedrawRate(0.0); // No timed update
        imposter1.setCameraAngleThreshold(1.0 * MathUtils.DEG_TO_RAD);
 
View Full Code Here


        imposter1.setCameraDistanceThreshold(0.1);
        _root.attachChild(imposter1);

        final Node scene2 = createModel();
        scene2.setTranslation(-15, 0, -25);
        imposter1.attachChild(scene2);

        final QuadImposterNode imposter2 = new QuadImposterNode("Imposter2", 64, 64, _settings.getDepthBits(),
                _settings.getSamples(), _timer);
        imposter2.setRedrawRate(0.0); // No timed update
        imposter2.setCameraAngleThreshold(1.0 * MathUtils.DEG_TO_RAD);
 
View Full Code Here

        imposter2.setCameraDistanceThreshold(0.1);
        _root.attachChild(imposter2);

        final Node scene3 = createModel();
        scene3.setTranslation(15, 0, -25);
        imposter2.attachChild(scene3);

        _logicalLayer.registerTrigger(new InputTrigger(new KeyPressedCondition(Key.SPACE), new TriggerAction() {
            public void perform(final Canvas source, final TwoInputStates inputStates, final double tpf) {
                showImposter = !showImposter;
                if (showImposter) {
View Full Code Here

                    _root.detachChild(scene1);
                    _root.detachChild(scene2);
                    _root.detachChild(scene3);
                    imposter0.attachChild(scene1);
                    imposter1.attachChild(scene2);
                    imposter2.attachChild(scene3);
                    _root.attachChild(imposter0);
                    _root.attachChild(imposter1);
                    _root.attachChild(imposter2);

                    keyText.setText("[SPACE] Switch imposters off");
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.