Examples of Plane


Examples of com.ardor3d.math.Plane

        setSpeedReflection(0.02);
        setSpeedReflection(-0.01);

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

        // 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

Examples of com.ardor3d.math.Plane

  setDudvMapTextureString("images/water/dudvmap.png");
        setFallbackMapTextureString("images/water/water2.png");
        setFoamMapTextureString("images/water/oceanfoam.png");
       
        this.waterHeight = waterHeight;
        setWaterPlane(new Plane(new Vector3(0.0, 1.0, 0.0), waterHeight));
       
        useFadeToFogColor(true);
       

       
View Full Code Here

Examples of com.jme.math.Plane

    rootNode.attachChild( reflectedNode );

    waterEffectRenderPass = new WaterRenderPass( cam, 1
        , false, true );
    //setting to default value just to show
    waterEffectRenderPass.setWaterPlane( new Plane( new Vector3f( 0.0f, 1.0f, 0.0f ), 0.0f ) );

    waterQuad = new Quad( "waterQuad", 1, 1 );
    FloatBuffer normBuf = waterQuad.getNormalBuffer( 0 );
    normBuf.clear();
    normBuf.put( 0 ).put( 1 ).put( 0 );
View Full Code Here

Examples of com.jme.math.Plane

    rootNode.attachChild( reflectedNode );

    waterEffectRenderPass = new WaterRenderPass( cam, 4, false, true );
    //set equations to use z axis as up
    waterEffectRenderPass.setWaterPlane( new Plane( new Vector3f( 0.0f, 0.0f, 1.0f ), 0.0f ) );
    waterEffectRenderPass.setTangent( new Vector3f( 1.0f, 0.0f, 0.0f ) );
    waterEffectRenderPass.setBinormal( new Vector3f( 0.0f, 1.0f, 0.0f ) );

    waterQuad = new Quad( "waterQuad", 100, 100 );
View Full Code Here

Examples of com.jme3.math.Plane

//       // Bullet 2:
//       //  test if the box intersects the plane of the triangle
//       //  compute plane equation of triangle: normal * x + d = 0
//        Vector3f normal = new Vector3f();
//        e0.cross(e1, normal);
        Plane p = vars.plane;

        p.setPlanePoints(v1, v2, v3);
        if (bbox.whichSide(p) == Plane.Side.Negative) {
            vars.release();
            return false;
        }
//
View Full Code Here

Examples of com.jme3.math.Plane

    }

    public void write(JmeExporter ex) throws IOException {
        super.write(ex);
        OutputCapsule capsule = ex.getCapsule(this);
        capsule.write(plane, "collisionPlane", new Plane());
    }
View Full Code Here

Examples of com.jme3.math.Plane

    }

    public void read(JmeImporter im) throws IOException {
        super.read(im);
        InputCapsule capsule = im.getCapsule(this);
        plane = (Plane) capsule.readSavable("collisionPlane", new Plane());
        createShape();
    }
View Full Code Here

Examples of com.puzzletimer.graphics.Plane

import com.puzzletimer.graphics.Vector3;

public class RubiksCube {

  public static Mesh getScrambledPuzzleMesh(ColorScheme colorScheme, Algo algo) {
    Plane planeL = new Plane(new Vector3(-0.166, 0, 0), new Vector3(-1, 0, 0));
    Plane planeR = new Plane(new Vector3(0.166, 0, 0), new Vector3(1, 0, 0));
    Plane planeD = new Plane(new Vector3(0, -0.166, 0), new Vector3(0, -1, 0));
    Plane planeU = new Plane(new Vector3(0, 0.166, 0), new Vector3(0, 1, 0));
    Plane planeF = new Plane(new Vector3(0, 0, -0.166), new Vector3(0, 0, -1));
    Plane planeB = new Plane(new Vector3(0, 0, 0.166), new Vector3(0, 0, 1));

    Mesh mesh = Mesh.cube(new Color[] { //
      colorScheme.getLeftColor(), // LEFT
        colorScheme.getBackColor(), // BACK
        colorScheme.getDownColor(), // DOWN
View Full Code Here

Examples of libnoiseforjava.model.Plane

      // Resize the destination noise map so that it can store the new output
      // values from the source model.
      destNoiseMap.setSize (destWidth, destHeight);

      // Create the plane model.
      Plane planeModel = new Plane();
      planeModel.setModule (sourceModule);

      double xExtent = upperXBound - lowerXBound;
      double zExtent = upperZBound - lowerZBound;
      double xDelta  = xExtent / (double)destWidth ;
      double zDelta  = zExtent / (double)destHeight;
      double xCur    = lowerXBound;
      double zCur    = lowerZBound;
     
      // Fill every point in the noise map with the output values from the model.
      for (int z = 0; z < destHeight; z++)
      {
         xCur = lowerXBound;
         for (int x = 0; x < destWidth; x++)
         {
            double finalValue;

            if (!isSeamlessEnabled)
               finalValue = planeModel.getValue (xCur, zCur);
            else
            {
               double swValue, seValue, nwValue, neValue;
               swValue = planeModel.getValue (xCur, zCur);
               seValue = planeModel.getValue (xCur + xExtent, zCur);
               nwValue = planeModel.getValue (xCur, zCur + zExtent);
               neValue = planeModel.getValue (xCur + xExtent, zCur + zExtent);
               double xBlend = 1.0 - ((xCur - lowerXBound) / xExtent);
               double zBlend = 1.0 - ((zCur - lowerZBound) / zExtent);
               double z0 = Interp.linearInterp (swValue, seValue, xBlend);
               double z1 = Interp.linearInterp (nwValue, neValue, xBlend);
               finalValue = Interp.linearInterp (z0, z1, zBlend);
View Full Code Here

Examples of ome.xml.model.Plane

          z = i % d.sizeZ;
          t = (i / d.sizeZ) % d.sizeT;
          c = i / d.sizeT / d.sizeZ;
          break;
        }
        Plane plane = new Plane();
        plane.setTheC(new NonNegativeInteger(c));
        plane.setTheZ(new NonNegativeInteger(z));
        plane.setTheT(new NonNegativeInteger(t));
        pixels.addPlane(plane);
      }
      image.setPixels(pixels);
      sample.linkImage(image);
      ome.addImage(image);
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.