Questions tagged [perspective]

In Eclipse, a perspective defines the initial set and layout of views in the Workbench window. In CSS, perspective is a property and concept used in 3D transforms.

In Eclipse, a perspective defines the initial set and layout of views in the Workbench window. Within the window, each perspective shares the same set of editors. Each perspective provides a set of functionality aimed at accomplishing a specific type of task or works with specific types of resources. Perspectives control what appears in certain menus and toolbars. They define visible action sets, which you can change to customize a perspective. You can save a perspective that you build in this manner, making your own custom perspective that you can open again later.

In CSS, the perspective property determines the distance between the user and the z=0 plane, affecting the amount of distortion caused by 3D transforms. The perspective-origin property is related.

733 questions
5
votes
1 answer

3D Projection Issue: Z Value doesn't lie in [1,-1] after Perspective Divide

I'm trying to do a simple perspective projection in the process of rasterizing a 3D point. Here are all the matrices and other info. All Matrices are row major. The coordinate system is Right Handed. The Camera is at [0,0,-1] and the point is at…
rwb
  • 621
  • 1
  • 12
  • 21
5
votes
4 answers

Computing FOVX (openGL)

When working with openGL perspectives I am not quite sure how to compute the fovx from the fovy. I read different things in different places and in I don't get the right behavior by using either method that I found. So can someone please tell me,…
Mike2012
  • 7,629
  • 15
  • 84
  • 135
5
votes
1 answer

Transformation of 3D objects related to vanishing points and horizon line

I'm trying to computing the exact prospective transformation of a 3D object starting from a vanishing points and horizon line of a picture. What I want is, fixed the vanishing points and horizontal line of a picture, I want rotate and skew an 3D…
5
votes
1 answer

Calculating diminishing size in perspective

I'm trying to figure out a formula on how to calculate the size of a distant object at a viewing pane closer to me. I'm sure I had this in high school, but I couldn't find any resources on what the correct calculation is. I found the following page…
Dennis G
  • 21,405
  • 19
  • 96
  • 133
5
votes
1 answer

OpenCV RHO homography method doesn't work with perspectiveTransform

I was trying to use the new RHO homography algorithm in conjunction with perspectiveTransform, but it seems that the homography matrix calculated by RHO has a wrong size and consequently it is not compatible with that method. See code below: H =…
Pablo
  • 1,041
  • 8
  • 23
5
votes
1 answer

Opencv Homography matrix H and Inverse H to transform a point is not getting expected results

I am using Opencv python interface and got the homography matrix H. It seems to work properly as I can use warp perspective to get warped image from the source image. I now tried to use H and Inverse H to transform a point (not image) back and forth…
Fuithecat
  • 131
  • 2
  • 5
5
votes
3 answers

Eclipse Luna gives NullPointerException when debugging hits a breakpoint

Whenever I hit a breakpoint in my code, I see an obnoxious dialog informing me that "Perspective switch job has encountered a problem", the details of which simply say "NullPointerException". The error log shows this stack…
Marc
  • 1,812
  • 4
  • 23
  • 36
5
votes
1 answer

CSS3 rotate3d pr rotateX get actual height of element

I want to get actual height of element when rotated 3d on x axis. I'll try to explain with graphics below: Element's normal height: 200px Actual height is 118px when rotate 45 degree with 100px perpective: Actual height is 138px when rotate 45…
delirehberi
  • 470
  • 3
  • 17
5
votes
3 answers

How to determine 3D position of an object from perspective?

I have a situation as shown in image, where I need to determine x,y of red and blue square in rectangular space but under perspective. Length and width of the rectangle are know. The rectangles are the same just viewed from different locations.…
NccWarp9
  • 486
  • 1
  • 5
  • 19
5
votes
2 answers

Can't get OpenCV's warpPerspective to work on Android

I've been struggling to implement a quad to quad system in my Android application. The aim is to let the user take a picture, add 4 cornerpoints and have that quad extracted from the image as a rectangle. I had a look at this method and this…
gleerman
  • 1,793
  • 4
  • 24
  • 38
5
votes
2 answers

How to make PerspectiveTransform work?

I just want to reproduce the result as posted here. I rewrite the source to EmguCV form. Image image = new Image(@"B:\perspective.png"); CvInvoke.cvShowImage("Hello World!", image); float[,] scrp = { { 43, 18 }, {…
Gqqnbig
  • 5,845
  • 10
  • 45
  • 86
5
votes
2 answers

Change perpective angle/origin 3d-css on mouse move

I'm trying to get the perspective view-angle with the following, of a cube: http://jsfiddle.net/TrySpace/JvFSQ/5/ But I doesn't do what I expected, I want the actual view-angle to be changed. So when transformOrigin: Xpos+'%'+Ypos+'%' is 100%-100%.…
TrySpace
  • 2,233
  • 8
  • 35
  • 62
5
votes
1 answer

OpenGL Far Plane given very large value clips everything

I found if I define the far plane distance for the perspective matrix to be 1,000,000,000 , then all the object inside that range get clipped. Range of 100,000,000 works fine. Anyone can explain this? I mean , it still doesn't approximates float…
Michael IV
  • 11,016
  • 12
  • 92
  • 223
5
votes
1 answer

Transform Point with Perspective Transform Matrix

I have the coordinates of a quadrilateral which was photographed out of two different perspectives. Furthermore I have the coordinates of one Point but only from one of the two perspectives. I need to transform the coordinates of this point to the…
Averius
  • 165
  • 1
  • 2
  • 13
5
votes
2 answers

Using units on CSS perspective

Just a quick question to clear up some confusion that I have regarding units on CSS perspective. On the CSS Transforms spec it references it with px e.g. perspective: 1000px; but I have used and in many other places others have used it without px…
Luke
  • 83
  • 1
  • 6