Coder Social home page Coder Social logo

Comments (6)

mikeskydev avatar mikeskydev commented on May 18, 2024 3

Hi!
There's a small group of us that are also really interested in adding networking. There's a channel in our Discord where we've discussed and some investigation has been made, but no one's got particularly far https://discord.gg/xNFSVUdP42

Multibrush of course has the multiplayer capability, but is unfortunately closed source and using a closed source networking library.

Library choice is one of the main things to figure out. Personally, I'd like something that can be self hosted and run easily by anyone, to preserve this functionality as much as possible. It should support online matchmaking and rooms for general use, but also configurable to target a server on the local network for setups such as schools and museums, where internet access may not be as simple as a home user.

Some packages also have open source client libraries but closed source servers, which I feel is not the correct path either.

Members of the Tilt Brush team have spoken about unreleased multiplayer prototypes, and how they went about implementing the sync:

The code for the multiplayer prototype was fairly simple: serialize Command and squirt it across the network to a relay that bounced them reliably to all other people who joined the channel. Do a continual distributed leader election to decide a leader. On join, ask for the undo history and the leader sends it to you

https://discord.com/channels/783806589991780412/803681768049737799/803760281066930256

Command is referencing this class https://github.com/icosa-gallery/open-brush/blob/main/Assets/Scripts/Commands/BaseCommand.cs

from open-brush.

andybak avatar andybak commented on May 18, 2024 1

There's a useful discussion starting here: https://discord.com/channels/783806589991780412/804251629993197618/859193005286359080

I copied parts of it into the developer notes which lots of other useful pointers in it: https://docs.google.com/document/d/1BLKHNDjp-hZ8Ju03PhdU1crLOxURB14BtId8YKCp3tk/edit

@Daniel-Fan has also done some work on recording and replaying the avatar head and hands that might feed into this: https://github.com/Daniel-Fan/open-brush/tree/add-strokeIndicator

from open-brush.

billyquith avatar billyquith commented on May 18, 2024

Need to move to Unity 2020: #135

from open-brush.

gabrieldevsouza avatar gabrieldevsouza commented on May 18, 2024

Is this still in progress?

from open-brush.

mikeskydev avatar mikeskydev commented on May 18, 2024

Absolutely 😀

from open-brush.

mikeskydev avatar mikeskydev commented on May 18, 2024

The baseline pass of the multiplayer stack has been implemented, so I'm going to close this in favor of mini issues for the remaining tasks!

from open-brush.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.