145 comments

[ 907 ms ] story [ 3747 ms ] thread
This works great in Firefox 11. It doesn't work in Chrome 18 which has WebGL disabled (on Linux).

EDIT: I really doesn't work because "NVIDIA cards with nouveau drivers in Linux are crash-prone." Firefox has no trouble, strangely.

OSX 10.7 and Chrome 18 is OK.
I have Chromium 17 on Ubuntu (WebGl desactivated) and it works.
You can enable it in about:flags
Actually the thing in about:flags to to "enable" the "disabling" of WebGl.
No, you need to disable the disabling. Still doesn't work for me, though.
> 3D charts require a web browser and system that support WebGL.

Courtesy of Firefox 11.

(edit) Apparently webgl.force-enabled needs to be set to true in about:config, and then it works.

Thanks for this tip.

It wasn't working in Firefox 6, but then flipping the flag fixed it.

>It doesn't work in Chrome 18 which has WebGL disabled (on Linux).

WebGL is definitely not disabled. You either disabled it or your GPU is not on the whitelist (or is on the blacklist).

According to chrome://gpu:

>WebGL: Unavailable. Hardware acceleration unavailable

Chrome sadness.

I will say it's strange that Chrome thinks your computer is incapable but Firefox 11 is able to perform the task. It may be a bug with Chrome worth looking into.
(comment deleted)
This works great in Firefox 11. It doesn't work in Chrome 18 which has WebGL disabled (on Linux).

I am also using Firefox on Linux and was actually suprised this worked. I assumed WebGL was still disabled by default for us.

Nope it's been on for a while but it will only work if you have good OpenGL drivers. (About ~50% of Linux users who try are able to view WebGL content from mozilla's numbers).
Not working in Opera 11.62

Shame that my favourite browser doesn't support WebGL. :( But props to Google for making their search engine that much cooler.

If you want to see it with Opera try the 12 alpha. Just did and it is working perfectly.
It works for me in Chrome 18 under Ubuntu 12.04.
Ubuntu 11.10 and Firefox 11. Works like a charm.
Same here. Chrome doesn't.

However, since it's on an eeePC netbook the animations way to slow to be useful.

Works fine in Safari too. Don't forget to Enable WebGL in the Develop menu (itself activated in the Advanced tab of Safari's Preferences)
After fiddling with about:flags and using --ignore-gpu-blacklist on the command line, I got chrome://gpu to report that WebGL is fully enabled. It _still_ doesn't work, with this error reported in the console:

    [75:75:1827873622829:ERROR:command_buffer_proxy.cc(110)] Could not send GpuCommandBufferMsg_Initialize.
I suppose you need the latest mesa and drm. It works great here, but I'm running code from git.
> It doesn't work in Chrome 18 which has WebGL disabled (on Linux).

Chrome 18 on Ubuntu 11.04 with real crappy Intel Mobile 4 Chipset and it works.

Am I missing something? What's the significance of this link?
It's pretty. That's all, I think.
showing off google's webgl rendering of equations in search its neat
With latest Chrome, you get a nice 3d viz of the result.
Not on Android Chrome alas.
Is WebGL on Android Chrome at all? I have barely ever touched an Android phone. I imagine Google is working hard to port it to Android if it's not.
(comment deleted)
I spent a good minute reformatting the formula in my head, trying to figure out the significance of the equation, before I went, "oh, duh, it's the fact that it's rendering a formula in 3D within a Google result!"
One of the differentiating factors of Wolfram|Alpha: Gone.

Google's doesn't require a 250mb plugin to become interactive (just a webgl capable browser...). And it seems to be about 8 times faster than W|A...

W|A still does a lot of things other sites don't do, but it tends to be unusably slow, and inconsistent (running same query twice in a row will sometimes not give all of the same results).

I figure the end is probably closer than one might expect for W|A. They don't seem to be moving quick enough to stay infront of the curve forever. Also, the site is becoming littered with obtrusive ads, and that's a pretty negative experience. (I also hear Wolfram's company may be struggling.)

This should have been praise for Google's new tool, but it turned into a rant on Wolfram|Alpha... whoops.

Of course, since this is a Google result, it can just fail and say "3D charts require a web browser and system that support WebGL." Which is super useful to me.
I can't tell if you're being sarcastic about it being super useful. If you are, it seems easier still to download Chrome to do a 3d render then it is to buy WA pro and download an apparently enormous plugin to do the same render
He might mean that this computer doesn't have a card/driver combo capable of running WebGL. This is actually fairly common from test Mozilla has carried out. Successfull WebGL context creation on Windows were bellow 70% (can't find the actual page with the real numbers right now).

But Chrome now supports software rendering through swiftshaders which should help those people.

