|
Samples
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. |
► Sign in to add a comment






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
FYI: I just tried this page using Mozilla 3.7a5 and all samples work like a charm. Looks like a Chrome specific issue.
@Jeff: try adding the --in-process-webgl option - at least it works for me with the openSUSE x86-64 build of Chromium.
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)
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.
@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 :)
Use chrome nightly build or Firefox3.7. Follow http://learningwebgl.com/blog/?p=11
It doesn't work even after enabling WebGl?
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).
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.
Demos broken on:
Mozilla/5.0 (Windows NT 5.1; rv:2.0b5) Gecko/20100101 Firefox/4.0b5
Bad.
Having problems on:
all the examples come down as really strange damaged triangular forms.
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 ?
Cubes demo OK but other examples broken as for rfr...@lbl.gov, under OS X Leopard and Firefox 4.0b6
Shadow mapping and pool don't work in Firefox with shader validator on.