PDA

View Full Version : blocking renderings



clcks
04-06-2010, 11:06 PM
Hi guys, I'm drawing a cube on the stage and I'm getting a really low quality rendering. I'm trying to follow this tutorial as closely as possible: https://developer.mozilla.org/en/WebGL/ ... sing_WebGL (https://developer.mozilla.org/en/WebGL/Creating_3D_objects_using_WebGL) and I can't seem to figure out what is causing my cube to render so jaggedly. Here's a link to my project: http://civiliansoftware.com/webglexperiments/cube/

The main differences between my project and the tutorial are the separation of code out into files and the animation.

giles
04-07-2010, 06:39 AM
You can fix the problem by putting explicit width and height tags in the canvas element.

Odd, though -- you'd think that it shouldn't matter whether the dimensions are in CSS or in the element itself.

clcks
04-07-2010, 11:24 AM
Ahhhh, great! Thanks. It was late last night and I had given up. I never would have found that.