Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a WebGL API I can read/learn from?

UPDATE: I got my O3D situation straightened out, but I have yet to settle on one of the libraries listed below. I think I will try a scatter plot in all projects and see which one handles the data easily and is easiest to program in.

I have been reading the tutorials on http://learningwebgl.com/blog/ to try and play with a new language, and WebGL fascinates me. I have also been to the Google Code page for it here: http://code.google.com/p/o3d/

That seems to be the depreciated site? I saw in the samples.zip they have you download, there is a perfect example of what I want to accomplish, but it uses

<script type="text/javascript" src="o3djs/base.js"></script>

And from what I have been learning, there is no inclusion of a base file like that (expect perhaps sylvester.js for doing calculations).

Have I got projects mixed up? Is there any place where I can view the available classes & methods in WebGL? I am trying to do a the scatter-chart.html example from here.

The method, class names, in fact how everything is done looks different from the learningwebgl.com website and those samples. The available calls & classes listed here look nothing like the WebGL calls I have seen in live demos of WebGL

Where am I going wrong?

For example, I see this element in the demo I am trying to mimic:

g_viewInfo = o3djs.rendergraph.createBasicView(
  g_pack,
  g_client.root,
  g_client.renderGraphRoot,
  clearColor);

But there is no rendergraph object/method in WebGL and no indication of what it was renamed too. Should I abandon even looking at the old o3d samples and try to piece together a chart reading the API or can I find a deeper explanation of the conversion from o3d into WebGL with this API doc linked below?

like image 605
Nathan Avatar asked Aug 20 '10 04:08

Nathan


2 Answers

WebGL is still in development, APIs are very unstable, you can take a look here:

  • The Official WebGL Wiki
  • The WebGL Specs

Answering your second question, O3D has no relation with WebGL, they're completely separate projects. The only relation between them is that O3D now uses WebGL, something like a game engine or scenegraph written using OpenGL.

like image 151
Dr. Snoopy Avatar answered Sep 22 '22 20:09

Dr. Snoopy


I'd take a look at GLGE, SpiderGL and CopperLicht

like image 22
Scott Evernden Avatar answered Sep 19 '22 20:09

Scott Evernden