perspective

WPF and 3D to create a bowl effect

Hi Everyone, How would one go about either using the 3D components of WPF or using a pseudo 3D effect to create a "Bowl" effect, where the user is looking down on a bowl and can drag around rectangles and have the rectangles perspective change so that it looks like they move up, down and around the bowl? I'm not after any gravity effect...

Function for perspective projection of a matrix in C++

Hi, Does anyone have a function that returns the perspective projection of a 3x3 matrix in C++? Matrix Perspective() { Matrix m(0, 0, 0); // Creates identity matrix // Perspective projection formulas here return m; } ...

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. Difference is that one is viewed with 90 degrees offset to the right of the rectangle. Tha...

How to determine Z-order when drawing in a one-point perspective?

I'm trying to make a simple javascript that draws rectangles on a canvas, then draws the side faces based on a one-point perspective. The problem is, the amount of rectangles and their positioning is arbitrary, so faces tend to overlap in a way that wouldn't happen in true 3D perspective. How can I determine the correct drawing order so ...

Actionscript 3 3d with fieldofview

what does the field of view to do with the z axis in flash? I have tried moving object towards the eye with different fieldofview values with same z axis but their size changes. Please help ...

Skewing an image using Perspective Transforms

I'm trying to perform a skew on an image, like one shown here . I have an array of pixels representing my image and am unsure of what to do with them. ...

How do I compete the transformation matrix needed to transform a rectangle into a trapezium?

I'm playing around with css transforms and the equivalent filters in IE, and want to simulate perspective by transforming a 2d rectangle into a trapezium. Specifically, I want the right hand side of the rectangle to stay the same height, and the left hand side to be say 80% of the height, so that the mid points of both sides are horizon...

Simulating 3D 'cards' with just orthographic rendering

I am rendering textured quads from an orthographic perspective and would like to simulate 'depth' by modifying UVs and the vertex positions of the quads four points (top left, top right, bottom left, bottom right). I've found if I make the top left and bottom right corners y position be the same I don't get a linear 'skew' but rather a ...

HMM for perspective estimation in document image, can't understand the algorithm

Hello! Here is a paper, it is about estimating the perspective of binary image containing text and some noise or non text objects. PDF document The algorithm uses the Hidden Markov Model: actually two conditions T - text B - backgrouond (i.e. noise) It is hard to understand the algorithm itself. The question is that I've read about...

Calculating 2D angles for 3D objects in perspective

Imagine a photo, with the face of a building marked out. Its given that the face of the building is a rectangle, with 90 degree corners. However, because its a photo, perspective will be involved and the parallel edges of the face will converge on the horizon. With such a rectangle, how do you calculate the angle in 2D of the vectors ...

Perspective skew

Hello, I am planing to create a 3D anaglyph image for a give 2D image. For this I will consider given 2D image as left eye view and now I have to create right eye view. I came to know that the perspective rotation, perspecive skew, perspective distortation etc,. will create ritht eye view. Suppose in an image if some objectas are ver...

WPF 3D Perspective camera question

I am working on a 3D flip control that can flip horizontally, vertically and can have any size and square or rectangular shape. While I have it working, I ran into a very odd issue with the perspective camera. When I create a MeshGeometry3D I scale to the proper ratio of the content. If the width > height, all is well. However, if he...

Move camera to fit 3D scene

Hi there. I'm looking for an algorithm to fit a bounding box inside a viewport (in my case a DirectX scene). I know about algorithms for centering a bounding sphere in a orthographic camera but would need the same for a bounding box and a perspective camera. I can not just change the FOV because this app has FOV as a user editable varia...

I've got my 2D/3D conversion working perfectly, how to do perspective

Although the context of this question is about making a 2d/3d game, the problem i have boils down to some math. Although its a 2.5D world, lets pretend its just 2d for this question. // xa: x-accent, the x coordinate of the projection // mapP: a coordinate on a map which need to be projected // _Dist_ values are constants for the projec...

Ubuntu crashed, Eclipse lost .metadata, Java Perspective gone, missing, lost

I am running Eclipse Galileo on Ubuntu 10.04 LTS. Ubuntu crashed on me today, and after rebooting, I found that Eclipse has completely lost the Java Perspective (it's like the perspective and all associated views never existed) and the .metadata dir in my workspace is empty except for version.ini. What's up with that? Why did it happen?...

Export single Eclipse Perspective and Settings

Hello Guys, i customized my Eclipse for a special Latex Perspective and saved this perspective as "MyLatex". I evenso added shortcuts in my texlipse preferences, so that i can type "tab"+strg+space to insert a table. Now i would like to offer this to friends. I found out that i can use Export->General->Settings, but this exports ALL pe...

perspective view/transformation matrix

How do I do a perspective view transformation in Java? As I understand it there is some magical 4 dimensional matrix I can use which will determine the FOV, Aspect Ratio, and Near and Far viewing distances, but I don't know how to create that matrix. I'm able to implement a "PerspectiveTransform" in Java, but I see no effect when using ...

OpenGL getting perspective pixel data

Hello, I am working with a 3D rendering of a large field containing various objects. My program views this field in perspective from a high point. I need to access the pixel data of (only) a rectangle in the field as viewed from above. I have the coordinates of this rectangle in the field, and would like to: (a) Find the pixels corresp...

How to open multiple consoles in multiple tabs in eclipse?

I am using Eclipse Version: Helios Release for a java application. I need to run multiple instances of same application and want easy visibility of multiple consoles. can it be done? If yes, how? Thanks in advance. ...

Perspective projection - how do I project points which are behind 'camera'?

Hi everyone, I'm writing my own software rasterizer in Java, and I ran into some trouble with it... take a look at a sample image, please: Image This sample just draw simple square grid on a plane. Everything works fine until I move camera close enough for some points to move behind it. After that, they're no longer projected correctl...