Drawing — a Gear Effect in BGE

Tagan News #08

Some techniques for working with BGE

In various PC electronic publications, there is a section called “Photoshop Lessons.” It explains how to make all sorts of beautiful things using that program. “Why should we be any worse? We have our own Photoshop too!” I thought, and decided to share the few skills I have with the wonderful software product called Burial Graphics Editor.

Artists, please support me in this difficult undertaking, because my skills are enough for only a couple of “lessons” at most.

Today we’re going to make a gear effect. Here’s what we’ll need:

  • The editor itself, naturally :)
  • A chunky editor for making the texture
  • The Polar plugin, to convert from Cartesian to polar coordinates
  • The cleaner plugin
  • Some knowledge of logical operations :)

First, we need to create the gear’s framework. Start by drawing the flat pattern. It will look roughly like this:

[Illustration not included in the text source.]

It’s easy to make: zoom in, draw one segment, then duplicate it horizontally until you reach the edge of the screen. Next, scroll it a little to prepare it for the gear’s rotation.

After that, run the plugin and convert the image from Cartesian to polar coordinates:

[Illustration not included in the text source.]

The heavily “jagged” edges are immediately noticeable. We’ll solve the problem as follows. First, run the cleaner plugin with its settings at maximum:

[Illustration not included in the text source.]

That’s better. Remove the remaining protrusions manually using the magnifier:

[Illustration not included in the text source.]

Then thicken the resulting framework:

[Illustration not included in the text source.]

Voilà! The framework is ready. Now let’s make the fill. In any chunky editor, draw a texture like this:

[Illustration not included in the text source.]

Place it on the second screen relative to the framework and center it so that a row of the “chessboard” texture runs through the center of the gear. Fill the lower part with solid white. We’ve saved the framework, so we can mess around with it a little :) Fill the area around it and the center with a solid color. Then invert the whole screen and thin it:

[Illustration not included in the text source.]

Invert the result to get a mask. Apply it to the texture using the AND operation. Then overlay the existing framework using the OR operation. Add some indecipherable lettering :) (you can successfully apply the same effects to it) and you get something like this:

[Illustration not included in the text source.]

With a little imagination, you can make something like this too:

Share your thoughts about the article