Examples of Camera


Examples of org.osm2world.core.target.common.rendering.Camera

    try {

      /* create camera and perspective
         compensating for left- vs. right-handed coords */

      Camera povRayCamera = new Camera();
      povRayCamera.setCamera(
          renderOptions.camera.getPos().x,
          renderOptions.camera.getPos().y,
          renderOptions.camera.getPos().z,
          renderOptions.camera.getLookAt().x,
          renderOptions.camera.getLookAt().y,
View Full Code Here

Examples of org.osm2world.core.target.common.rendering.Camera

  }
 
  @Override
  public void fillTarget(JOGLTarget target) {
       
    Camera orthoCam = OrthoTilesUtil.cameraForBounds(
        map.getDataBoundary(), 30, CardinalDirection.S);
   
    List<VectorXYZ> boundVertices = map.getDataBoundary().polygonXZ().xyz(0).getVertices();
    target.drawLineLoop(LINE_COLOR, 1, boundVertices);
    target.drawLineStrip(LINE_COLOR, 1, boundVertices.get(0), boundVertices.get(2));
    target.drawLineStrip(LINE_COLOR, 1, boundVertices.get(1), boundVertices.get(3));
   
    drawBoxAround(target, orthoCam.getPos(), POINT_COLOR, HALF_POINT_WIDTH);
    drawBoxAround(target, orthoCam.getLookAt(), POINT_COLOR, HALF_POINT_WIDTH);
   
    target.drawLineStrip(LINE_COLOR, 1, orthoCam.getPos(), orthoCam.getLookAt());
   
  }
View Full Code Here

Examples of org.terasology.rendering.cameras.Camera

    }

    // TODO: Fix this up for multiplayer (cannot at the moment due to the use of the camera)
    @Command(shortDescription = "Spawns an instance of a prefab in the world")
    public String spawnPrefab(@CommandParam("prefabId") String prefabName, EntityRef entity) {
        Camera camera = worldRenderer.getActiveCamera();
        Vector3f spawnPos = camera.getPosition();
        Vector3f offset = new Vector3f(camera.getViewingDirection());
        offset.scale(2);
        spawnPos.add(offset);
        Vector3f dir = new Vector3f(camera.getViewingDirection());
        dir.y = 0;
        if (dir.lengthSquared() > 0.001f) {
            dir.normalize();
        } else {
            dir.set(Direction.FORWARD.getVector3f());
View Full Code Here

Examples of remixlab.proscene.Camera

    for (int i = 0; i < numPoints; i++) points.updateColor(i, random(0, 255), random(0, 255), random(0, 255), 225);
    points.endUpdateColors();
  
    // Preparing sprites.
    spritesCanvas = new GLGraphicsOffScreen(this, 640, 480);   
    spritesCam = new Camera(this);   
    sprites = new GLModel(this, numSprites, GLModel.POINT_SPRITES, GLModel.DYNAMIC);
    sprites.initColors();
   
    spriteTex = new GLTexture(this, dataPath("particle.bmp"));
   
View Full Code Here

Examples of remixlab.proscene.Camera

    // cuando creo la camara le paso false
    // para que no la asocie con la matriz de camara
    // que usa el PAPlet que uso como gui.   
//    OUTPUT_CAMERA = new Camera(false, this);
    OUTPUT_CAMERA = new Camera(false, this);
    OUTPUT_CAMERA.centerScene();

  }
View Full Code Here

Examples of remixlab.proscene.Camera

    // cuando creo la camara le paso false
    // para que no la asocie con la matriz de camara
    // que usa el PAPlet que uso como gui.   
    //    OUTPUT_CAMERA = new Camera(false, this);
    OUTPUT_CAMERA = new Camera(false, this);
    OUTPUT_CAMERA.centerScene();
   
   
    // engania pichanga
    faces.resetTextures();
View Full Code Here

Examples of se.llbit.chunky.renderer.scene.Camera

    etaLbl.setText("ETA: N/A");
  }

  @Override
  public void onZoom(int diff) {
    Camera camera = renderMan.scene().camera();
    double value = renderMan.scene().camera().getFoV();
    double scale = camera.getMaxFoV() - camera.getMinFoV();
    double offset = value/scale;
    double newValue = scale*Math.exp(Math.log(offset) + 0.1*diff);
    if (!Double.isNaN(newValue) && !Double.isInfinite(newValue)) {
      renderMan.scene().camera().setFoV(newValue);
    }
View Full Code Here

Examples of view.Camera

    frame.setSize(width, height);
    frame.setTitle("ascii adv.");
    frame.setResizable(false);
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
   
    camera = new Camera();
   
    canvas = new Canvas("fixedsys.ttf", camera, drawList);
    canvas.repaint();
   
    frame.add(canvas);
View Full Code Here

Examples of wolf.gui.Camera

    double delta = 3;

    final City city = new City((int)(1024*delta),(int)(1024*delta),1355838902284l);//System.currentTimeMillis());
    //1354815046011l
    city.generateRoadmap(true);
    final Camera cam = new Camera(city);
    while(true){
      cam.render();
    }
  }
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.