Adblock Plus and (a little) more
Atomic orbital viewer with WebGL · 2009-10-04 17:19 by Wladimir Palant
Recently I found an application that I wrote more than 10 years ago — atomic orbital viewer. Back then I got interested in the pictures of atomic orbitals you get presented in chemistry class, found the special-case formulas for electron distribution and generalized them. And then I wrote an application to visualize these orbitals. Since I didn’t have access to 3D hardware or even literature on 3D graphics I ended up reinventing everything — yes, I used to have that kind of time back then. What came out was a Turbo Pascal (DOS) application where I’ve written almost everything myself, including low-level mouse handling and GUI library.
The big surprise was that this application still more or less worked under Windows XP – if you don’t count occasional stripes in the picture and the cases where it crashed taking down the entire system (probably side-effects of a non-standard VESA graphics driver). Not so much under Windows Vista, it no longer supports graphical DOS applications. Still an application that I would like to have around, so time to reimplement things from scratch. And what’s the technology of choice these days? WebGL! Taking vlad’s Spore viewer as a starting point, it still took me something like 10 hours (I’ve never worked with OpenGL and my linear algebra is a little rusty) but the result is much better than the original application. And with some luck it will still be usable in another 10 years and more.
Click here to try it out in a current Firefox nighty build (make sure to change webgl.enabled_for_all_sites
pref to true
). It will probably work in WebKit nightlies as well but I didn’t check. The hardware improved a lot since the time I wrote my original application, these days all calculations are so fast that I didn’t even bother optimizing them (yes, I know that it would be easy to speed them up by factor 4, not to mention using web workers). And even my laptop has no trouble rotating 64k triangles in real time. Enjoy!
Comment [4]
Commenting is closed for this article.
Aerik · 2009-10-05 07:26 · #
The nerds at http://www.reddit.com/r/physics should like this.
rihey · 2009-10-11 07:13 · #
Shenzhen Rihey CO.,LTD. was founded in 2006. We specialize in wholelsale and direct marketing thousands of consumer electronics from China, including inexpensive MP3 players, cool MP4 players,the latest MP5 players, Car DVD players, fashionable Mobile Phones, Digital cameras, Computer Peripherals,wholesale memory cards and other digital gadgets. To meet the requirements of our customers, we provide state-of-art merchandises at competitive wholesale prices with our first class service.
Rihey cooperates with many importers, exporters and wholesalers with various forms. The international agent is just only an ordinary approach to cooperation. Meanwhile, Rihey can meet the demands from Ebay salers and online buyers by our website agent.
Importing from China directly, you can experience our more competitive prices,
efficient delivery, profeesional insurance and wider selection of products.
On our online wholesale shop—-www.goodscool.com , you can find competitive wholesale prices on all of our products. The prices you see are single-unit prices only; after you sign up at our China online shop, you will be able to see the wholesale prices for larger quantities shipped to you directly from China. The larger quantity, the lower prices you will get!
And also, we put favorable terms on wholesale, auction, coupon and bundle sale. They definitely make our products worthy it!
laszlo · 2009-10-13 17:03 · #
Off-topic: Congrats on getting your Mozilla-defending letter to the editor printed in c’t, Wladimir :-)
Reply from Wladimir Palant:
Lol. It was simply a clarification and I didn’t expect it to be printed. Thanks :)
Lee · 2009-10-26 07:31 · #
I’ve been using adblock for a while, but just recently I’ve been getting disturbing pictures in place of adds is there any way i can change the picture that shows up?
Reply from Wladimir Palant:
I suggest you ask in the forum (no registration required, just press “New topic”) – this cannot be answered without additional questions and an unrelated blog post isn’t the right place for it.