Canvas 3d JS Library

WebGL made easy!
  • rss
  • What is C3DL?
  • Download
  • Tutorials
    • Tutorial #1: WebGL Browsers
    • Tutorial #2: A simple scene
    • Tutorial #3: Callback
    • Tutorial #4: Models
    • Tutorial #5: Light effects
    • Tutorial #6: Picking
    • Tutorial #7: Materials
    • Tutorial #8: Particle Systems
    • Tutorial #9: Camera Basics
    • Tutorial #10: Advanced FreeCamera
    • Tutorial #11: OrbitCamera
    • Tutorial #12: Advanced Camera Functions
  • Development News
  • Documentation
  • Community
  • Resources
  • Contact
  • About
With platform defined as the combination of operating system, video chip, and drivers OpenGL is far from being platform independent. From opengl.org:
One of the greatest strengths of OpenGL is that it was designed to be readily extensible to accomodate new hardware innovations. Using the OpenGL extension mechanism, hardware developers can differentiate their products and incorporate new features by developing [...]
I didn’t copy-paste the whole thing because this really says it all. My understanding/feeling at this point is that OpenGL is both:
  1. a standard (with several versions) and chip makers do or do not claim to implement it, and
  2. a framework, meaning a chip maker can use existing interfaces and infrastructure for making/promoting/delivering his own features
The 2 is the problem, as those features are not intended to be standardised (though sometimes they are, in a new version of the standard). So when a programmer writes something that uses an extension present on his chip, later porting that code to work on all chips is a seriously nasty business. Which of course is what I’m doing now. Oh well, if it were easy it wouldn’t be worth doing :) B. Smedberg did a huge favour to all mozilla developers with his MozillaBuildSetup-1.1.exe, which made the development setup for building Mozilla trees so much easier compared to cygwin. But now, with no disrespect, I have to say I’m sick to death of that package. At first it was the home/end/delete keys not working, and .inputrc files ignored – well whatever; then it would fail to refresh the terminal window properly, so some scraps of the old text would be left over – fine; but now the terminal appears to freeze after outputing a certain ammount of text (while make apparently keeps working in the background). So I made my own. Here are the ingredients:
  • MSYS-1.0.10.exe (from MSYS)
  • binutils-2.15.91-20040904-1.tar.gz (from MSYS)
  • gcc-core-3.4.2-20040916-1.tar.gz (from MSYS)
  • gcc-g++-3.4.2-20040916-1.tar.gz (from MSYS)
  • libiconv-1.9.1.bin.woe32.zip (from gtk-win32)
  • python-2.5.1.msi (official Python installer)
  • zip.exe (from info-zip)
  • moztools (from MozillaBuildSetup-1.1.exe)
After installing/extracting those, I edited C:\msys\1.0\msys.bat and inserted this at the top: call "C:\Program Files\Microsoft Visual Studio 8\VC\bin\vcvars32.bat" set MOZ_TOOLS=C:\msys\1.0\moztools PATH=%PATH%:/c/Python25:/c/msys/1.0/moztools/bin And now I have a fully working mozilla build environment, without the quircks and the bugs from Smedberg’s old package. Sadly this setup cannot be zipped and put online, cause I didn’t expect to be successful in making it. But maybe next time I do it I’ll make MozillaBuildSetup-1.2.exe for the world to use. Erm, hrm.. right. How am I supposed to debug canvas3d without the source code for canvas3d? Here are the contents of canvas3d.xpi: ls -R .: chrome/ chrome.manifest components/ install.rdf platform/ ./chrome: canvas3d.jar ./components: canvas3d.xpt ./platform: Darwin/ Linux/ WINNT/ ./platform/Darwin: components/ ./platform/Darwin/components: libcanvas3d.dylib* ./platform/Linux: components/ ./platform/Linux/components: libcanvas3d.so* ./platform/WINNT: components/ ./platform/WINNT/components: canvas3d.dll Unless an .xpt file is extractable like an .xpi, the extension only contains binaries: canvas3d.xpt, libcanvas3d.dylib, libcanvas3d.so, and canvas3d.dll Maybe the source code is in in lxr. I guess I should read that. This is where we will try and keep each other up to date about what we do. Maybe it will be interesting to someone outside the project, and maybe not, entertaining random folk is not the point anyway. We are Mark Paruzel and Andrew Smith, working under the supervision of Cathy Leung on the Canvas3D project started by Vladimir Vukicevic.

Videos

Demos

  • Asteroids-3D
  • RTS Prototype
  • Particle Systems Demo
  • Cross-Browser Orbiter
  • Mocap Demo With Spheres
  • Google Maps-3D

C3DL Development News

A spec change that keeps coming back to haunt me

At some point, the way firefox handles keyboard events changed. I’m not sure exactly when it happened, all I know is that it broke how I was dealing with keyboard interaction on almost every demo I’ve written (for example,the mocap demo and MotionView). When I wrote the demos, the keydown event would be fired once, [...]

Release 2.2

The 2.2 Release of the Canvas 3D Library includes a number of new features, updates to old features and fixes for several bugs along with the requisite changes to meet the evolving WebGL spec. Some of the things included (in no particular order) are: Better picking code. The ability to swap textures as a scene [...]

Tutorials

  • Tutorial #1: WebGL Browsers
  • Tutorial #2: A simple scene
  • Tutorial #3: Callback
  • Tutorial #4: Models
  • Tutorial #5: Light effects
  • Tutorial #6: Picking
  • Tutorial #7: Materials
  • Tutorial #8: Particle Systems
  • Tutorial #9: Camera Basics
    • Tutorial9-YawPitchRoll
  • Tutorial #10: Advanced FreeCamera
  • Tutorial #11: OrbitCamera
  • Tutorial #12: Advanced Camera Functions

Documentation

Archives

Archives

C3DL Development News

Recent Comments

  • June 2011
  • March 2011
  • October 2010
  • July 2010
  • April 2010
  • March 2010
  • February 2010
  • January 2010
  • December 2009
  • November 2009
  • October 2009
  • September 2009
  • July 2009
  • June 2009
  • May 2009
  • April 2009
  • March 2009
  • February 2009
  • January 2009
  • December 2008
  • November 2008
  • October 2008
  • September 2008
  • August 2008
  • July 2008
  • June 2008
  • May 2008
  • April 2008
  • March 2008
  • February 2008
  • January 2008
  • December 2007
  • A spec change that keeps coming back to haunt me
  • Release 2.2
  • 2.1 Release and things to come
  • Level Up! An Open Web Game Jam
  • Site moved!
  • SceneCreator0.3
  • WWW2010 in Raleigh
  • Motionview
  • On the train to Mountainview
  • C3DL 2.0-WebGL and beyond
  • That depends on what... - peter
  • This application is ... - Haisens
  • I think that example... - peter
  • The above links are ... - Atash
  • Hi there, just wante... - Patrick H. Lauke
  • Firefox 4 was releas... - Cathy Leung
  • In order to access l... - peter
  • I am not able to dis... - preksha
  • "JavaScript can’t di... - Joe Hocking
  • I should point out t... - peter



Canvas 3d JS Library

©2007- 2010 Canvas 3d JS Library

Disclaimer: This website is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 2.5 Canada License.
The Canvas 3d JS Library and Demos found on this website are licenced under the MIT License

Creative Commons License