Package jray.ray

Examples of jray.ray.Camera


     
      for(double x = 1;x<camheight*3;x+=h)
        for(double z = -camheight;z<camheight;z+=h)
          addTree(x+Math.random()*dist-dist/2,-2,z+Math.random()*dist-dist/2);
       
        c = new Camera(new Vect3(-camheight, camheight*2, 0), new Vect3(-camheight+1, camheight*2-1, 0), new Vect3(0.707106781186547, 0.707106781186547, 0), 1, 1, 1);
        objects.add(c);
       
        tree = Octree.buildTree(new Vect3(camheight*1.5,-3.1,0),objects);
    }
View Full Code Here


    private Camera c;
    private Octree tree;
   
    public MeshTest() throws IOException{
      double camheight= 50;
      c = new Camera(new Vect3(0, camheight*2, camheight), new Vect3(0, camheight*2-1, camheight-1), new Vect3(0, 0.707106781186547, -0.707106781186547), 1, 1, 1);
      //c = new Camera(new Vect3(-camheight, camheight*2, 0), new Vect3(-camheight+1, camheight*2-1, 0), new Vect3(0.707106781186547, 0.707106781186547, 0), 1, 1, 1);
      //c = new Camera(new Vect3(0, camheight*2, -camheight), new Vect3(0, camheight*2-1, -camheight+1), new Vect3(0, 0.707106781186547, 0.707106781186547), 1, 1, 1);
      //c = new Camera(new Vect3(0, camheight, -10), new Vect3(0, camheight-1, -10), new Vect3(0, 0, 1), 1, 1, 1);
        objects.add(c);
        TriangleMeshModel model = BinarySTLParser.parse(new File("models/elka.stl"));
View Full Code Here

  private Camera cam;
 
  public KugelTest(){
    objects = new ArrayList<Object3D>();
    objects.add(new Sphere(new Vect3(0,0,0),1,0xFFFFFF00));
    cam = new Camera(new Vect3(0,0,-5),new Vect3(0,0,-3),new Vect3(0,1,0));
  }
View Full Code Here

TOP

Related Classes of jray.ray.Camera

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.