Package com.ardor3d.extension.effect.water

Examples of com.ardor3d.extension.effect.water.ProjectedGrid


       
        useFadeToFogColor(true);
       

       
        projectedGrid = new ProjectedGrid("ProjectedGrid", camera, 100, 70, 0.01f, new FszWaterHeightGenerator(waterHeight), timer);
        projectedGrid.setNrUpdateThreads(Runtime.getRuntime().availableProcessors());
       
        attachChild(projectedGrid);
      
        addReflectedScene(reflectedNode);
View Full Code Here


        // setting to default value just to show
        waterNode.setWaterPlane(new Plane(new Vector3(0.0, 1.0, 0.0), 0.0));

        // Create a ProjectedGrid to use as geometry for the water.
        projectedGrid = new ProjectedGrid("ProjectedGrid", cam, 100, 70, 0.01f, new WaterHeightGenerator(), _timer);
        // or implement your own waves like this(or in a separate class)...
        // projectedGrid = new ProjectedGrid( "ProjectedGrid", cam, 50, 50,
        // 0.01f, new HeightGenerator() {
        // public float getHeight( float x, float z, float time ) {
        // return
View Full Code Here

                40.0,
                (float) _canvas.getCanvasRenderer().getCamera().getWidth()
                        / (float) _canvas.getCanvasRenderer().getCamera().getHeight(), 1.0, 5000);
        _canvas.getCanvasRenderer().getCamera().lookAt(new Vector3(0, 0, 0), Vector3.UNIT_Y);

        projectedGrid = new ProjectedGrid("ProjectedGrid", externalCamera, 100, 70, 0.01f, new WaterHeightGenerator(),
                _timer);
        _root.attachChild(projectedGrid);

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

TOP

Related Classes of com.ardor3d.extension.effect.water.ProjectedGrid

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.