Questions tagged [perspectivecamera]

Perspective camera projection projects points onto the image plane along lines that emanate from a single point, called the center of projection. This means that an object has a smaller projection when it is far away from the center of projection and a larger projection when it is closer.

Perspective Projection describes the mapping from 3D points in the world as they are seen from of a pinhole camera, to 2D points on a viewport.

At perspective projection the viewing volume is a frustum (a truncated pyramid), where the top of the pyramid is the viewing position.

418 questions
0
votes
1 answer

Transform from quadrilateral to quadrilateral with AffineTransform?

Is Java's AffineTransform insufficient to hold transformation from one convex quadrilateral to another? Is this true, that transformation between convex quadrilaterals is fully covered by perspective transform? Perspective matrix has 8 elements,…
Suzan Cioc
  • 29,281
  • 63
  • 213
  • 385
0
votes
0 answers

Determining 2D location of item from a photograph taken from a fixed camera

I have a photograph showing two items, a and b, in a scene. I know the distance to a (if this helps). The camera is at a fixed location, and its height, focal length and direction angle are known. Assume the ground is completely flat. All that is…
GenericJoe
  • 17
  • 5
0
votes
0 answers

Three.js Illusion: how to rescale and reposition object

Duplicate post whats the formula to point along line known starting point, ending point and distance I want to create a eye illusion with perspective view for objects. I want to show perspective of the object as it should be. There is a simple…
Omer Faruk Zorlu
  • 371
  • 1
  • 18
0
votes
1 answer

Three.js - Make CSS3D-rendered DIV show in full-screen

in my experiments with the three.js library, I managed to set up two different scenes (one canvas-rendered, one css3d-rendered) shown with the same perspective camera. Note: I am using IE 10 (no way around this). While the objects of the…
Oli R.
  • 73
  • 9
0
votes
1 answer

how to Move world view instead of camera view

I have a viewport3d with a camera and some blocks inside of it. Currently using the keyboard to move the camera up/down/left/right/rotate ect. but instead of the camera i want to move the world view. So when a user presses the W key to move up,…
Glen Morse
  • 2,437
  • 8
  • 51
  • 102
0
votes
1 answer

Camera in OpenGL ES

I have a scene as follows : A 3D box with its base centered at origin and four rectangles surrounding the base of the box. We can think it as a building with streets on all its four sides. I want to get the projection view model matrix. I have…
Hellboy
  • 1,199
  • 2
  • 15
  • 33
0
votes
1 answer

3D PerspectiveCamera Rendering Depth libgdx OpenGL ES 2.0

I seem to be having a problem getting libgdx to render things correctly. I render 2 colored triangles using the vertices: Triangle 1(blue): (-1.0f, 0.0f, -1.0f), (1.0f, 0.0f, -1.0f), (0.0f, 1.0f, -1.0f) Triangle 2(red): (0.0f, 0.0f, -3.0f), (1.0f,…
Jay
  • 323
  • 1
  • 3
  • 13
0
votes
2 answers

Image Registration by Manual marking of corresponding points using OpenCV

I have a processed binary image of dimension 300x300. This processed image contains few object(person or vehicle). I also have another RGB image of the same scene of dimensiion 640x480. It is taken from a different position note : both cameras…
0
votes
2 answers

Align camera's viewing direction to view in a particular direction

I am working with a point cloud and multiple images. I know the camera's intrinsic and extrinsic parameters. What I want is to find the rotation matrix which will rotate my camera(without changing the position) to view in a certain direction. More…
0
votes
2 answers

SlimDX Camera setup

Please, tell me what I'm doing wrongly: that's my Camera class public class Camera { public Matrix view; public Matrix world; public Matrix projection; public Vector3 position; public Vector3 target; public float fov; …
0
votes
1 answer

Tiled Rendering glFrustum Clipping Planes Calculations

I was trying to get a tiled renderer working (the idea is to render one large view frustum by breaking it down into chunks and rendering individually). I had code that transforms a standard perspective projection with a viewing angle into left,…
geometrian
  • 14,775
  • 10
  • 56
  • 132
0
votes
2 answers

three.js updating camera matrix world

I'm trying to make the camera project a cube into an image of a cube. I calculate the camera's internal and external parameters. I update the camera internal matrix by manually changing the projectionmatrix. the code…
user1871528
  • 1,655
  • 3
  • 27
  • 41
0
votes
1 answer

Why orthographic projection not working exactly while using CombinedCamera.js using Three.js?

I've gone through the working live example of CombinedCamera and with inspiration I embedded combinedcamera in my work. camera = new THREE.CombinedCamera( width /2, height/2, 45, 0.1, 1000, -1000, 1000, 1000 ); But while using Perspective Camera,…
three.jsaddict
  • 295
  • 2
  • 9
  • 21
0
votes
1 answer

OpenGL FPS Camera movement relative to lookAt target

I have a camera in OpenGL.I had no problem with it until adding FPS controller.The problem is that the basic FPS behavior is ok. The camera moves forward,backward,left and right+ rotates towards the direction supplied by mouse input.The problems…
Michael IV
  • 11,016
  • 12
  • 92
  • 223
0
votes
1 answer

Objects not displaying when I change Z coords (OpenGL)?

I'm having a problem when rendering in OpenGL. Everything displays fine, until I change the Z coord, it gets clipped/it's out of view! Is that what's happening? Am I setting up my perspective projection matrix wrong? I'm stumped... Relevant bits of…
Shokwav
  • 654
  • 8
  • 19
1 2 3
27
28