Live data from Hacker News

Two.js

jonobr1.github.io

51–60 of 92 posts

Re: Two.js

#52

Earlier 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.

If your trade is building things and you have nothing to show for it, then it's probably a good idea to have at least one thing you can point to.

But trying pin and dismiss the intention behind someone's open source project would be uncalled for, wouldn't it.

Re: Two.js

#53
post #48

Earlier 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();

Oh, yes, but it's not a vector format, which means you can't make high quality vector drawings that the user can export with it.

Re: Two.js

#54
post #7
post #4

Earlier 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.

brownian.js

Re: Two.js

#55
post #50

Why 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…

You're not the only one! The dev Branch has this fixed so you can pass your own epsilon.

Re: Two.js

#57
post #26

What 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.

It would be good if you wanted to make some content that has smooth animations that renders in all different browsers (i.e animated greeting cards, animated presentations, or animated websites). Basically anything that you could do in Flash 2D, you could also do with this.

Example: makemake.io (although PIXI.js is used in this case)

Re: Two.js

#58
post #55
post #50

Earlier 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.

Hooray! Thanks for pointing it out :)

Re: Two.js

#59

Earlier 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 1: Someone invests a bunch of time making something new.

Step 2: Someone posts it on Hacker News.

Step 3: Project is immediately derided because other people have also been making new things.

Re: Two.js

#60
Is it possible to use this for creating videos with motion graphics? Even the possibility of a frame by frame render would be awesome.
Post reply on HN