My favorites | Sign in
o3d
Project Home Downloads Wiki Issues Source
Search
for
Samples  
Updated May 12, 2010 by o3d.ad...@gmail.com

These examples use the WebGL implementation of O3D. (Be sure to check the instructions for setting browser flags to enable WebGL.)


Hello, Cube Displays a spinning red cube. This program now uses a GLSL shader.


Hello, Cube-Textures Displays a spinning textured cube. This program now uses a GLSL shader.


Image Primitives Creates simple shapes using the primitives utility library. The shader for this example is generated by the effects.js utility library.


Scene Viewer Loads a scene and provides user controls for dragging, zooming, and resizing the window.


3D Pool See the Code Walkthrough for more information on this example.


Shadow Mapping Uses two rendering passes to calculate lighting and render shadows for the scene.

Comment by jeff.dav...@yahoo.com, May 17, 2010

I can't run any of these demos. I'm using the daily build of Chrome 64-bit for Linux that I downloaded from: http://build.chromium.org/buildbot/snapshots/chromium-rel-linux-64/47473/ I start the browser with cd /home/jeff/chrome-linux ./chrome --enable-webgl The browser loads and when I get to this page (http://code.google.com/p/o3d/wiki/Samples) and select any of the samples, Chrome tells me the page is unresponsive and lets me Kill Page.. Anyone else with this trouble?

By the way, ditching the plugin in favor of javascript seems like a very good idea. Much easier to keep the clients up to date that way.

- Jeff

Comment by jeff.dav...@yahoo.com, May 17, 2010

FYI: I just tried this page using Mozilla 3.7a5 and all samples work like a charm. Looks like a Chrome specific issue.

Comment by oracle.p...@gmail.com, May 18, 2010

@Jeff: try adding the --in-process-webgl option - at least it works for me with the openSUSE x86-64 build of Chromium.

Comment by quinte...@gmail.com, May 18, 2010

It tells me: GraphicsContext3D: error opening libGL.so.1: libGL.so.1: cannot open shared object file: Permission denied No idea what to do about it (the lib itself is rx by all)

Comment by quinte...@gmail.com, May 18, 2010

Ok, was not using a new enough version, now it fails with: WebGraphicsContext3DDefaultImpl: glXChooseFBConfig failed Which is probably due to the radeon drivers not being good enough yet. Pity.

Comment by jeff.dav...@yahoo.com, May 19, 2010

@oracle.picasa Awesome! I added your suggested argument to my launch command and it works like a charm! Chrome gives me a little warning about an unsupported command line flag, but the samples run great. Now I have two browsers for testing :)

Comment by rahu...@gmail.com, Jun 1, 2010

Use chrome nightly build or Firefox3.7. Follow http://learningwebgl.com/blog/?p=11

Comment by salvator...@gmail.com, Jun 4, 2010

It doesn't work even after enabling WebGl?

Comment by iceknigh...@gmail.com, Jul 4, 2010

For some reason, none of these examples are showing any textures when running them.

I'm using the last nightly build of Firefox with WebGL activated and everything else seems to be working correctly (so I can see a spinning cube, only it's completely white instead of showing the Google logo in its sides).

Comment by mdclay...@gmail.com, Aug 8, 2010

No demos working on just-now install of Firefox 4.0 Beta 2. No errors, but just get a small box at top left where it only shows a small part of rendered object. Most interactive view controls look to do nothing. Not a good start.

Comment by lvwar...@gmail.com, Sep 12, 2010

Demos broken on:

Mozilla/5.0 (Windows NT 5.1; rv:2.0b5) Gecko/20100101 Firefox/4.0b5

Bad.

Comment by rfritz.n...@gmail.com, Sep 15, 2010

Having problems on:

Mozilla/5.0 (Macintosh; Intel Mac OS X 10.5; rv:2.0b6) Gecko/20100101 Firefox/4.0b6

all the examples come down as really strange damaged triangular forms.

Comment by besto...@gmail.com, Oct 2, 2010

Chromium 6.0.472.62~r59676-1 on debian, stock radeon driver on an r630. I'm at roughly 1 fps. Any hint on how to do better than this ?

Comment by jean-mar...@gtempaccount.com, Nov 4, 2010

Cubes demo OK but other examples broken as for rfr...@lbl.gov, under OS X Leopard and Firefox 4.0b6

Comment by karv...@yahoo.co.uk, Dec 2, 2010

Shadow mapping and pool don't work in Firefox with shader validator on.


Sign in to add a comment
Powered by Google Project Hosting