Skip to content

Editor Environment Lighting

LordNed edited this page Jan 23, 2014 · 2 revisions

M_Dai's Stage Lighting

##Overview## Lighting consists of four separate parts. The EnvR section contains indexes into the Colo section for different lighting effects. The Colo section contains indexes into the Pale section for different times of day. The Pale section contains the actual color values used by the game. The Virt section (which is indexed by Pale) points to Skybox color settings.

It is important to note that the "Save" button works differently than expected! Pressing "Save" will only overwrite the EnvR, Colo, Pale and Virt chunks in their respective ZArchive that exists in Wind Viewer's memory. It is not until you save this archive (via File->Save All) that these changes are actually written to disk!

###EnvR### There are two modes here, called A and B. The default color settings used are A but some maps have values stored in mode B. The usage of mode B is unknown at the moment.

  • Clear Skies Index: Index of which Color section to use when the weather is clear (ie: Not raining/snowing)
  • Raining Index: Index of which Color section to use when it is raining.
  • Snowing Index: Index of which Color section to use when it is snowing.
  • Unknown Index: It is unknown as to when these colors are currently used.

###Colo### Colo, short for Color contains different indexes that the game blends between based on the time of day. These are indexes into the Pale section for different times of day.

###Pale### Pale, short for Palette contains the actual RGB values used by the game engine.

  • Actor Ambient Color - This is ambient lighting for Actors.
  • Shadow Fill Color - This is the color of shadows in the room.
  • Room Fill Color - This is a Fill Light used by the room.
  • Room Ambient Color - Similar to Actor Ambient Color but for the Room model.
  • Wave Color - Color of the wave caps.
  • Ocean Color - Color of the Ocean.
  • Unknown Color 1 - Unknown.
  • Unknown Color 2 - Unknown.
  • Doorway Color - This is the color that the mesh behind the door gets tinted. Used to show if it is bright/dark outside a room.
  • Unknown Color 3 - Unknown.
  • Fog Color - This is the color of the fog.
  • Virt Index - Index into the Virt Array. Contains skybox color settings.
  • Ocean Fade Into Color - This is a RGBA color. ToDo: Where is this fade?
  • Shore Fade Into Color - RGBA - See Above.

###Virt### Virt, short for Virtual Box(?) contains settings for the Skybox on the level.

  • Horizon Cloud Color - RGBA - Color of the Clouds on the Horizon
  • Center Cloud Color - RGBA - Color of the clouds above the player.
  • Center Sky Color - Color of the sky above the player. Blends into Horizon Color
  • Horizon Color - Color of the sky at the horizon.
  • Sky Fade To Color - ToDo: What is this?

##Trouble Shooting## There is no index-limiting placed on controls at this time. This means you can specify an invalid index in the controls. It is untested what invalid indexes do (crash? Revert to zero?) so if you're running into trouble start by checking all of the indexes. Be aware that the indexes are zero-indexed, meaning they start count at zero and not one.

The game will probably crash if there's not at least one EnvR/Color/Virt/Pale chunk specified (there's an untested correlation between EnvR and Colo groups and number of stages on a map. It seems that there's often at least as many EnvR and Colo groups as there are rooms associated with the stage of this map.), though Rooms can omit all four of these chunks without issue.

The Environment Lighting Editor was Wind Viewer's first functional editor that supported the addition/deletion of existing items!