English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

In 3D-games, i have heard that variables like velocity and position is not stored in trheedimensioal vectors, but in fourdimensional. Why? Any example?

2006-06-21 02:28:22 · 6 answers · asked by User1 2 in Science & Mathematics Mathematics

6 answers

For 3D graphics we need a 4-th dimension to generate perspective projection and to accomplish that we have to employ a so called method of affine transformations. To get more information on perspective projections see http://en.wikipedia.org/wiki/Transformation_matrix
Notr that the same method is also used for computing rotation and rescaling.

Another good application for a forth dimension in a 3-D vector I can see is time. I’m talking about relativity however it is not Einstein’s theory is being referred here. The 3-D games now days are multiplayer network based games. The system has to keep track on one event relative to the other since each player will have different ping time or the time it takes a for a signal from your computer to reach the server. The server will stamp time for your position and aim when you ‘squeezed’ the trigger. This data will be compared to the time stamps for position of the player you shot at. This insures fairness to player of varied ping time.

I hope it helps

2006-06-21 02:58:31 · answer #1 · answered by Edward 7 · 0 0

Velocity and position are 3-D vectors, but games rely on much more than that. Think of when you needed to do something in a game, like open a secret door. Sure you knew its position and how to get to that spot (which all deal with 3-D vectors), but there is also an element of time. Time is often the 4-D that many physics issues refer to and is the same with gaming. Without the time aspect, firing a gun at someone wouldn't allow your opponent to dodge.

2006-06-21 03:02:20 · answer #2 · answered by Nate 3 · 0 0

Do a research on linear functions (transpose).

In order to transpose a f(x) function into a 3D vector, a fourth variable is required to keep the function intact.

I did those theorem 2 years ago, so that's the little knowledge i can remember.

:-)

2006-07-04 22:23:34 · answer #3 · answered by The Elite Gentleman 2 · 0 0

Does the 4th dimension exist ? I don't know.

2006-07-04 23:27:00 · answer #4 · answered by nayanmange 4 · 0 0

http://www.devmaster.net/wiki/Transformation_matrices

2006-06-21 03:05:58 · answer #5 · answered by Prakash 2 · 0 0

because thats the way it is!

2006-07-04 08:16:44 · answer #6 · answered by Nicholas H 1 · 0 0

fedest.com, questions and answers