Displaying color solids

All right, all right, so how am I going to make a game level out of color spaces? Well, first, I’ll need to display a color solid somehow.

color solid is a 3D object that models the position of colors within a color space. It’s somewhat analogous to a desktop globe; just as you might refer to the surface of a globe for information about what’s on the Earth, you can refer to the cross sections of a color solid for information about what’s in the color space it represents.

img_8315

Left, Kolormondo™; right, mappa mundo

Just like globes and atlases, not all color spaces share the same basic principles or serve the same purposes; therefore, the color solids that model them often take different forms. However, all physical color solids have three limitations in common:

  1. we can’t perceive an entire 3D color solid at once in our 2D visual field
  2. built from finite material, they can’t represent every color in their color space
  3. made from discrete elements, they can’t represent every color in their range, either
img_8314

Left: a COLORCUBE puzzle

While a digital color solid would share these limitations, the third one is slightly relaxed. Obviously, I can adjust the discrete elements of a digital model however I wish. Furthermore, by shrinking them to the size of a pixel and relying on the massive computational power of a modern computer– even a ten year old machine would suffice– I can render a real-time, continuous slice of the interior of a color solid, responding to user input at a decent clip.

While I’m at it, it might as well be an interesting slice…

running_the_gauntlet_concept.png

Not actual gameplay footage.

Introducing the chromatafoil

In Run the Gamut, every 3D point in space will map directly to a color in the level’s color space. If nothing is occupying a point, that color will not be visible; likewise, if the player has a clear line of sight to an object, the color they see will correspond with the object’s position.

Mostly the player will see black. (Levels about subtractive color might use white as a background.) When the countdown to a race begins, they will see a wide band in the bottom center of the screen, coming to a point representing the player’s position. Tiny specks drift nearby– and naturally, they change color as they change position. But these specks disappear when the player is in motion; they’re an assist for players who become totally lost.

Once the race starts, players can charge forward, trailing a ribbon of color behind them. As they steer left, right, up and down, the ribbon color orients them in color space; before long, the end of the ribbon will appear in the background, to serve as a further visual cue. When it reaches a maximum length, its end will begin to fray at the speed the player is moving.

I call this ribbon the chromatafoil; it’s a color solid that intersects the player’s path through the level. It’s the primary indicator of the player’s position and color, and may end up being the only visual element they encounter outside of the HUD and menu system. That’ll depend largely on what direction the prototype’s development takes, in terms of user input.

Like I said, this game will use different color spaces as levels. (In fact, I hope to make the game levels from gamuts in color spaces- but I’ll explain those next time.) That means from one race to another, the locations of colors relative to one another may change, and the shortest path between two objectives may pass through different intermediate colors. To help the player remember the particulars of the space they’re in, I’m considering displaying their orientation with a sort of heading indicator in the HUD, but I hope that won’t be necessary.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s