Live data from Hacker News

WebGL to add 3D hover effects to your website

glecollinet.github.io

41–50 of 115 posts

Re: WebGL to add 3D hover effects to your website

#42
post #29

How do I run it? Crashes Firefox 23 No effects on Chromium 28.0.1500.71 >Error creating WebGL context. three.min.js:412 >Uncaught TypeError: Cannot call method 'getExtension' of null Linux Mint 15 x64

Try: http://get.webgl.org/ Check and make sure your 3D drivers are up to par. Make sure webgl is enabled in chromium flags. Are you really that surprised that 3D is flaky on linux?

I am, first time that some webgl crash my browser in Linux (updated arch linux)

Re: WebGL to add 3D hover effects to your website

#43

Earlier quoted context omitted.

Try: http://get.webgl.org/ Check and make sure your 3D drivers are up to par. Make sure webgl is enabled in chromium flags. Are you really that surprised that 3D is flaky on linux?

I have the same problem: Firefox 23 on Debian; Intel GPU (so pretty solid drivers), get.webgl.org works fine and I can't remember when I last had trouble with 3D, but the OP's site crashes my browser. Then again "in the wild" I wouldn't enable WebGL anyway for most sites. Edit: I think it's a Firefox problem. Works in Chromium for me.

Funky. Might be a compatibility issue with Three.js.

Re: WebGL to add 3D hover effects to your website

#44
post #16

Earlier quoted context omitted.

This is just a sample of what is possible. There will always be people who use the wrong tool for the job, but that is not a reason to dismiss this.

It's a reason to proclaim that the people deciding on web standards are doing a horrible job. Scripting should be removed from the web, not made ever more powerful....

Suppose that's what they did with HTML5. What would happen then?

Nobody would use it. Proprietary solutions to do what WebGL and other HTML5 features do would pop up, and people would use those.

Instead, what we've got is a situation where you can actually turn off Flash and use the majority of websites without any degradation.

Re: WebGL to add 3D hover effects to your website

#45
post #15

Earlier quoted context omitted.

Antialiasing is actually the default for most WebGL implementations I've tested, but it's not possible to turn it on everywhere. There are still lots of devices out there too weak to actually do antialiasing for everything, along with buggy drivers that crash or produce garbled output in some scenarios with AA on. AA can also introduce artifacts into certain rendering algorithms designed for use without AA (it produc…

Yes, generic anti-aliasing for 3D graphics isn't as straightforward as modern desktop GPU's make it appear to be. The multi-sampling approach that desktop hardware uses is basically brute-forcing it, and doesn't work on mobile hardware that uses tile-based deferred rendering. Subpixel rendering only works for contours. Texture filtering requires you to model everything using bitmaps. Solutions that intelligently comb…

>Subpixel rendering only works for contours.

That's simply not true. It works for any non-horizontal edge.

Re: WebGL to add 3D hover effects to your website

#47
post #39
post #21

Crashes my Firefox 22.0 instantly.

it's your graphics card most likely crashing the browser.

I know. It's pretty easy to crash browsers these days with WebGL. I'm not sure if the hover effect contains invalid WebGL code. (My browser plays the Epic Citadel HTML5 demo well).

Re: WebGL to add 3D hover effects to your website

#48
post #29

How do I run it? Crashes Firefox 23 No effects on Chromium 28.0.1500.71 >Error creating WebGL context. three.min.js:412 >Uncaught TypeError: Cannot call method 'getExtension' of null Linux Mint 15 x64

OK, fixed.

I use an Optimus laptop (yeah, bad decision) which Chromium doesn't support. The solution is to tell it to support it anyway:

$ optirun chromium-browser --ignore-gpu-blacklist

Now it works fine.

Edit: fixing the problem on firefox:

$ optirun firefox

Re: WebGL to add 3D hover effects to your website

#50
post #36
post #16

Earlier quoted context omitted.

It's a reason to proclaim that the people deciding on web standards are doing a horrible job. Scripting should be removed from the web, not made ever more powerful....

Why people keep saying this kind of stuff? For one, whatever Tim Berner's Lee envisoned, the web is not the simple mostly textual medium it was in 1993. Get over it. Second, for people to love reading text on the web, there was never a better time than the present. Lots of long form text by bloggers and content providers like Medium etc, combined with a widespread interest in improved readability and good typography.…

The universal reply to "get over it" is "if it's a problem for me, then it's a problem". Are you sure there's no grain of truth in the complaints about today's dynamic Web? How about this critique, which is hopefully more articulate? http://lists.whatwg.org/pipermail/whatwg-whatwg.org/2011-Nov...
Post reply on HN