Home | Lehre | Videos | Texte | Vorträge | Software | Person | Impressum, Datenschutzerklärung | Blog
Stage Lighting
Create a virtual 3D stage consisting of
-
a floor,
-
some imported .x models, which are placed on the floor,
-
three spot lights: one red, one green, one blue.
The user can select a light source using the mouse. (Hint: The View and
Projection matrices and a division by w allow you to compute the position
on the screen.) The user can position the selected light source using the
keyboard. No matter where it is positioned, a light source is automatically
adjusted to always point to the same point on the floor. The user can rotate
and translate the camera using the keyboard.
Ideas for extensions: The .x models cast shadows (Matrix.Shadow) onto
the floor. There is a graphical user interface to control the color of
each spot light as well as its aperture angle and to control the material
settings of each .x object. The orientation and position of the camera
can be controlled using the mouse. The position of the selected light source
can be controlled with the mouse.