Announcement

Collapse
No announcement yet.

Smooth Sync: Sync your Transforms Smoothly across the network

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • replied
    fuestrine Empty level, cube actor with smooth sync on it. When client and server push around cube, it works fine (server owns cube, client can push it). The player does NOT have smooth sync, just default replicate movement.

    I SetOwner to client controller from server, and it doesn't change anything. I want SetOwner to make the client control the position locally. Any ideas?

    Leave a comment:


  • replied
    fuestrine Any updates on the client replication problem?

    Leave a comment:


  • replied
    Yes .. all actors are spawned and then destroyed.. I guess there could be 'leftover variables' somewhere..

    Leave a comment:


  • replied
    Syed
    And if you are spawning an actor completely new and not changing the owner at runtime, you shouldn't need to do any resetting.

    Leave a comment:


  • replied
    Syed
    I'll take a look and see if I can recreate the issue. Thanks for bringing it to my attention.

    Leave a comment:


  • replied
    Hi again,
    I keep revisiting this thread because I think this really addresses the shortcoming of UE4 simple and smooth movement networking (which is major one!).

    I have already bought this plugin but I keep experiencing ghost collision and teleporting.. This only happen in the second etc loading (not the first) of level ie load a level: ok. And then exit and the load again, here this problem. And also, the actor with smoothsync is always spawned and destroyed (not kept in pool). I read above that SmoothSync need to be reset but does this also apply to my case?

    Leave a comment:


  • replied
    fuestrine My bad. I forgot to mention that the video was capture with a simulated 150 ping round trip. You may not be able to reproduce the error without simulated ping.

    Leave a comment:


  • replied
    Originally posted by fuestrine View Post
    GuacFrog
    Haha, that's definitely messed up looking.

    I'll have to look into that to try to recreate it on my side and see what's going wrong.

    It's just a default third person controller and a physics box?
    Yep. I will try to re create the issue as well.

    Leave a comment:


  • replied
    GuacFrog
    Haha, that's definitely messed up looking.

    I'll have to look into that to try to recreate it on my side and see what's going wrong.

    It's just a default third person controller and a physics box?

    Leave a comment:


  • replied
    fuestrine Any ideas? Maybe it's just a problem with physics being enabled for the smooth sync actor?

    Leave a comment:


  • replied
    Yeah, I call clear buffer on the client and server every time the owner changes.

    When the client character collides with the box on the server, the server set's the box's owner to that client's player controller, calls clearBuffer(), disables server physics for that box, then calls and RPC to the client which enables physics for that box.

    https://youtu.be/zW7J_UK28vY

    The description of the video explains exactly what is going on in the video.

    Leave a comment:


  • replied
    GuacFrog
    You may still get a bit of teleporting, but try calling SmoothSync.clearBuffer() on each instance of the actor after you change ownership.

    Let me know if that makes it any better or not for you.

    Other methods you may need (though none related to ownership changing besides clearBuffer()) are listed here at the bottom: https://noblewhale.com/smooth_sync_unreal/

    Leave a comment:


  • replied
    fuestrine I have a question.

    I'm trying to make it so that when the player collides with a physics actor, he takes ownership of that actor so that he can push it around smoothly and replicate the position to other clients. My solution doesn't seem to be working.

    What I am doing:
    1) Player collides
    2) Player takes ownership (SetOwner(CollidedPlayerController) gets called on server)
    3) Physics simulation get's disabled on server and enabled on collided client

    This produces really weird teleportation glitches with the object. Any idea as to why?

    Leave a comment:


  • replied
    Anyone built for Oculus Quest? Just having this plugin enable even if I don't use it, causes the app to get stuck on the 3 dot loading screen... Remove the plugin, app works fine.

    Leave a comment:


  • replied
    Samuel Brunner
    Smooth Sync will sync Movement Mode and Character Controller velocity for animations automatically right now.
    If you want to sync something else, it isn't too difficult to set it up yourself if you know a tiny bit of coding. Or if it's something I think other people might use, I can add it to Smooth Sync.

    Leave a comment:

Working...
X