perspective

Playing Card "3D" rotation in OpenGL - perspective?

Hi all, (Mac OS X, Cocoa, C/C++, OpenGL, somewhat mathematically challenged.) Project is a real-time (30fps) poker game, with a 2D view. The OpenGL view is set up for Orthographic projection using glOrtho; the camera is always looking directly down at the cards/table. To date, it's essentially been a 2D image composition engine. My pl...

Perspective transformation with GD

How could you distort an image with PHP GD from this... To this... using only the PHP GD library. I don't want to use a function someone else made I want to UNDERSTAND what's going on ...

How to recognize a real square in an image

Hello, I am using OpenCV for square detection in an image. The squares.c example is a really great help, but my problem is that it recognizes pretty much everything that has 4 corners that are close to 90 degrees. My goal is it however to only recognize the real squares in an image from a video feed. This means the objects themselves ...

Projecting a 3D point to 2D screen space using a perspective camera matrix

Hi everyone, I am attempting to project a series of 3D points onto the screen using a perspective camera matrix. I do not have world space (or consider it being an identity matrix) and my camera does not have camera space (or consider it an identity matrix), I do have a 4x4 matrix for my object space. I am taking the object matrix and ...

If a world matrix and camera matrix are both identity matrices, can they be ommited?

This is a basic question about the need for world and camera space matrices when each are identity matrices. Can they be ommited when calculating a 2D projection? I'm pretty sure that they can, although I seem to be getting strange results when I try to project some 3D points whilst ommiting them, I ask since this might be directly linke...

OpenGl box fullscreen

I'd like to draw the inside of a box fullscreen (i.e. it should completely fill the viewport) using OpenGL. The box should have perspective. I presume I'll have to change the dimensions of the box depending on the viewport size but I'm not sure how to go about this. I'm trying to achieve something like the room in this image My questi...

Best approach for building a dynamic widget perspective using QT ?

I am building an interface similar in features to the Eclipse IDE for a telemetry project. I'll be showing many different widgets and each of them needs to be resizable / moveable / popped_out / popped_in / hideable / "fullscreen-able" / etc... like a "perspective" of the Eclipse IDE. What would be the best approach using QT? Which clas...

Mode7-like perspective transform in canvas?

I'm making a canvas-based game engine and am wondering if anyone has any good info on how to achieve an overhead view perspective. What I'm looking for is somewhere halfway between the traditional birds eye view and the old SNES mode7 view. Just a slight angle to give the illusion of 3D. I'm trying to figure out what is going to be the ...

Script error: "An error has occured in the script on the page"

I get a error on my JSP page: Script error: "An error has occured in the script on the page" When I try to run the Eclipse in the debug perspective and I am closing down the browser window of the eclipse where my application is running. Because of the error the application hangs, and I am unable to test my application. Is there any sol...

Is there a way to use the java browsing perspective of eclipse for python?

I'd like to use the browsing perspective ("column view") of eclipse for Python development. Is there a way to do this? ...

meaning of m34 of CATransform3D

What's the meaning of m34 of the structure CATransform3D, I only know it can change the perspective, but what's the meaning when the value is -0.001 and 0.001? ...

Perspective correction by scaling factor in Matlab based on height or attitude

How do I compute the perspective correction by scaling factor in MATLAB based on height or attitude, i.e. assuming that when I am moving upwards, an area, say a square should shrink or expand if I were to descend. There are 2 scenarios for this: Case I: using imresize(), however how do I determine the scaling factor proportional to...