Howto:Illuminate faces: Difference between revisions

Jump to navigation Jump to search
m
no edit summary
mNo edit summary
Line 73: Line 73:
  </animation>
  </animation>


'''And to turn the lights off during day:'''
'''And to turn the lights off during day: This bit is not needed anymore since FG version 1.9.1. The light is switched off automatically when the above condition is no longer true.'''
  <animation>
  <animation>
   <type>material</type>  
   <type>material</type>  
Line 214: Line 214:
The 3d object (the house) which "wears" the texture is called <tt>germanvillagehouse1</tt> here. This name refers to the name given to the respective object in the AC file. For more information on object names, see [[AC_files:_Understanding_and_changing_.ac_code#Identifying_an_object|AC files: Basic changes to textures and colors]].
The 3d object (the house) which "wears" the texture is called <tt>germanvillagehouse1</tt> here. This name refers to the name given to the respective object in the AC file. For more information on object names, see [[AC_files:_Understanding_and_changing_.ac_code#Identifying_an_object|AC files: Basic changes to textures and colors]].


In order to illuminate the object during dark, add the two blocks of code introduced above: [[Howto:_Illuminate_faces#Illuminate_during_dark|Illuminate during dark]]. Finally you will have three blocks of code: One that moves the texture at dusk and dawn, one that illuminates the object at dusk and one that switches the light off at dawn. Make sure all of them use the right object name.
In order to illuminate the object during dark, add the block of code introduced above: [[Howto:_Illuminate_faces#Illuminate_during_dark|Illuminate during dark]]. Finally you will have two blocks of code: One that moves the texture at dusk and one that illuminates the object at dusk. Make sure both of them use the right object name. The light will be switched off and the texture will be switched back to day-time texture when the sun rises above an angle of 1.57.


===Flashing light===
===Flashing light===
248

edits

Navigation menu