Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (7th_zorro), 927 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Physics in Multiplayer #403629
06/22/12 19:51
06/22/12 19:51
Joined: Apr 2008
Posts: 650
Sajeth Offline OP
User
Sajeth  Offline OP
User

Joined: Apr 2008
Posts: 650
Hi,
how would I go about implementing PhysX into a multiplayer game? Especially since I'd be using a Half-Life 2 style of physics manipulation with impact on gameplay. What would be the best approach in theory?
Calculating the physics on every client and the server and manually updating position, orientation and applying forces if the difference to the server becomes too significant?
Only using PhysX on the server and using "fake" physics on the client, based on the values sent by the server?


Teleschrott-Fan.
Re: Physics in Multiplayer [Re: Sajeth] #403630
06/22/12 20:02
06/22/12 20:02
Joined: May 2009
Posts: 5,370
Caucasus
3run Offline
Senior Expert
3run  Offline
Senior Expert

Joined: May 2009
Posts: 5,370
Caucasus
I guess you better handle main physics manipulations on the server, and update directly positions and angles for clients. If I remember correctly, Rackscha was playing with physics in multiplayer world, and as far as I know, he got some nice results, ask him!


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: Physics in Multiplayer [Re: 3run] #403637
06/22/12 21:09
06/22/12 21:09
Joined: Dec 2008
Posts: 1,218
Germany
Rackscha Offline
Serious User
Rackscha  Offline
Serious User

Joined: Dec 2008
Posts: 1,218
Germany
HI, someone wrote my name?^^

3Run is right. I updated the values directly. My demo worked on a fixed FPS base(60fps). EVery 3 fps i send new data from the server to the clients.
The clients blended the new position/angle between the next 3 frames to get smooth results. Some kind of problem is the delay on the client, which isnt too significant if the ping is < 100.

The code i used there was initially constructed as my defaultmovementcode(and is). The mechanic is so basic, it can be applied to any xyz and pan/tilt/roll changes of any enty type.

Oh hell...this reminds me on something. Some time ago i posted a signed byte function i designed just for a rewrite of the old system with less traffic grin

Need to investigate this again.

For further questions, just ask laugh

Greets
Rackscha


MY Website with news of my projects:
(for example my current
Muliplayer Bomberman,
GenesisPrecompiler for LiteC
and TileMaster, an easy to use Tile editor)
Sparetime-Development


Moderated by  HeelX, Spirit 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1