Learn › N64 Beginner

Lesson 3 of 6 · About 5 min

Sky, light and fog

Why do the islands fade into the distance? It is one colour.

Sky Hopper's meadow under an orange evening sky with pink mountains.

Why so many N64 games are foggy, and how one colour sets the sky and the fog together.

Fog hides the edge of the world

A 3D game cannot draw everything it can see. It stops at some distance, and without care the world would pop into view at that line. N64 games often fill the distance with fog: things fade into the sky colour before they are cut off.

Sky Hopper turns its fog on from 700 to 2700 units in front of the camera, in the colour of the sky, so the far islands fade softly instead of popping in.

A colour for each area

The game has three areas: a meadow, crystal caves and a sky temple. Each colour table near the top has three entries, one per area: SKY_C for the sky and the fog, AMB_C for the light, TOP_C for the island tops, FAR_C for the far mountains, and so on. Moving from one area to the next, the game blends between them.

An evening meadow

In the session you will give the meadow an evening sky, and its fog and far mountains will follow.

Sky Hopper's meadow under an orange evening sky, with the AI's reply in the chat.
Change the sky

Try it yourself

In the app this lesson opens a real game for you, with a guide that walks you through these steps:

  1. SKY_C is the sky and also the fog, one entry for each area. The first entry is the meadow.
  2. Give the meadow an orange evening sky with pink far mountains.
  3. Look at the far islands: they fade into the same orange as the sky. That is the fog at work.
Start makingDownload on the App StoreGet it on Google Play