TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Svelte Cubed

213 pointsby 0xedbover 3 years ago

25 comments

beepbooptheoryover 3 years ago
Why does this need to be its own thing? Looking at the repo[1], we have less 500 lines of code not counting the website itself, and its mostly just svelte code doing what any developer would do to use Threejs on their website.<p>I&#x27;m sure its nice to have that glue code written for you, (I haven&#x27;t actually seen it work on any of my devices yet), but I don&#x27;t really see what this is doing other than making a repo with Svelte and threejs dependencies, writing some svelte components, and making a flashy website. Is this really all you need to do to &quot;create something&quot;?<p>As a self-taught developer I am always confused what _should_ be my labor or not , especially with web-development. Like, I honestly would assume that I would get laughed off of HN if I ever &quot;made&quot; something like this and passed it off as an accomplishment. But perhaps I am missing something crucial here...<p>1. <a href="https:&#x2F;&#x2F;github.com&#x2F;rich-harris&#x2F;svelte-cubed" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;rich-harris&#x2F;svelte-cubed</a>
评论 #29311901 未加载
评论 #29312347 未加载
评论 #29311827 未加载
评论 #29312306 未加载
评论 #29312617 未加载
评论 #29312769 未加载
评论 #29316378 未加载
评论 #29311708 未加载
评论 #29316172 未加载
评论 #29313899 未加载
yawnxyzover 3 years ago
This was presented by Rich Harris at the Svelte Summit a couple of days ago, and it&#x27;s heavily prefaced as a tech demo and very incomplete. The examples worked two days ago, so not sure what broke.<p>Apparently the underlying code was used for some of the NY Times Covid infographics.
评论 #29312089 未加载
cercatrovaover 3 years ago
The React version is react-three-fiber which is also a cool project.<p>- <a href="https:&#x2F;&#x2F;github.com&#x2F;pmndrs&#x2F;react-three-fiber" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;pmndrs&#x2F;react-three-fiber</a><p>- <a href="https:&#x2F;&#x2F;docs.pmnd.rs&#x2F;react-three-fiber&#x2F;getting-started&#x2F;examples" rel="nofollow">https:&#x2F;&#x2F;docs.pmnd.rs&#x2F;react-three-fiber&#x2F;getting-started&#x2F;examp...</a>
joemiover 3 years ago
That site runs so slowly in Firefox on my computer. I didn&#x27;t try it on anything else since that just turned me off too much.
评论 #29310608 未加载
评论 #29313360 未加载
评论 #29312107 未加载
评论 #29314375 未加载
评论 #29326416 未加载
评论 #29310769 未加载
whiddershinsover 3 years ago
Beautiful out of the gate.<p>I can’t defend this, but there is something about working with Svelte that makes me feel like web development has arrived.
jonplackettover 3 years ago
Very interested to try this. I love react and I love Three.js but react-three-fiber feels like somehow battling against the tide.<p>Maybe this will feel like a more natural fit.
评论 #29328483 未加载
EarthLaunchover 3 years ago
I have a multiplayer game client using Svelte for the UI [1]. Svelte Cubed looks awesome for this, but...<p>Is declarative easier to reason about for complex projects, or does it become necessary to go imperative? I can imagine the advantage of imperative is being able to use normal engineering practices, but this isn&#x27;t something I&#x27;ve thought about before.<p>Are there examples where a declarative approach was phased out as complexity grew? The only example I can think of is when a company I worked for tried to use Flex (declarative Flash), which we later converted into pure ActionScript for larger projects.<p>1: <a href="https:&#x2F;&#x2F;github.com&#x2F;Suncapped&#x2F;babs" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;Suncapped&#x2F;babs</a>
评论 #29315498 未加载
kristjanssonover 3 years ago
Oh man Safari (15.1, macOS 12.0.1, MacBookPro15,1) is _unhappy_ with this page.
评论 #29312702 未加载
wnevetsover 3 years ago
&gt; <a href="https:&#x2F;&#x2F;svelte-cubed.vercel.app&#x2F;examples&#x2F;trisolaris" rel="nofollow">https:&#x2F;&#x2F;svelte-cubed.vercel.app&#x2F;examples&#x2F;trisolaris</a><p>&gt; Uncaught TypeError: Failed to execute &#x27;shaderSource&#x27; on &#x27;WebGL2RenderingContext&#x27;: parameter 1 is not of type &#x27;WebGLShader&#x27;.
评论 #29312662 未加载
throwaway07686over 3 years ago
I see that it doesn&#x27;t work for some. To Rich&#x27;s credit, he did mention during the presentation that it was unfinished. From my experience, Svelte and Three.js are a very productive combination. While the declarative approach of Svelte Cubed makes sense for generic scenes, for complex ones I prefer classic use of Three.js even if that means writing more lines of code.<p>I&#x27;ve used Svelte and Three.js recently for several data visualizations and the DX is very good. Shamelss plug: <a href="https:&#x2F;&#x2F;cybernetic.dev&#x2F;" rel="nofollow">https:&#x2F;&#x2F;cybernetic.dev&#x2F;</a> (HN warning: uses crypto data).<p>I think Rich will solve the current problems promptly now that he is working full time on Svelte at Vercel.
thedanglerover 3 years ago
Didn&#x27;t work in my version of FF at all, well the demo pages showed nothing.
评论 #29310841 未加载
评论 #29310803 未加载
评论 #29310750 未加载
me_bxover 3 years ago
See also:<p>Svelthree - Svelte powered three.js development <a href="https:&#x2F;&#x2F;svelthree.dev&#x2F;" rel="nofollow">https:&#x2F;&#x2F;svelthree.dev&#x2F;</a><p>Do these two projects cover the same scope?
qwertoxover 3 years ago
Not working on Chrome&#x2F;Android, Firefox&#x2F;PC, Chrome&#x2F;PC. The examples, those are not working. It stays white. &quot;no camera set&quot; and other stuff.
评论 #29311309 未加载
评论 #29311044 未加载
rablackburnover 3 years ago
I love some of the stuff you can do with 3D on the web…but the majority of web traffic now is mobile, and I’ve never had a mobile that handles it well.<p>I don’t use the latest flagship, but I’m usually on one from ~3 years earlier; there are many people with far less capable devices than mine. So it seems like it’s doomed to stay niche for a few more generations yet.
otrahuevadaover 3 years ago
Works just fine on my Android Firefox, even the examples.<p>My laptop&#x27;s Chrome doesn&#x27;t complain either.<p>Looks cool! I&#x27;d wait for a little bit until the author declares it safe for general consumption, but it does look like something I&#x27;d use.
deltron3030over 3 years ago
Very cool, but the text on the buttons still isn&#x27;t optically centered, there&#x27;s to much padding on the bottom likely caused by an inapropriate font for ui design!
martyvisover 3 years ago
Pixel 3XL, Android 12, Chrome. Home page and demos work great.
boberoniover 3 years ago
While the 3D animation is very beautiful, my laptop noticeably started working harder to render the homepage and my fans started to get loud within 15 seconds.
评论 #29311459 未加载
2fast4youover 3 years ago
Working for me in Windows&#x2F;Firefox, and the demos are impressive. Svelte is such an amazing library, I use it exclusively when I need to do web dev
评论 #29311396 未加载
DonHopkinsover 3 years ago
I could use &quot;SvelteD3&quot; too!<p><a href="https:&#x2F;&#x2F;d3js.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;d3js.org&#x2F;</a>
Graffurover 3 years ago
I feel like this could be cool but as it says &quot;It is not yet done.&quot;. There&#x27;s nothing really to see.
qmmmurover 3 years ago
Works for me on Bromite. Exciting stuff.
mathiasrwover 3 years ago
The examples did not work in iOS safari.
评论 #29311496 未加载
findjashuaover 3 years ago
works for me on osx chrome &amp; ios chrome&#x2F;ffox
评论 #29311402 未加载
radoover 3 years ago
Very slow home page, examples don&#x27;t work.