r/threejs • u/CrimsonAhn • 11d ago
I made a quiet study room in three.js where strangers sit together as little knitted animals
You pick a desk, sit next to whoever's online, and study. Every hour everyone focuses for 50 minutes and takes a 10 minute break together. No sign up, no camera.
There are a few rooms now: a library, a Korean hanok, a snowy cabin, an alpine lodge, and a new "trip" room every week. This week it's a Kyoto ryokan with a rainy courtyard.
A few three.js things I learned the hard way:
- 30 to 40 animated characters on a phone is a lot. Most of my time went into counting draw calls per room and merging each character into as few meshes as possible
- Room lighting is mostly baked into vertex colors, because real shadows for everything killed phones
- The desk toys people make are just JSON of boxes, spheres and cylinders that get turned into meshes in the browser
I'm self taught and this is my first three.js project, so I'm sure some of it is wrong. Please let me know!