3D colored lighting - Doom Legacy Wiki

3D colored lighting

From Doom Legacy Wiki

Jump to: navigation, search
Editing Tutorials

Legacy's 3D colored lighting allows a sector to contain colored light in OpenGL. In Legacy this can be achieved through use of linetype 282.


  1. Create a reference (or dummy) sector - typically 3 linedefs to create a trianglar sector, the size of the dummy sector does not matter.
  2. Give one line of the reference sector type 282.
  3. Edit that line and make the lower and main texture null("-" sign in DoomBuilder). Then for the upper texture, use the HEX code for the color you want. The HEX code is a # followed by a 6 digit code for the color, followed by a letter. The letter can be from A-Z and represents the intensity.
  4. Tag that line to the sector you want the colored light to appear in.


Now lets say you tag it to a sector with a 3D floor. The colored light will only appear above the 3D floor, to get it below the 3D floor you need to tag the linedef of the colored light's reference sector to the reference sector of the 3D floor.



Source

Personal tools