Is it possible to have more users interacting on the same WebGL page?

61 views
Skip to first unread message

medialize it

unread,
Dec 5, 2020, 10:36:55 PM12/5/20
to WebGL Dev List
Hi, I am completely new to webgl...
I kindly ask if somebody tried already to do something like that: 
allowing more users (possible an undefined number of) from different computers, producing changes with a mouse "interaction" just on one same webpage showing the result of many interactions... :))) too crazy...
So something like a painting-together workframe :)
Thanks so much
Paco

David Smith

unread,
Dec 7, 2020, 11:12:54 AM12/7/20
to webgl-d...@googlegroups.com
Hi Paco,

(I know this is off-topic)

We built a system called Croquet that enables that.

Check out the last demo in the documentation link below. It is a multi-user three.js demo, but illustrates how any number of users can share a single world.
This uses a replicated computation model developed by Alan Kay (father of the PC), David P Reed (created UDP and co-created TCP), Andreas Raab and me (first realtime 3D adventure/shooter game, invented portals).

(This next is perhaps more on-topic...)

Here is another one that uses a physics engine written in Rust running in WebAssembly:

https://croquet.io/fountain/?q=z15h4vu3pi

The suffix is a randomly generated session ID. That is what the system uses to determine who to connect to. You can use:


and it will generate a new session ID.  

This is particularly nice, as it demonstrates a high performance physics engine (https://rapier.rs/) running bit identical on multiple platforms and browsers.

We will be making the source for this demo available shortly (once the documentation is done).

Cheers!

David

David A. Smith

Twitter: @GoCroquet
Skype: inventthefuture

I am a part of all that I have met; 
Yet all experience is an arch wherethro' 
Gleams that untravell'd world whose margin fades 
For ever and forever when I move. 


--
You received this message because you are subscribed to the Google Groups "WebGL Dev List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to webgl-dev-lis...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/webgl-dev-list/6d605b22-8af5-4296-8cbf-6a87cd0acb18n%40googlegroups.com.

medialize.it

unread,
Dec 7, 2020, 11:54:51 AM12/7/20
to webgl-d...@googlegroups.com
Wow David,
this is an entire new world to discover and so many thanks for your research and for your happy sharing.
I'd like to know absolutely more.
Got just a fast look now but I don't understand well while connecting from two different computers it doesn't recognize 2 users in the page you referred https://croquet.io/fountain
If I understood good your tool looks really amazing and it opens a lot of creativity!
Thanks so so much!!!
Let's keep updated if you kindly consider
Dear greetings!

Pasquale Direse
Founder e art director in Medialize.it e Latus Creativity 
Docente di Metodologia della progettazione per l'arte pubblica
Docente di Digital Video


                                
                   medialize.it 
S.r.l.s.
 
                             Viale Mazzini 
86
 - 
03100
 Frosinone - ITALY 
                         
P.IVA
-VAT
02974970606 - mobile: +39 3288228893  
                 facebook - twitter - info@medialize.it


David Smith

unread,
Dec 7, 2020, 12:31:33 PM12/7/20
to webgl-d...@googlegroups.com
Hi Paco-

Make sure you use the same suffix.
Try this on two pages (or on your phone and your PC/Mac):


Cheers,
David

David A. Smith

Twitter: @GoCroquet
Skype: inventthefuture

I am a part of all that I have met; 
Yet all experience is an arch wherethro' 
Gleams that untravell'd world whose margin fades 
For ever and forever when I move. 

medialize.it

unread,
Dec 7, 2020, 12:37:59 PM12/7/20
to webgl-d...@googlegroups.com
Oh wow!
It is impressive!!! I feel like entering in a black hole for its further development but I will try as soon as you'll be so kind to keep on sharing.
I wish you the best in the meanwhile and please... let's stay connected
P.

--

Philip Taylor

unread,
Jan 5, 2021, 4:34:55 PM1/5/21
to WebGL Dev List
As part of the toolbox we are building, we provide 'Collab' which is a tools to synchronize users in a common session. 
I haven't taken a look at croquet, but that does look interesting. 

Our system is a more explicit synchronization where each change made by each user is published to all other users which subscribe and apply the same changes on their own machines. 
Our undo system is key to making this fairly seamless to setup. 


there is a live demo in the docs that you can access from a few different machines to see the other users avatars floating around. 
For a more secure solution, you can provide a roomId, (much like David showed with Croquet) that ensures only users with a common room id are synchronized.

medialize.it

unread,
Jan 5, 2021, 5:52:33 PM1/5/21
to webgl-d...@googlegroups.com
So, kind and so interesting your gentle feedback! I'll get a look and back for sure with some questions ! Thank you so much!


Reply all
Reply to author
Forward
0 new messages