Examples of Camera


Examples of Hexel.rendering.Camera

            }
            page.fillRect(x*s+cx, -y*s+cy, s, s);
          }
        }

        Camera camera = Renderer.dbgCamera;
        if (camera != null){
          page.setColor(Color.yellow);
          page.fillRect(cx-2, cy-2, s*4, s*4);
        }
        System.out.println(System.currentTimeMillis() - t0);
View Full Code Here

Examples of android.graphics.Camera

  @Override
  public void initialize(int width, int height, int parentWidth,
                         int parentHeight) {
    super.initialize(width, height, parentWidth, parentHeight);
   
    camera = new Camera();
  }
View Full Code Here

Examples of com.ardor3d.renderer.Camera

        _renderer.setBackgroundColor(ColorRGBA.BLACK);

        if (_camera == null) {
            /** Set up how our camera sees. */
            _camera = new Camera(settings.getWidth(), settings.getHeight());
            _camera.setFrustumPerspective(45.0f, (float) settings.getWidth() / (float) settings.getHeight(), 1, 1000);
            _camera.setProjectionMode(ProjectionMode.Perspective);

            final Vector3 loc = new Vector3(0.0f, 0.0f, 10.0f);
            final Vector3 left = new Vector3(-1.0f, 0.0f, 0.0f);
View Full Code Here

Examples of com.ardor3d.renderer.Camera

        // Setup a default bg color.
        _renderer.setBackgroundColor(ColorRGBA.BLACK);

        // Setup a default camera
        _camera = new Camera(width, _settings.getHeight());
        _camera.setFrustumPerspective(45.0f, (float) width / (float) _settings.getHeight(), 1, 1000);
        _camera.setProjectionMode(ProjectionMode.Perspective);

        // setup camera orientation and position.
        final Vector3 loc = new Vector3(0.0f, 0.0f, 0.0f);
View Full Code Here

Examples of com.ardor3d.renderer.Camera

        final RenderContext context = ContextManager.getCurrentContext();
        final RendererRecord record = context.getRendererRecord();

        if (strict) {
            // grab our camera to get width and height info.
            final Camera cam = Camera.getCurrentCamera();

            GL11.glEnable(GL11.GL_SCISSOR_TEST);
            GL11.glScissor(0, 0, cam.getWidth(), cam.getHeight());
            record.setClippingTestEnabled(true);
        }

        GL11.glClear(clear);
View Full Code Here

Examples of com.ardor3d.renderer.Camera

        // set up ortho mode
        final RendererRecord matRecord = ContextManager.getCurrentContext().getRendererRecord();
        LwjglRendererUtil.switchMode(matRecord, GL11.GL_PROJECTION);
        GL11.glPushMatrix();
        GL11.glLoadIdentity();
        final Camera camera = Camera.getCurrentCamera();
        final double viewportWidth = camera.getWidth() * (camera.getViewPortRight() - camera.getViewPortLeft());
        final double viewportHeight = camera.getHeight() * (camera.getViewPortTop() - camera.getViewPortBottom());
        GL11.glOrtho(0, viewportWidth, 0, viewportHeight, -1, 1);
        LwjglRendererUtil.switchMode(matRecord, GL11.GL_MODELVIEW);
        GL11.glPushMatrix();
        GL11.glLoadIdentity();
        _inOrthoMode = true;
View Full Code Here

Examples of com.ardor3d.renderer.Camera

        boolean doChildren = true;
        if (scene instanceof SkinnedMesh) {
            final SkeletonPose pose = ((SkinnedMesh) scene).getCurrentPose();
            if (pose != null && (allowSkeletonRedraw || !alreadyDrawn.contains(pose.getSkeleton()))) {
                // If we're in view, go ahead and draw our associated skeleton pose
                final Camera cam = Camera.getCurrentCamera();
                final int state = cam.getPlaneState();
                if (cam.contains(scene.getWorldBound()) != Camera.FrustumIntersect.Outside) {
                    SkeletalDebugger.drawSkeleton(pose, scene, renderer, showLabels);
                    alreadyDrawn.add(pose.getSkeleton());
                } else {
                    doChildren = false;
                }
                cam.setPlaneState(state);
            }
        }

        // Recurse down the scene if we're a Node and we were not flagged to ignore children.
        if (doChildren && scene instanceof Node) {
View Full Code Here

Examples of com.badlogic.gdx.graphics.Camera

    viewport.update(Gdx.graphics.getWidth(), Gdx.graphics.getHeight(), true);
  }

  public void draw () {
    Camera camera = viewport.getCamera();
    camera.update();

    if (!root.isVisible()) return;

    Batch batch = this.batch;
    if (batch != null) {
View Full Code Here

Examples of com.eclipsesource.tabris.camera.Camera

    assertEquals( captor.getValue().get( "compressionQuality" ).asFloat(), 0.5F, 0 );
  }

  @Test( expected = IllegalArgumentException.class )
  public void testFailsWithNullOptions() {
    Camera camera = new CameraImpl();

    camera.takePicture( null );
  }
View Full Code Here

Examples of com.eclipsesource.tabris.camera.Camera

    camera.takePicture( null );
  }

  @Test( expected = IllegalArgumentException.class )
  public void testAddFailsWithNullListener() {
    Camera camera = new CameraImpl();

    camera.addCameraListener( null );
  }
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.