Tagged Questions
0
votes
1answer
42 views
Drawing the same scene with perspective then orthographic projections
I have a scene that I'm rendering first with a perspective matrix. I then want to rerender it in a different viewport using an orthographic matrix for a top-down 2D view of the scene. I think I may be ...
1
vote
2answers
108 views
Accumulating rotations for camera
It seems there are three ways to store a camera's rotation: in angles, view matrix or quaternion. I was using euler angles since when I used a matrix it had a tendency to accumulate rounding errors ...
12
votes
1answer
198 views
Orthographic unit translation mismatch on grid (e.g. 64 pixels translates incorrectly)
I am looking for some insight into a small problem with unit translations on a grid.
Update and Solved
I solved my own issue. See below for details. Everything in this part of the post turned out to ...
0
votes
1answer
112 views
Camera lookAt target changes when rotating parent node
have the following issue.I have a camera with lookAt method which works fine.I have a parent node to which I parent the camera.If I rotate the parent node while keeping the camera lookAt the target , ...
0
votes
2answers
170 views
Determining my playable area/field of view
Contrary to what I found searching for the answer, I'm not trying to see whether a character is in view of another character. What I need to find out is the size of the field of view. This is because ...
3
votes
0answers
171 views
Web sites with famous game information? [closed]
Is there any website containing informations related with some famous game? For information I mean how to calculate damage in a rpg for example, or how they've set camera and other tips like this!
...
0
votes
1answer
747 views
as3 3D camera lookat
I'm making a 3D camera scene in Flash, draw using drawTriangles() and rotated and translated using a Matrix3D. I've got the camera to look after a specific point, but only on the Y-axis, using the x ...
-1
votes
1answer
150 views
Camera not working
I made a camera in DX9. To move forward I press the Up arrow. To rotate on the Y axis I use the mouse. When I perform these movements on their own the camera moves at the speed I want.
However, if I ...
1
vote
0answers
659 views
Orthographic Camera Zooming
In XNA I am using a spritebatch to render a board. I have created a camera class which can provide me a view and projection matrix. Currently I am supplying the view matrix to my sprite batch when I ...
2
votes
2answers
584 views
How to rotate an object so it stands correctly (back always facing the camera)
I have the following scene:
And I have two 3D vectors, the camera position, and the focus position. The focus vector is always behind the monster. I know how to rotate the camera around the focus ...
3
votes
2answers
154 views
Camera placement sphere for an always fully visible object
Given an object:
With the bounds [x, y, z, width, height, depth]
And an orthographic projection [left, right, bottom, top, near, far]
I want to determine the radius of a sphere which allows me to ...
1
vote
0answers
117 views
Issues with Spherical Coords and gluLookAt
I am currently developing a game set in a planet(A sphere), in which my camera mostly works though some issues arise from this method: ...
1
vote
1answer
146 views
Averaging Camera Position
I'm making a camera which tracks the player. I am using a basic algorithm to calculate a position for the camera relative to the player. Then I am taking an average of this over the last x number of ...
0
votes
1answer
578 views
Camera Rotation (for mouse look) with LookAt does not work as expected (Local/Global)
My code for rotating my 3D fps camera isn't working as expected.
I expect that the X-axis does rotate with the Y-axis, but it ain't so.
I made some pictures to explain it better, I think its doing ...
5
votes
3answers
652 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 ...
5
votes
2answers
459 views
Manipulating a free camera
I have a camera class in my code which stores two 4x4 matrices. One for the view matrix and one for the projection matrix. Originally, I had two floats in the class for pitch and yaw and these were ...
1
vote
2answers
408 views
OpenGL Camera causes spatial distortion
I'm trying to implement a 3D camera of the "Orbit around the origin" variety in a game engine I'm developing in order to learn about 3D graphics and game programming. I have a basic handle on the ...
2
votes
1answer
365 views
Calculating camera zoom value (top-down)
I need some help in 'camera maths'. I have a birds eye view of two characters. One character is static and the other can move. I would like the camera to always show both characters in full and, in ...
6
votes
4answers
844 views
Equation for bouncing graph?
I basically want my camera in 3D move automatically. Currently, I have linear movement which is rather dumb, so I'd like to do a bouncing movement.
However, what is a good equation for bouncing? I ...