Monday, January 19th, 2009

C3DL: Canvas 3D JavaScript Library

Category: Canvas

C3DL has a new release that “includes the following major features: – Collada Support: The ability to load collada models (of the triangle, polylist or polygon variety) along with their textures. Models with multiple nodes are supported and their names and relative transformation will all be imported.”

What is C3DL?

The Canvas 3D JS Libary (C3DL) is a javascript library that will make it easier to write 3D applications using canvas 3d. It will provide a set of math, scene, and 3d object classes to make the canvas more accessible for developers that want to develop 3D content in browser but do not want to have to deal in depth with the 3D math needed to make it work

You get to write code such as:


  1. // Lights? Action!
  2. var lights = new LightManager(scn.getGL());
  3. lights.setPosition(0,new Array(0,0,-10,1));
  4. lights.setAmbient(0, new Array(1.0,0.3,0.3,1.0));
  5. lights.setDiffuse(0, new Array(1,1,1,1));
  6. lights.setSpecular(0,new Array(1,1,1,1));
  7. lights.enable(0,true);
  9. // Objects
  10. SkySphere_obj = new Collada();         
  11. SkySphere_obj.init("SkySphere.dae");
  12. SkySphere_objCB = SkySphere_obj;
  13. scn.addObjectToScene(SkySphere_obj);
  14. SkySphere_obj.scale(new Array(1.6,1.6,1.6))

Canvas 3D. Big in 2009.

Posted by Dion Almaer at 8:01 am

3.6 rating from 23 votes


Comments feed TrackBack URI

I have the Canvas 3D addon, but this stuff just isn’t moving…

Comment by Vordreller — January 19, 2009

i stopped reading at “download the”

Comment by ilazarte — January 19, 2009

As long has these type of library require the user to download an add-on for his browser, I doubt they’ll catch up… especially in this case, where it’s unnecessary if you go through the maths required to make it work in straight JS.

Comment by Junado — January 19, 2009

Canvas 3D is only available as a plugin for Firefox…
Is there any info when it will be a native part of Webkit and Gecko?

Comment by AndiSkater — January 19, 2009

Agree with above comments – “download” === “no thanks”

Comment by spyke — January 19, 2009

No Thanks.

Comment by leptons — January 19, 2009

Well, I understand, that Canvas 3D won’t be the next big thing until at least one of the modern browser engines (Webkit, Gecko, Presto) supports it natively, but I don’t understand the general refusal to try out the future possibilities in form of a plugin.

Comment by AndiSkater — January 19, 2009

Because if you’re going to use a plugin then there are a bazillion actually world-class 3D engines available, notably in flash.

Comment by nataxia — January 20, 2009

Leave a comment

You must be logged in to post a comment.