top | item 6896857

WebGL Equation Plot

63 points| jseip | 12 years ago |vicapow.github.io

16 comments

order
[+] danmaz74|12 years ago|reply
This reminds me my biggest hobby project when in high school; I was so fascinated with 3D plots that I spent I don't know how much time to create a compiler from math formulas to to machine code so that I could plot this kind of things on my Amiga (without a math coprocessor). What amazes me the most is not that you can now animate that in real time in an interpreted language in a browser, but how easy is to learn all these things through the internet, instead of having to find a book in the bookstore and hope that it could have what you needed...
[+] jreimers|12 years ago|reply
Cool! I made half a sphere with 0.5+sqrt(0.2-((x-0.5)^2+(y-0.5)^2)). If there was a way to do a mirroring on the xy plane (as in a +/- z value) it could be a full one.
[+] vicapow|12 years ago|reply
that's so cool! btw, you can link to your equation here

    http://vicapow.github.io/equation-plot-webgl/index.html#0.5%2Bsqrt(0.2-((x-0.5)%5E2%2B(y-0.5)%5E2))
edit: but HN seems to be messing up the urls :(
[+] defen|12 years ago|reply
I'm getting "Uncaught TypeError: Cannot call method 'getExtension' of null" in Chrome 32.0.1700.55 beta - anyone know what that's about? My chrome://flags/ are all set to default.
[+] munchor|12 years ago|reply
This is really nice, already sent in a pull request! I've been meaning to learn about WebGL for a while, I think I'll give it a try this weekend.