"Capitalism is neither evil or good, but it's an excellent tool to save the world."
- Birgitta Ohlsson (fp)

Site update - WebGL cubemap viewer
Sunday, January 26, 2014 | Permalink

In my recently quite underutilized Pictures section of this site I have in the past used a Java applet and JOGL for OpenGL support to implement a basic cubemap viewer. That kind of worked, but the downside was of course that it relied on Java being installed, and then required the user to accept the installation of native JOGL components for his system. Fortunately, it's now 2014 and even Internet Explorer has basic support for WebGL, so I decided to upgrade this part of the site to go plug-in free and just work provided a modern browser.

So far I've tested it in Firefox, Chrome, Opera and IE11, and it works perfectly in the first three. IE11 also works OK-ish, but for some reason zooming on the scroll wheel doesn't work, and WebGL seems to go into software rendering so performance is a big sluggish, but it least it renders correctly.

To see it in action, you could for instance go here, or any other picture with a green frame around the thumbnail (green means cubemap). Please let me know if it doesn't work in your browser.

Name

Comment

Enter the code below



Maximinus
Sunday, January 26, 2014

Works like a charm (firefox 26.0), but I'd like to try it in the Textures section, where there are nicer cubemaps!

Humus
Monday, January 27, 2014

Yeah, that's something I plan to do. Better than that cross preview that's there now. It's a bit more work though since I would need to generate new content too as well for all existing cubemaps.

Denis
Tuesday, February 4, 2014

Does not work in Opera 12.

KSergei
Monday, February 10, 2014

Works ok, Google chrome Version 32.0.1700.107 m

Timo Kinnunen
Monday, February 10, 2014

I tried in IE11. The reason mouse wheel doesn't work is that IE implements onmousewheel event with wheelDelta value from Document Object Model (DOM) Level 3 Events Specification W3C Working Draft 8 September 2009 but the other browsers implement wheel event with deltaMode, deltaX, deltaY, deltaZ values from Document Object Model (DOM) Level 3 Events Specification W3C Working Draft 07 September 2010.

And neither event kind has been standardized as a W3C Recommendation yet, 4 years later. So, yay.