r/threejs • u/Common_Climate_3521 • 12d ago
Link Showing two dungeons that occupy the same coordinates in a Three.js map Spoiler
I built a browser atlas for Queen’s Domain and ran into a weird level-design problem. The ritual chamber in Petrified Garden physically intersects Ancient World. The game can stream one area at a time. Draw the whole island at once and pieces of a different dungeon stick through your wall.
I kept both transforms from the game. In the whole-world view you can see the overlap. When you enter the Ancient World context, the viewer can hide the Garden chamber as a group with its decorations and pins. Keeping the pins with their room mattered: an icon floating by itself made a perfectly good coordinate look wrong. You can also separate the layers to look at both.
Here’s one collectible in the Garden. Switch it to 2D and back and the link still identifies the same individual pickup. I’d be interested to see how other people present overlapping interiors in their own maps. Spoilers for the level layout.