Hi everyone! Hope you don't mind me asking 🙏
So I've been working on this little project —
it's a 3D mirror room built with Three.js
for an AI testing platform I'm developing.
The idea is pretty simple:
you walk into a room full of mirrors,
click on one, and it takes you into a challenge.
Sounds easy right? 😅
Well... the room part went fine.
Mirrors are placed, lighting looks decent,
I was feeling pretty proud of myself actually.
Then I tried to make the mirrors
actually reflect things.
That's when everything fell apart 😭
Here's what I've tried so far:
- CubeCamera for reflections
→ it works but fps dropped so badly
I could make coffee between frames ☕
- MeshStandardMaterial with envMap
→ reflections show up but super blurry
like looking through foggy glass
- Switched to RenderTarget
→ mirrors started reflecting each other
infinite loop... browser almost died 💀
- Added polygonOffset for Z-fighting
→ better but still flickering at some angles
I've been staring at this for days
and honestly I'm stuck 😅
If anyone has experience with Three.js
mirror reflections, I'd really appreciate
any advice on which direction to go 🙏
Thank you so much! 💜