Jump to content
  • Advertisement
Sign in to follow this  
Napalm

Problems to simulate a soft movement in my multiplayer game

This topic is 4863 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Currently I am not obtaining to create a correct projection so that the movement of the ships 3d is seen in soft way, at the moment they are jumping of a point to the other. I am control the packages of position to each 100 ms and am using S=So+V*T to fill the movement while I do not receive a new package however still I did not get a soft movement. How I can make this to function correctly, somebody has one sample where this is demonstrated? This method to send packs position in a deternated time (in my case 100ms per sent) is good? Iam sorry, my English is bad I wait that they understand!

Share this post


Link to post
Share on other sites
Advertisement
Instead of literally snapping your ships to the new position when you receive a packet, you could perform the correction over a set period of time (say 200ms). Another possibility is factoring acceleration into your prediction routines. I'm not experienced in this area, so that's about all the advice I can give. Good luck.

Share this post


Link to post
Share on other sites
If you search the forum and the FAQ for "interpolation" and "extrapolation" you'll find lots of good hits on how to smooth out movement.

The draw-back is that you have to display objects at a position that's slightly less accurate than the data you actually have, but it looks much better.

Share this post


Link to post
Share on other sites
Cubic Splines with a projection while not receive other position packs is a good idea?

Share this post


Link to post
Share on other sites
Hi,

In addition to what has been said regarding the extrapolation, I would send more packages if your bandwidth can handle it. You are updating at rougly 10fps at the moment, whilst sending each 35ms instead wouldn't be a problem. I don't know the size of your packages though, but most games easily handle updates at that rate.

Regards,
/Omid

Share this post


Link to post
Share on other sites
my position pack size is 32 bytes in at this moment I sent this information every 100 ms and I now implementing a cubic splines to smooth the movement of players.(position+rotate+aceleration+id+header)
The fire pack size is 28 bytes and this send with a delay 10 ms(1 bullet/10ms) if the player press the button fire.(position+direction+id+header)


it is good?

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!