Thursday, September 30, 2010

How to get WebGL-enabled browser

Learning WebGL blog has nice instructions how to enable WebGL in most popular web browsers.

Instructions for Google Chrome on Windows

Get the Chorme nightly build and download chrome-win32.zip

Execute Chrome with the following command:
chrome.exe --enable-webgl

Command line is not necessary if a shortcut with the command parameter (--enable-webgl) is created for running the Chrome.


Tuesday, September 14, 2010

Exploring with GLGE canvas textures

During the last couple of days I have been exploring with recently announced GLGE canvas texture support. Here are a couple of experiments:


On both demos the camera can be moved towards or away from the cube with mouse wheel. On the latter demo you can turn the cube with arrow keys. Please turn right first to avoid a weird bug.


YouTube video is available here.

Saturday, September 11, 2010

Having fun with physics - 3D minigolf



During my summer holidays I happened to hear that JigLibFlash, a 3d physics engine for Flash, had been ported to JavaScript. So when I get back to work my hands were itching to get to code some demos with it.

After a few weeks of coding I am happy enough to present you WebGL Minigolf: http://www.eucfutsal2011.com/webgl/minigolf/index.html The game is fully playable with 9 different holes.

Controls:
Space: Hold down to shoot
Left and Right arrows: Aim
Up and Down arrows: Zoom in and out
Left mouse button + mouse: Move camera around

The physics engine is still under development and there are not even a pre-release available yet, but with a little debugging I was able to get the current version working acceptably.

YouTube video is available here.