One of the major goals of this project is to see if we can furnish a space station. That is, we want to load in some models and arrange them around the level in ways that make sense.
My first thought is to build some crude models, just to prove that my idea is sound. I don’t want to stop programming so I can re-learn 3D modeling. I haven’t done any serious modeling since the turn of the century, and all the technology has changed since then. So I figure I’ll just make a few basic cubes to represent the various objects in terms of size.
That wasn’t a good idea. It just didn’t give me the sense of whether or not the system is working. I could see it was probably working in theory, but that wasn’t a very satisfying way to conclude this exercise. I don’t have any screenshots of this experiment, which is fine since the screenshots would be roughly useless.
So let’s skip that misadventure and jump ahead to the point where I finally open up Blender and decide to make some models.
You might remember that I nearly lost my mind trying to learn Blender fourteen years ago. I revisited it a few years ago and found it improved, but still maddening to learn. My “workflow” would go something like this:
- I want to select an object, so I click on it. But the left/right mouse buttons are reversed compared to literally every other program ever made, so instead of selecting, I move something I didn’t want to move.
- In trying to un-do that move, I manage to open up a mysterious and unwanted context menu.
- In trying to close the unwanted menu, I accidentally select one of the mysterious operations it offers.
- Nothing seems to happen? So then I try to select the object AGAIN, but this time I remember to correctly use the wrong mouse button.
- That menu thing I unwittingly selected a second ago now goes into action, performing an unknown operation on the object.
- I hit Ctrl-Z to undo, but then an object I created a while ago will vanish.
- I hit Alt-E, which in all other programs would open the Edit menu, but instead it begins another unknown operation. Maybe an object is being somehow changed as I move the mouse or whatever. I hit escape, but that doesn’t seem to let me out of this operation. So I hit delete, and now another object vanishes from my scene.
- After spending twenty minutes painstakingly building these objects, this chained attack of trick inputs has obliterated half my work. I lose my mind and declare vendetta on the developers forever.
To be clear, this isn’t exactly how it worked. I can’t give you the exact buttons I pushed or what crazy things happened as a result, because I often didn’t understand what was happening or I did wrong. But this is what it felt like: A long chain of compounding mishaps because nothing worked the way I expected.
The New Blender
This is no longer a problem in version 2.8 and beyond. The change in usability is so drastic that I’m surprised the Blender community didn’t revolt. If I spent years training my muscle memory to do everything backwards and sideways, then I’d lose my mind if someone came along and made the interface work the way newbies expect.
But for whatever reason, this didn’t happen. Everyone seems cool with the new Blender, and it’s about a thousand times easier for me to learn. In fact, this is easier than the programs I learned back in the 90s when 3D modeling was much simpler. I manage to get the basics down in just a few minutes, and in less than an hour I have a steady workflow going. It’s not a fast workflow or anything, and I’m still making awkward and confusing blunders, but I’m getting real work done.
After a few hours, I have a small collection of objects to work with. I’ve decided to build more or less conventional office furniture. I know the plan is to make a space station / ship of some kind, so mundane objects aren’t really on-mission. My rationale is:
- I know this first round of objects is going to be really rough. Two weeks from now I’m going to look back on the stuff I’m making now and cringeNote from the future: I was right. I hate these objects now, but I still haven’t gotten around to replacing them.. So these objects are, ultimately, doomed.
- Since these objects aren’t going to be around for long, I want to make some things with a familiar purpose and scale. If I build office furniture that’s incorrectly sized or arranged, then that will be obvious right away. That’s not necessarily true if I build (say) a warp core and a bunch of space control panels.
- Office furniture is fairly simple. It uses lots of basic shapes, flat surfaces, ninety degree angles, and simple textures. I don’t need to do any intricate modeling, build any fancy textures, or worry about getting textures to line up between different curved surfaces.
This is Fun
It’s been almost 20 years since the last time I did this kind of work, and I forgot how fun this can be. Back in the 90s, I was very focused on making low-poly models. Every model was like a little puzzle: “How can I evoke the intended shape while using the fewest polygons possible?” That kind of work is a bit more technical than general modeling. The job wasn’t always great, but this is one of the parts I really enjoyed.
As time went on, there was less need for artists to fuss over individual polygons. The job became gradually less technical and more artistic in nature. If you needed a dining room table for 26 quadsA quad is a pair of triangles. We don’t make that distinction these days. Now everything is expressed in triangles., then I was your guy. If you wanted “A late-period Federal dining set in mahogany with leather upholstery, using the attached inlay pattern.” then you should give the job to anyone but me.
So this project is taking me back to the work I did in my late 20s. In fact, I’m having so much fun that I end up spending almost a week making all kinds of crap. I have more than enough objects for the next stage of the project, but I don’t want to stop.
Flat-Color Was a Mistake
I’m really struggling to get the textures to line up nicely. Partly this is because I’m still new to the Blender UV mapping interface, and partly because I’ve foolishly made my office furniture with beveled edgesOr are these chamfered edges? I can never remember. and now I’m having trouble making that work. Back in the day, most of my furniture was made of cuboid shapes and texture mapping was fairly straightforward.
But it doesn’t look right to simply project a square texture onto these non-square desktops. We get partial texture pixels all around the edge, and that makes it look like things are misaligned. I keep fussing with it, trying to get the seams to line up with the 135° corners, but it doesn’t really work.
So then I get the bright idea to do everything in a flat-shading style. I love the flat-shaded polygon look in real games, so maybe that will look cool here? If the desktop is all a single color then I don’t have to worry about making the texture line up.
Ugh. No. While I love this art style, I don’t know how to do it properly. My desk ends up looking unfinished rather than untextured. Besides, the rest of my game is leaning towards a pixelated late-90s aesthetic. That is mutually exclusive with the flat polygon look.
Whatever. When I started I wanted to use basic cubes so I didn’t get bogged down making art, and here I am a week later letting art style concerns distract me from the programming work at hand. I do my best to ignore how ugly some of this crap is and open up Visual Studio so I can get back to programming.
Welcome to Space-IKEA
Actually, no. I just can’t resist making more stuff. I make some generic computer cabinets. A soda machine. Some random pipes and panels to go on walls. Some benches. Potted plants. Light fixtures. Doors and doorframes. Some wall-mounted display screens.
I decide to make computers. For whatever reason, I gravitate towards making chunky computers with CRTs. That doesn’t make a lot of sense in a space-station future, but it’s what I’m interested in building and it makes for more interesting and challenging models. I make a few modern LCD screens, but their shape is so simple that it’s not very fun.
I don’t have the furniture placement code done yet – we’ll cover that in the next entry – so for now the program just takes all of the imported models and arranges them in a big grid outside of the level like some sort of weird furniture warehouse.
A lot of this stuff looks like crap, but it’s good enough for the proof-of-concept work I’m about to do.
 Note from the future: I was right. I hate these objects now, but I still haven’t gotten around to replacing them.
 A quad is a pair of triangles. We don’t make that distinction these days. Now everything is expressed in triangles.
 Or are these chamfered edges? I can never remember.
A video Let's Play series I collaborated on from 2009 to 2017.
The Best of 2014
My picks for what was important, awesome, or worth talking about in 2014.
Here is a 13 part series where I talk about programming games, programming languages, and programming problems.
The product of fandom run unchecked, this novel began as a short story and grew into something of a cult hit.
Video Compression Gone Wrong
How does image compression work, and why does it create those ugly spots all over some videos and not others?