Animated 3D gears

This 3D animation was rendered in BBC BASIC for SDL 2.0 (although the program is compatible with BBC BASIC for Windows if you have the WEBGLLIB library). You can run it 'live' in your browser here.

Like all the other 3D animations this was very easy to create, because it uses the standard boilerplate with very little custom code. The 3D models of the gears were from turbosquid.com ($10 for the set).

One aspect that was a little more tricky than usual was the lighting, because of wanting to highlight all the individual cogs. I ended up using six lights, which I think is more than I've used before.

If you would be interested to see the code let me know and I'll post it here.

Sign In or Register to comment.