This sample shows an oscillating value via sine wave, controlling the intensity of a spot light.
Click on the image to download the sample.
| 
|
This shows a simple, but effective way of making a scene look more dynamic. This sample is an extensions of the
Spot Light sample. The difference is, that the light intensity is controlled by a sine wave. The oscillation is controlled by the Logic Diagram named "LightToMaterial". This diagram takes the output of the specialized SinWave operator, and uses it to scale the DiffuseIntensity and SpecularIntensity on the SpotLight material. It also scales the FrequencySlider output and scales it. Is used as the frequency for the sine wave, effectively controlling how fast the light turns on and off.
This means you can change the speed of the osillation with the GUI slider on the top right hand side of the screen.
An interesting thing to try would be to control the light's Diffuse and Ambient colors or Specular Colors using two seperate sine waves.