I for one agree with you, even with the issue of webgl capable hardware is much better than having to deal with huge plugins. (I'm biased, I use WebGL for my current work).

I simply didn't understand. His post doesn't say anything about WebGL not being supported by his GPU specifically, though obviously that's a problem. I guess I don't know what he wants? Yes, if your browser and system isn't supported... what do you want? Do we expect Google to have to support every user, for every nonessential, nonrevenue-producing feature?

Maybe I'm just missing something, but it seems I was punished for asking.

You were making unfounded assumptions (that enabling WebGL would be as trivial as installing Chrome) and at the same time ignored the fact that you get highly useful results from WA without any plugins or bleeding-edge tech. Having good fallbacks is important.
Yikes. A lot of 'you' accusations there.

>You were making unfounded assumptions (that enabling WebGL would be as trivial as installing Chrome)

No, I made the point that installing Chrome is trivial and the message explicitly states that your system simply might not be capable. If that's the case, what is Google supposed to do? Just render an empty grid and make a "whah-wha" noise?

>at the same time ignored the fact that you get highly useful results from WA without any plugins or bleeding-edge tech

No I didn't. At all. I am not saying this is an "answer" or a competitor to WolframAlpha. This is a trivial feature that was thrown in. It's non-essential and I bet you'll never ever see Google pushing a browser plugin on any of their sites save for some existing exceptions (Talk). As you've noted, there are tons of places to go besides Google for a 3d graph.

>Having good fallbacks is important.

When it doesn't require confusing your user, or compromising standards to ask them to install a gargantuan plugin.

edit: If the whole point of this was merely to clean up the error message or simply suppress it on unsupported browsers, then sure, but like I said, I genuinely just didn't understand the sarcasm, my apologies.

"No I didn't. At all. "

Yes you did:

"it seems easier still to download Chrome to do a 3d render then it is to buy WA pro "

That's why you were corrected. Stop trying to defend this forever and move on.

>That's why you were corrected. Stop trying to defend this forever and move on.

Oh for god's sake, give it a rest. I thought (and have clarified this twice now) that it was simply a remark about (in)capable browsers. I clarified (also twice) that if it's about the error message on incapable computers, that it could be better written and I apologized for my confusion.

For many people getting that error, simply installing Chrome is a viable solution.

>If the whole point of this was merely to clean up the error message or simply suppress it on unsupported browsers, then sure, but like I said, I genuinely just didn't understand the sarcasm, my apologies.

That's why I clarified and apologized (hint, that's the post you just replied to). Stop trying to attack me forever (for what I even acknowledged at the time was probably a misunderstanding) and move on.

Well, if I was Google, I probably wouldn't make an error message the top search result.

I am running Chrome on a Thinkpad, so it's not like I can actually do anything to fix the error.

If your 3D stack is working (ie not stuck with an abandoned ATI/AMD card), try upgrading to Firefox. Chromium fails for me too.
You basically equated the hassle of getting WebGL working if someone is on a browser without it to the hassle of getting Wolfram Alpha Pro.

What you are missing is that if you don't have Wolfram Alpha Pro, the regular plain old Wolfram Alpha still plots it for you. It gives you a 3D view and a contour map, and throws in a couple series expansion and the derivative. You don't get the fancy interactivity without Pro, but you get to see what the thing is.

At Google, on the other hand, you either get the full 3D interactive experience, or you get "3D charts require a web browser and system that support WebGL".

