TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: Three.js mirror cube that stays in sync

24 点作者 mackopes10 个月前
Hello HN,<p>Mirror Cube is a Three.js based 3D model of a Rubiks cube variant. It keeps unscrambling itself doing random moves, but the moves are (ehm.. should be) synced across all devices.<p>I built this over one week and I thought you might find it interesting.<p>Let me know what you think and if you find any bugs!<p>Martin

5 条评论

genezeta10 个月前
It&#x27;s nice, pretty. Maybe the background is not the best to appreciate the mirror-ness of the cube. I mean, you <i>can</i> see the reflections but there&#x27;s not much to notice other than the pink and white lines.<p>It doesn&#x27;t work on Firefox (128.0.3 on Win10), though. I only get a black screen with the countdown and the info button. There are no hard errors on the console but there are various warnings. In particular there are some warnings about not being able to reconstruct an HDR from hdri1.jpg (&quot;Gain map metadata not found in the file, HDRJPGLoader will render the SDR jpeg&quot;) and about some image being too large for a texture (&quot;WebGL warning: texImage: Requested size at this level is unsupported.&quot;) or buffers exceeding maximum size (&quot;renderbufferStorage(Multisample)?: Width or height exceeds maximum renderbuffer size.&quot;). And from there on a lot of warnings about &quot;drawElementsInstanced: Framebuffer not complete. (status: 0x8cd6) COLOR_ATTACHMENT0: Attachment has no width or height.&quot;
评论 #41137739 未加载
AliMammadli10 个月前
Nice work! It&#x27;s hard to make project optimal when working with mirror in Three.js. I use it in my workout demo project that there is big mirror in the gym.<p><a href="https:&#x2F;&#x2F;workoutme.netlify.app" rel="nofollow">https:&#x2F;&#x2F;workoutme.netlify.app</a>
dole10 个月前
I like the music, Burial - Archangel vibes from one track. Have it play the next song after it plays the first otherwise it just goes silent, unless it&#x27;s intentional.
评论 #41189990 未加载
评论 #41175302 未加载
hollowcrown10 个月前
Really cool! Love your solution for achieving synchronisation, so nice to have the site open on both laptop and phone and see the same movements on both devices.
评论 #41190005 未加载
shove10 个月前
I have one of these :)