WebGL Demo
Andor Salga | 9 November, 2009 | 14:49
After talking to Dave, I realized I had the WebGL port almost done, demos working, but without a demo on the Web! Oops. So, for anyone running a Firefox nightly, check out this demo!
« WebGL VS. Canvas 3D
OSX + Minefield + WebGL + Points = :( »
Archives |
C3DL Development News |
Recent Comments |
|---|---|---|
|
|
[...] by giles on Nov.09, 2009, under Links Wow! I
WebGL around the net, 9 Nov 2009 – part 2 - Learning WebGL | 9 November, 2009 | 15:37[...] by giles on Nov.09, 2009, under Links Wow! I mentioned earlier today that the C3DL team were porting their stuff over to WebGL, but when I posted they hadn’t actually made anything live. They’ve fixed that, and the result’s fantastic: check it out here! [...]
It doesn't work in WebKit as you are using a
Oliver | 9 November, 2009 | 17:49It doesn’t work in WebKit as you are using a firefox only feature: the use of keywords as property names. Firefox is the only browser that allows const (and the other keywords) to be used as property names, so your use of const as a property name needlessly breaks everyone else.
You could get around this by doing ["const"] rather than .const, but that seems somewhat icky.
Could you make it work in WebKit nightlies too? Right
smfr | 9 November, 2009 | 21:52Could you make it work in WebKit nightlies too? Right now it hits: SyntaxError: Parse error on orbiter.js line 110.
We wanted to use const but couldn't use them in
Andor Salga | 12 November, 2009 | 4:11We wanted to use const but couldn’t use them in conjunction with namespaces. We also wanted to ensure users know the variables we had won’t be changed by the library so we have things like c3dl.const.TOLERANCE. However, because this is an issue, we’ll probably just remove our use of const altogether.