This is actually fairly common from test Mozilla has carried out. Successfull WebGL context creation on Windows were bellow 70% (can't find the actual page with the real numbers right now).

[Disclaimer: I know absolutely nothing about the internals of WebGL, and I don't mean this to come off as a criticism.]

Does anyone know why it's so hard to get WebGL working on a lot of systems?

I'm just sort of surprised; I remember doing a lot of OpenGL projects many years ago (back when I still used Windows), and I never seemed to have any problems getting them running pretty much anywhere, regardless of graphics card or whatever. Even crappy systems with integrated graphics always seemed to do just fine.

Is there something about WebGL that makes it more difficult to support a lot of systems, or is it just that it's relatively new and nobody's gotten to adding support yet?

Ironically, I was using Chrome and got that error. Then I tried Firefox and it worked.
its because in chrome webgl is currently disabled by default. you can turn it on on about:flgs IIRC. or try any other release channel. It worked for me in canary.
Competition is good for both parties. Wolfram Alpha challenged Google to rethink what people search for to some degree, and Google's rigored performance should challenge Wolfram Alpha to become more performance aware and prevent them from taking too many features "premium".

And in the end, it is a win / win for users. I am always happy when the insanely smart people at Google have hard things to implement like this than how to integrate the posts of my friends on Google+ into my search results for a unicode table.

It's only a win-win if it doesn't do too much damage to wolfram alpha, although I guess if Google pushes too hard it will drive Wolfram to try to integrate more and more into Apple's ecosystem.
Wolfram Alpha also seems to bail out when a mathematical expression exceeds a certain complexity, which makes it fairly useless for the only thing I want to use it for - evaluating hairy integrals and other long expressions. Or worse, it just "interprets" it as a part of my original expression and calculates that, as if I just typed out the rest of it because I enjoy typing random symbols. It seems like such a waste to fire up Mathematica every time but I haven't found any comparable online tools.

I think W|A could have been a great tool for this kind of thing but instead it tried to cover every subject instead of doing one thing well.

If you just type in the expression as Mathematica code, doesn't Wolfram Alpha evaluate it just as Mathematica would?
Yes, but it times out rather quickly. Mathematica is much more powerful.

(For those interested: the relevant syntax is

    Integrate[x^2, x]
or

    Integrate[x^2, {x, 0, 1}]
You can find more Mathematica at http://reference.wolfram.com/mathematica/guide/Mathematica.h...; searching the Mathematica docs is often easier than figuring out which textual query Wolfram|Alpha understands.)
(comment deleted)
The nail in the coffin for me on W|A was requiring a login in order to copy plain text results. (Even though the same data is copyable in the DOM, they actually go out of their way to obscure it!)

I don't think people understand how noxious this registration-obession is, especially when you need utilize it to access basic functionality.

I don't really go to W|A anymore unless there's something specifically math or statistics related that I'm looking for. That action killed any kind of casual use for me.

If anyone is interested about WebGL and the latest news surrounding it, I run a blog at http://www.webgl.com If you think it sucks, let me know.
This looks... erm ... neat. A "sophomore OpenGL term project" kind of neat. Wolfram on the other hand does the graphs right [0], which hardly surprising given their 20 years of head start.

On a more general note, this reminds me of old Microsoft's tactics. Google should really stick to the search, but instead they throw together something that mimics competitor's feature. Something that looks more featureful and which is free, but upon closer inspection is effectively a half-ass effort, because it's an entirely different domain that's not their specialty.

[0] http://www.wolframalpha.com/input/?i=sqrt%28x*x%2By*y%29%2B3...

I dunno. It's pretty, and it's good enough if you just want to gauge the overall shape of the curve, which is all I need most of the time.
My bet is that this is supported by Google as a "here's a neat hack" feature, not as a "this is a vital feature in our ongoing to-the-death competition with Wolfram Alpha".
[0] looks identical over the same ranges of x,y,z. http://goo.gl/pTrLh

Who cares if it's trivial? It's functional, fast, convenient and doesn't require a bunch of cruft. Kinda damages your quasi-rant to find out that you simply... didn't compare the graphs over the same interval. I don't know why every small feature that Google adds is either apparently out of fear of someone who's hardly a competitor or is proof that Google is the next Microsoft (which is a useless statement anyway).

This all just reminds me how truly sad HN's markup is. I can't even escape the multiplication in the query for Google to get it to render properly (I replaced it with a Goo.gl link).

(comment deleted)
I think you can escape the asterisk by indenting the line with two spaces:

  text with * signs that doesn't get italicized *
Well, if i want a quick inspection this wins because i can rotate it without having to download other stuff.
What's so wrong about this representation? looks fine to me.
"google should focus on search"

i keep hearing this. what makes you think they aren't? Google has a huge staff and equally huge revenues, i'm sure that if they thought search quality could be improved by throwing more engineers at it, that's what they would do.

as long as they employ a lot of engineers, why not have some them working on cool things like this? i see this more as a demonstration of webgl and non-flash tech than an attack on W|A

Yes. The definition of "search" seems to be changing.
Exactly, just because google is adding a bunch of cool free non obtrusive features doesn't mean that they are stifling innovation in their main field. Google is a large company with countless divisions, it isn't just one engineer who can only work on one project at a time or anything.
So if a user enters the following search query: Sqrt(xx+yy)+3cos(sqrt(xx+y*y))+5 from -20 to 20

And gets a graph of the equation as the top result, are you claiming that this is a poor search experience? Are you claiming that this is a bad result?

If not, how is this feature not an improvement to search? How is this not "sticking to search"?

Note - I was not involved in any way with this feature, or with search quality in general

Interestingly, in Chrome 18, it puts about 2% load on my CPU, and 80% load on my GPU.
It's webgl so it uses your graphic processor.
Hmm. No perspective.
any query that still only has a single answer I will still use wolfram (I use them all via the DDG bangs)
Nice. Also interesting is this: "About 274,000 results (0.15 seconds)".
Google is becoming more like Wolfram. Semantic search engine all the way to go.
Aw. Whatever this query does, it doesn't do it in Mobile Safari :(
si(x^2exp(xy*sinh(y^3+x^2))) doesn't work
Word of caution: I left this open in a Safari tab without thinking about it, and soon found that my Mac's UI was hanging for ~20 seconds every minute or two. Took me half an hour to figure out what was going on.
How does Google able to do this really fast? I mean even faster than a graphic calculator?
(comment deleted)
(comment deleted)
Sorry. I don't know who down-voted you for what might be an innocent question.

Google is calculating the set of values satisfying these equations on servers which are pretty fast - quite a bit faster than graph calculators.

The math and rendering is done client-side so it's your computer that is faster than a graphic calculator.

Relevant xkcd: http://xkcd.com/768/

Oh man, change it to "sqrt(​x * ​x + ​y * ​y * ​y)", and it looks like either boobs or ass, I'm not sure which!