File: lights_page2.html

package info (click to toggle)
gamgi 0.15.8-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 19,672 kB
  • sloc: ansic: 155,977; xml: 105,764; makefile: 537; perl: 171; sh: 5
file content (105 lines) | stat: -rw-r--r-- 3,570 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">

<head>
<title>GAMGI Tutorials: Directional and positional lights</title>
<link rel="icon" type="image/png" href="../icon/gamgi16.png"/>
<link rel="stylesheet" type="text/css" href="../css/base.css"/>
<link rel="stylesheet" type="text/css" href="../css/notebook.css"/>
</head>

<body>

<h1>Directional and positional lights</h1>

<div id="notebook">
<ul>
<li><a href="lights_page1.html">Page 1</a></li>
<li><span>Page 2</span></li>
</ul>
</div>

<div class="contents">

<h3>Shininess</h3>

<ol>
<li>Select <b>Light->Modify</b>, and press the mouse on the drawing area.
A menu pops up, showing two menu items, for the two lights available. After
choosing the first light, confirm its properties, in particular the new light
direction, position, and angle, that were changed with the mouse.
</li>

<li>
Set <b>Specular</b> to <b>(0.6, 0.6, 0.6)</b> and press <b>Ok</b>.
A bright spot is now visible at the center of the atom, due to the
reflected light.
</li>

<li>
Select <b>Light->Config</b> and set <b>Shininess</b> (<b>Materials</b> page)
to <b>0.0</b>. After pressing <b>Ok</b> the bright spot disappears.
Repeat the operation, this time set <b>Shininess</b> to <b>0.5</b>.
After pressing <b>Ok</b> the bright spot reappears, much brighter 
now, as the material light reflectance was increased.
</li>
</ol>

<h3>Maximum illumination</h3>

<ol>
<li>Select <b>Light->Modify</b>, and press the mouse on the drawing area. 
A menu pops up, showing two menu items, for the two lights available. After 
choosing the first light, set <b>angle</b> back to <b>90.0</b>, 
color <b>Ambient</b> to <b>(0.6, 0.6, 0.6)</b>, <b>Specular</b> to 
<b>(0.0, 0.0, 0.0)</b> and press <b>Ok</b>. The initial full color atom 
circle returns.

<p/>

This happens because the absence of lights correspond in fact to 
the existence of a light with <b>Ambient</b> component set to 
<b>(1.0, 1.0, 1.0)</b>, and <b>Diffuse</b>, <b>Specular</b> components 
set to <b>(0.0, 0.0, 0.0)</b>, the maximum luminosity that can be achieved. 
As the light components of the two lights are added, the total ambient light 
is now (1.0, 1.0, 1.0), so the maximum luminosity has been already reached 
and additional diffuse light cannot increase further the luminosity.
</li>
</ol>

<h3>Wired objects illumination</h3>

<ol>
<li>
Select <b>Atom->Modify</b> and press the mouse over the atom. After confirming
the atom properties, set <b>Style</b> to <b>Wired</b> and press <b>Ok</b>. 
The atom is now shown as a cross.
</li>

<li>
Press <b>Light->Modify</b> and press the mouse over the graphic area. A menu 
pops up, showing two menu items, for the two lights available. After choosing 
the first light, confirm its properties, set <b>Ambient</b> to 
<b>(0.0, 0.0, 0.0)</b> and press <b>Ok</b>. Repeat for the second light,
so the total ambient light is now (0.0, 0.0, 0.0). Because wired objects cannot 
reflect diffuse or specular light, they require ambient light to be visible. 
As the ambient light has been switched off, the wired cross becomes barely visible.
</li>

<li>Select <b>Light->Remove</b> and press the mouse over the graphic area.
A menu pops up, showing two menu items, for the two lights available. Choose
the first light, then the second, to remove them. The wired cross is visible
again.
</li>
</ol>

</div>

<div id="bottom">
<a href="../index.shtml">Home</a>
</div>

</body>
</html>