Tagged Questions
1
vote
1answer
71 views
XNA draw 3d graphics in 2d game
I am programming a simple pool game in XNA. I am using Farseer for simple 2d physics but I want to use 3d graphics. My problem is I can't get the rendering to work.
I have one model for the ball and ...
0
votes
0answers
90 views
Drawing Projected Vertices/Faces In Order
I recently created a 3d engine, and have gotten to what is (as I've found) the hardest part so far. I need to sort the objects and then draw them. I've looked at sorting algorithms, but my case is ...
2
votes
2answers
205 views
What kind of projection is used here?
Tibia is a 2d game, but it's sprites are drawn using certain kind of orthographic projection that is not the same I'm used to:
I'm trying to figure out what projection is used here. I've guessed ...
2
votes
1answer
140 views
Coordinate spaces and transformation matrices
I'm trying to get an object from object space, into projected space using these intermediate matrices:
The first matrix (I) is the one that transforms from object space into inertial space, but since ...
1
vote
3answers
689 views
2D camera perspective projection from 3D coordinates — HOW?
I am developing a camera for a 2D game with a top-down view that has depth.
It's almost a 3D camera. Basically, every object has a Z even though it is in 2D, and similarly to parallax layers their ...
4
votes
2answers
581 views
If I project a sphere in 3D will it be a circle?
Assuming I have infinite vertices to represent the sphere, if I project the sphere from any position/scale in 3D to 2D, will it be a circle?
I know it will not be a circle on the screen, because of ...
0
votes
1answer
134 views
Scanline filling of polygons that share edges and vertices
In this picture (a perspective projection of an icosahedron), the scanline (red) intersects that vertex at the top. In an icosahedron each edge belongs to two triangles. From edge a, only one triangle ...
0
votes
1answer
131 views
Greiner-Hormann clipping problem
I have a set of planar polygons in 3D space defined by their vertices in counterclockwise order. Let's define the 'positive face' as being the face of the 3D polygon such as when observed, the ...
0
votes
0answers
214 views
Map 3D space to 2D screen space?
Could some one help me to understand this code and explain it?
It's about converting from 3D space to 2D position, so that I can use it in another Effects (.fx) files, but I am a bit confused.
float ...
15
votes
1answer
456 views
Keystone Correction using 3D-Points of Kinect
With XNA, I am displaying a simple rectangle which is projected onto the floor. The projector can be placed at an arbitrary position. Obviously, the projected rectangle gets distorted according to the ...
5
votes
3answers
616 views
Arbitrary projection matrix from 6 arbitrary frustum planes
A projection matrix represent a tranformation from the camera view space to the rendering system clip space. In other words, it defines the transormation between a 6-sided frustum to the clip cube.
...
3
votes
1answer
405 views
Perspective projection with 90 degrees between X-Y axis?
I'm trying to create a game that mimics Tibia's projection style:
,
As you can see, a 3d point is mapped to 2d like this:
So I've downloaded Three.JS and a lib to create a Orthographic Camera. But ...
5
votes
3answers
650 views
What's a pre-multiplied 4x4 matrix?
I'm using a 3d game engine, that uses a 4x4 matrix to modify the camera projection.
The matrix is in the regular 4x4 format:
r r r x
r r r y
r r r z
- - - zoom
The description for the ...
3
votes
1answer
1k views
Can a 4x4 matrix describe a camera's perspective?
I'm working with a closed-source 3D engine, and it only allows you to set the view projection via a 4x4 matrix. Can this matrix describe the camera's translation, rotation & perspective?
I turned ...
