Canvas 3d JS Library

where 3D is born!
  • rss
  • What is C3DL?
  • Download
  • Tutorials
    • Tutorial #1: Installing Canvas 3D Addon
    • Tutorial #2: A Scene and a Cube
    • Tutorial #3: Update Callback
    • Tutorial #4: Models 101
  • Development News
  • Demos
    • Typing Game V2.1
    • Typing Game V3 (0.3 Release)
    • Explorer
    • Flickr - Picking
    • Ricochet
    • FSOSS Pictures
    • Puzzler
  • Resources
  • Contact
  • About

OpenGL not exactly platform independent

Andrew Smith | 30 December, 2007 | 3:08
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 :)
Comments
No Comments »
Categories
c3dl development
Comments rss Comments rss

Goodbye mozilla-build

Andrew Smith | 27 December, 2007 | 18:05
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.
Comments
3 Comments »
Categories
c3dl development
Comments rss Comments rss

No source, no deal

Andrew Smith | 26 December, 2007 | 15:39
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.
Comments
1 Comment »
Categories
c3dl development
Comments rss Comments rss

The Canvas3D blog

Andrew Smith | 23 December, 2007 | 22:06
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.
Comments
1 Comment »
Categories
c3dl development
Comments rss Comments rss
Trackback Trackback

Search

Demos

  • Explorer
  • Flickr - Picking
  • FSOSS Pictures
  • Puzzler
  • Ricochet
  • Typing Game V2.1
  • Typing Game V3 (0.3 Release)

C3DL Development News

Portable Canvas v0.2!

Portable Canvas version 0.2 is available!!

It is now a usable browser, but restricted to pages on c3dl.org only. It can display canvas elements right out of the box, and doesn’t require anything else to be on your system (not even FF3!)*. It’s only been tested on Windows XP, but in theory it should be easy [...]

Namespaces and const

As our library expands with more functions, classes and global variables, the need for namespacing increases.  I started placing code in a C3DL namespace when I wrote the matrix stack operations.  However, yesterday I was looking in the constants.js file and saw the ‘tolerance’ variable.  It’s a const variable used when comparing floats to check [...]

Tutorials

  • Tutorial #1: Installing Canvas 3D Addon
  • Tutorial #2: A Scene and a Cube
  • Tutorial #3: Update Callback
  • Tutorial #4: Models 101

Archives

C3DL Development News

Recent Comments

  • November 2008
  • October 2008
  • September 2008
  • August 2008
  • July 2008
  • June 2008
  • May 2008
  • April 2008
  • March 2008
  • February 2008
  • January 2008
  • December 2007
  • Portable Canvas v0.2!
  • Namespaces and const
  • DAE Scenegraph
  • The Matrix Stack
  • .obj to .dae
  • 0.5 Release and Other News!
  • Tracemonkey performance
  • More memory usage improvements
  • Canvas3D crashes in tracemonkey
  • Patched one hole in floating text
  • For name spaces, my... - Jeremy Giberson
  • Great! Really really... - Edson Mattos
  • Beautiful!... - Funtomas
  • Was no need to conta... - Andrew Smith
  • Andrew, have you con... - Funtomas
  • Thanks for posting t... - Andrew Smith
  • Vlad was in town and... - Cathy Leung
  • the upside down issu... - Cathy Leung
  • Got it! the addon is... - Bill Mill
  • Yes it does. The ad... - Cathy Leung



Canvas 3d JS Library

©2007- 2008 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