Package com.ardor3d.math

Examples of com.ardor3d.math.Plane


        waterNode.setSpeedReflection(0.02);
        waterNode.setSpeedReflection(-0.01);

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

        // Create a quad to use as geometry for the water.
        waterQuad = new Quad("waterQuad", 1, 1);
        // Hack the quad normals to point up in the y-axis. Since we are manipulating the vertices as
        // we move this is more convenient than rotating the quad.
View Full Code Here


        waterNode.setNormalMapTextureString("images/water/normalmap3.dds");
        waterNode.setDudvMapTextureString("images/water/dudvmap.png");
        waterNode.setFallbackMapTextureString("images/water/water2.png");

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

        // Create a quad to use as geometry for the water.
        waterQuad = new Quad("waterQuad", 1, 1);
        // Hack the quad normals to point up in the y-axis. Since we are manipulating the vertices as
        // we move this is more convenient than rotating the quad.
View Full Code Here

        waterNode.setDudvMapTextureString("images/water/dudvmap.png");
        waterNode.setFallbackMapTextureString("images/water/water2.png");
        waterNode.setFoamMapTextureString("images/water/oceanfoam.png");

        // 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,
View Full Code Here

                }));

        // add some filters
        manager.addFilter(new MinMaxScaleFilter(1.0, 10.0));
        manager.addFilter(new AllowScaleFilter(false, true, false));
        manager.addFilter(new PlaneBoundaryFilter(new Plane(Vector3.UNIT_Y, 0)));
    }
View Full Code Here

    /**
     * Resets water parameters to default values
     *
     */
    public void resetParameters() {
        waterPlane = new Plane(new Vector3(0.0, 1.0, 0.0), 0.0);
        tangent = new Vector3(1.0, 0.0, 0.0);
        binormal = new Vector3(0.0, 0.0, 1.0);

        waterMaxAmplitude = 0.0;
        clipBias = 1.0;
View Full Code Here

    @Override
    public void write(final OutputCapsule capsule) throws IOException {
        super.write(capsule);
        capsule.write(_bounciness, "bounciness", 1.0);
        capsule.write(_floor, "floor", new Plane());
    }
View Full Code Here

    @Override
    public void read(final InputCapsule capsule) throws IOException {
        super.read(capsule);
        _bounciness = capsule.readDouble("bounciness", 1.0);
        _floor.set((Plane) capsule.readSavable("floor", new Plane()));
    }
View Full Code Here

TOP

Related Classes of com.ardor3d.math.Plane

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.