Patreon Peeks 36: Open Roads and Drivers! (Patreon)
Content
Hello! Now that this latest What I Love video and arrangement are done, I'd really like to break down more about them, there's a lot to talk about! Let's start with one of the scenes I set up for that What I Love video, about Mario Kart and its Doppler effect. You can watch it again here: https://youtu.be/lz5yiVBtPvs
In the latter half of the video, I set up a scene in Blender with a little racetrack, so I could demonstrate how karts behave in splitscreen multiplayer with respect to the Doppler effect. In keeping with wanting to make the demonstrations in this video feel tactile as opposed to abstract, I made it all look like lathed wooden toys! Here's a layout of the whole room, with two tables across which the racetrack I needed was laid.

As you can see, there are plenty of wooden cubes, trees, bushes, and mountains that form a rudimentary but tangible scene. When I created the racetrack roads themselves, I needed to create something that could extend as long as I needed in any direction or along any track design I needed, so I had to use modifiers to get a piece of track to operate that way in Blender.

This chunk is all there really is to the road. Then there's a Mirror modifier to mirror it along the axis of the yellow stripes, another Mirror modifier to mirror both those chunks along the asphalt edge of the road (this makes one complete cycle of the red-white stripe pattern), and an Array modifier to duplicate that however many times I need in the horizontal direction, to create an indefinite amount of road!
One last modifier comes after that, the Curve modifier, which bends the shape along the spline of a curve object. For the path, I created a Bezier curve, meaning each vertex to the curve has handles on it that determine how much influence that vertex has on the smoothness of the curve. It's common to see them in vector art programs, but here it's in 3 dimensions.

Here you can see I've edited the height of one Bezier handle, and the whole road and the road beside it respond accordingly. And the karts drive on it correctly, thanks to their Follow Path constraint! That part never ceased to amaze me while working on this video.
I'll go over the karts more specifically in a later article, but I will mention another part of creating this animation system that made everything so much easier. It's called an animation driver, which means Blender basically allows you to assign any variable to govern the value of another variable. You can graph the output of the driver any way you want, to create relationships between editing one part and another.

Here I've highlighted the wheels on this kart, and you can see their Y rotation is colored purple. This means it has an animation driver attached: namely, the kart's offset on the Follow Path constraint. So as it moves further along the path, the wheels respond by rotating automatically. This means I don't have to create keyframes for the wheels and hope that they come out looking like they're spinning at the right speed; just by driving this Y rotation with the Follow Path variable, Blender does it all accurately and automatically. I'll definitely be employing this more when next I need something animated in 3D.
Animation in 3D is essentially creating a working toy, and then recording very intricately planned play with that toy. Here that sentiment is amplified by literally modeling toys, but I like that they turned out just as fun to animate as they look by themselves.