Advertisement

how to Dead Reckoning?

Started by May 07, 2005 02:45 PM
5 comments, last by Hexxagonal 19 years, 9 months ago
I am making a game of spaceship 3d to multiplayer, currently is possible move in multiplayer mode, however without the Dead Reckoning, I would like to know which I am best method of I to implement the Dead Reckoning?
Programming is my life!
Dead Reckoning doesn't have a "best method" because it's a method itself (of position estimation).

Dead reckoning uses forward Euler integration. You receive a posisiton and velocity vector for a given timestamp t0; you assume the velocity is constant; thus, the position of the entity at time t1 is (P+V*(t1-t0)). (using vector algebra for P and V)
enum Bool { True, False, FileNotFound };
Advertisement
this is -> s=so+vot ?
In my system i send an acceleration? then i use s=so+vot+0.5at² ?

How to Work with 3d position and uniform moviment variate?
how to do the math s(x1,y1,z1)=so(x,y,z)t+vot+0.5a(t1-t0)²?


I work with Dead Reckoning in client only?
Programming is my life!
Hi!

I have asked some questions about networking and dead reckoning. So I found these articles:
Targeting
A variation of dead reckoning
http://www.gamedev.net/reference/articles/article1370.asp
Defeating Lag With Cubic Splines:
http://www.gamedev.net/reference/programming/features/cubicsplines/page1.asp
Dead Reckoning:
Latency Hiding for Networked Games
http://www.gamasutra.com/features/19970919/aronson_01.htm

All these articles are found in:
http://www.gamedev.net/reference/list.asp?categoryid=30

Best method I found is a quadratic interpolation.

I thought Dead Reckoning should work either in client and server.
But I am not sure to be right.

Another thing I want also to know is how to do dead reckoning in 3D? Is it the same as in 2d??
If i use interpolation in DR about the two last points, the game is not running equal in all players and this is affected more on the fires!!!
In my thought i have to apply a projection of the lat position while not receive more packets!
I have much doubts about DR in 3d because the fire!!
Programming is my life!
You can use more than the 2 last point. But You have to use a polygon with a higher degre.

What do you mean : I have much doubts about DR in 3d because the fire!!
I would use DR in Race car (with aircraft..) So my race is not on a plan but on a 3D world...
I do not have to handle fire.
Advertisement
Quote:
Original post by Napalm
If i use interpolation in DR about the two last points, the game is not running equal in all players and this is affected more on the fires!!!
In my thought i have to apply a projection of the lat position while not receive more packets!
I have much doubts about DR in 3d because the fire!!


the look of the game can be different than the actual game state. it's not like your game will be really far off. you can keep a visual location and an actual location that the server would have. it shouldn't be that much of a deal until network connectivity errors occur. you can test network connectivity (what it would be like) by purposely dropping packets. try it, check it out at a bad case and see if it feels right. tweak to liking.

This topic is closed to new replies.

Advertisement