TopicsSearchIndexQuickTipHelp


Index

Tilesets
  Palette Swap Animations
Tileset Basics
  Compiling a tileset
Tilesets Masks
  Automask
  Masking in general
Tilesets Palettes
  16 bit to 8 bit
  Gradients
  Creating the Palette
  3D Tileset Objects
  Underwater Ambient Lighting
Jcs events
  Ambient sounds (Howto JCS)
  Mystery of the Pacman Ghost
  Destruct Scenery
  Warps
  Text
  Triggers
  Buttstomp Scenery
  MCE's - why and how
  Events moved by belts
  Event Theory
Jcs interface
  JCS Hotkeys
  Textured Backgrounds
Leveldesign theory
  Important phrases (Howto JCS)
  Bouncy things
Leveldesign tutorials
  Making a simple level (Howto JCS)
  Layers (Howto JCS)
  Background Music
  Cool layer tricks
  Trigger Scenery in background layers
  Tile Cache
  Motion Blur
  Remembering Triggers
Miscellaneous
  Links and Resources
  Welcome to JCSref
  Detached Starfields

 Viewing node Underwater Ambient Lighting


Underwater Ambient Lighting

This article is only for 8-bit color. Nothing that is described works in 16-bit color, due to the incompleteness of the color mode. As a general rule, if you're at all interested in palettes, don't use 16-bit color. This article also does not apply to OEM versions.

There is a common belief that you can't use both ambient lighting and water in the same level. This is not true. It is true that the level outside of the water cannot be affected by lighting, but underwater is a different matter. Changing the ambient lighting used by the level will change the palette entries (colors) used by the water, which is created by a number of horizontal lines stretching across the screen.
Another common belief states that for working water, you should use a (usually blue) gradient from palette entry 176 to palette entry 207. This is also not true. The minimum number of palette entries needed for fully working water (in a level with no ambient lighting at all) is 176-224.
Play Marinated Rabbit in 8-bit. Notice that the water gets progressively darker as you get farther into the level. This is because the range of palette entries used by the water is slowly shifting down:

That's the Beach2 palette. That's why it has such a range, while if you were to darken the lighting in most water tilesets everything would go completely haywire.
So, here are the important values.
Palette entries for ordinary water: 176-224
Palette entries for water which can go down to 0 intensity: 176-240.
Palette entries for water which can have any lighting whatsoever: 165-240
Example files

Added on: 23 February 2005 22:41. Made by Violet CLM.