Light effect example
Drawing with simple light effect
Commands:
back 0,0,0
set box 2,2,1.5
set zoom 2.0
set view 35,22
set xrange -1,1
set yrange -1,1
set face_col 255,255,255
set hidden_col 255,255,255
set render_am 0.15
set light 0 50,5,0.8
set appearance fr
draw mesh dipo.dat
set face_col 255,210,0
set hidden_col 220,0,0
draw mesh tube.dat
Notes:
-
In the given example only one light source is used.
-
Up to 3 light sources are possible.
-
To obtain a smooth surface more than 14000 faces
(81x181 data points) were used.
Files:
- Shell script: pix5.run
- Data set 1: dipo.dat (330kB)
- Data set 2: tube.dat
back