« Because it's Friday: Copyright vs creativity | Main | Marketing optimization with LityxIQ »

April 02, 2012

Comments

Feed You can follow this conversation by subscribing to the comment feed for this post.

They're using WebGL for the rendering, at least in my browser. I've recently added WebGL output to the rgl package in R, and am finding that it's not working in a lot of browsers. Does Google's display work in older browsers?

Click on my name for a sample from R.

That's very cool Duncan - thanks for letting us know about rgl. On my MacOS X Lion MBPro, the image is dynamic in an up-to-date version of Firefox, but not in Safari or Chrome (my usual browser). Any idea how to enable it in those browsers?

This page

http://www.khronos.org/webgl/wiki/Getting_a_WebGL_Implementation

gives some information on both Safari and Chrome. I did get it working in Safari on my Mac; I forget what I did though. I haven't tried Chrome.

I just tried the Google page in IE 9, and didn't get the nice display, just message saying to use a browser that supports WebGL.

Following up on the rgl thread, how about

library(emdbook)
curve3d(sqrt(x^2+y^2)+3*cos(sqrt(x^2+y^2))+5,
xlim=c(-20,20),
ylim=c(-20,20),
sys3d="rgl",col="blue")

?

?

Hi Ben. I replaced the image attached to my signature with yours.

The problem with that approach is that it's not really a function you're plotting, it's a surface with fixed dimensions. If you come along later and add a point at x=30, y=30 the surface won't expand to that location. That's okay for Google, because the Google image can't be edited, but I'd like something better in rgl.

Thank you, Duncan, for that link to WebGL enabled R! (Or maybe it is rgl? Or written from rgl by writeWebGL?)

I am running Windows 7 on a PC, with Chrome browser. With Javascript enabled, I was able to view your cute green 3-D topological thingy in full WebGL rotational glory! It worked just fine with the current (stable) release of Chrome, which is 18.0.1025.142. I didn't try IE 9 yet, but I have my doubts about that.

I've tried using this WebGL (showcase) tool https://github.com/notlion/streetview-stereographic
Stereographic Street View with IE 9, without success, though it works in Chrome browser.

It's all of the above: writeWebGL is an R function in the rgl package.

I've now pushed it out to CRAN, so you can play with your own examples. Try example(writeWebGL), or make your own 3d scene and use writeWebGL to put it on a web page. Comments are welcome.

The comments to this entry are closed.

Search Revolutions Blog




Got comments or suggestions for the blog editor?
Email David Smith.
Follow revodavid on Twitter Follow David on Twitter: @revodavid
Get this blog via email with Blogtrottr