The following is an account of my embarrassing ignorance on color spaces, gamma correction, and pretty-much everything to do with how a computer outputs things to a monitor. Recently I’ve been kicking around an idea for probably the greatest retro-video-game game of all time. I’m 40% sure it will be amazing and spawn a whole […]
Category: 3D
WebGL2 Voxels
I made a minecraft-y voxel world in WebGL2 a while back… just realised it’s not on the blog. Now it is! The code is on GitHub, and my favourite thing about it: pure JavaScript – no dot files, no pacakge.json, no build files, no… nothin’. Just double click index.html (and/or view-source) – like the old […]
Me n’ Carl Sagan hand-rolling some WebGL2
Imagine, if you may, an apple sitting happily on your desk. One day, and in a manner causing much confusion to our apple friend – you wrote some weird WebGL2 thing from scratch. From the apple’s perspective, it might look something like this. However, from a source code’s point of view it would look more […]
Building geometry with fraggles
My last experiment got out of hand and now the cubes have become self aware. See for yourself! The earlier “lil cube” example worked by creating individual box meshes and adding them to the scene. This is not a very scalable approach if we want a lot of boxes! Creating a single chunk of 16 […]
Lil’ cube-y thing
Just adding something before the new year. Gotta get those posting stats up. Lil’ cube-t thing! Made with three.js, quick-sticks. Source of course.
Explostyx: explody 3D french fries
Some more crazy 3D action in the form of Explostyx: explody 3D french fries thing. It’s what happens when you make one simple thing and then just repeat it a whole stack of times. Like all good pop art. It’s using Three.js, and 100-odd lines of ES2015 – so it’s a pretty simple example if […]
Into the third dimension
My loyal long-term readers (by whom I mean Anton) would know my technological aesthetic bent strongly favour the 1980s. Seeing as the third dimension was not discovered until 1992, I have thus far had little inclination to bother with it. But things have changed: now that the 90s are suitably retro I feel it’s finally […]
Three.js: looking away from .lookAt
Have a hankering to look in the opposite direction of the vector you get from Three.js’s .lookAt function? You need .lookAwayFrom! Dunno if there’s an easier way, but the idea is find the vector between the target you’d normally “look at” and you, then add the resultant to your current position, and look at that […]