Two.js
51–60 of 92 posts
Re: Two.js
#52Earlier quoted context omitted.
Where's the problem?
People keep reimplementing the same thing to the same "80%" completion level so they look good to employers, but the software is abandoned quickly once it has served its purpose as a personal branding tool.
But trying pin and dismiss the intention behind someone's open source project would be uncalled for, wouldn't it.
Re: Two.js
#53Earlier quoted context omitted.
I love SVG support because it means you can render something in vector art in the browser which is also downloadable as a file by the user. Drawing stuff in the browser which is then stuck there is cute but lacks an important layer of interoperability with the rest of the computing ecosystem. So here we appear to get the best of all worlds: render to whatever is fastest in the browser but get automatic "export as SVG…
You can save out a to png quite easily: canvas.toDataURL();
Re: Two.js
#54Earlier quoted context omitted.
It seems to me, that people in the Javascript world, like to constantly create new alternatives (or very similar) to existing frameworks or projects. It's not 100% a bad thing though.
Evolution. Competition. Definitely a good thing. Though admittedly the pace at which this happens in the JS world can be exhausting.
Re: Two.js
#55Why Vector.isZero() is checking whether a vector length is smaller than 0.0001? Why this arbitrary number and not e.g. 0.00000001?
Dunno about this case, but probably because floating point arithmetic is a bitch. Try the following in Chrome's developer console: (0.3 - 0.1 - 0.1 - 0.1) === 0.0 > false 0.3 - 0.1 - 0.1 - 0.1 > -2.7755575615628914e-17 In order to get helpful results, we're gonna have to pick some semi-arbitrary epsilon. Still, my problem domain might require a different epsilon than they expect; even if they have a default, the API…
Re: Two.js
#56Re: Two.js
#57What I am struggling with, is the use case of a library like this. Is this oriented towards gaming or substitude something like d3.js or is it has a simplier api, for the developer than other libraries. Or is it a library to showcase the cool stuff that can be done with new technologies. I think the main difference and the selling point is that it is "renderer agnostic" but I don't understand the benefits of that.
Example: makemake.io (although PIXI.js is used in this case)
Re: Two.js
#58Earlier quoted context omitted.
Dunno about this case, but probably because floating point arithmetic is a bitch. Try the following in Chrome's developer console: (0.3 - 0.1 - 0.1 - 0.1) === 0.0 > false 0.3 - 0.1 - 0.1 - 0.1 > -2.7755575615628914e-17 In order to get helpful results, we're gonna have to pick some semi-arbitrary epsilon. Still, my problem domain might require a different epsilon than they expect; even if they have a default, the API…
You're not the only one! The dev Branch has this fixed so you can pass your own epsilon.
Re: Two.js
#59Earlier quoted context omitted.
Where's the problem?
People keep reimplementing the same thing to the same "80%" completion level so they look good to employers, but the software is abandoned quickly once it has served its purpose as a personal branding tool.
Step 2: Someone posts it on Hacker News.
Step 3: Project is immediately derided because other people have also been making new things.