4.1.5 Script drums
Utilisation : Les liens ne sont pas apparents. Pour obtenir des informations sur un mot clé, cliquez-le dans le script !
global_settings {max_trace_level 20 assumed_gamma 2.2}
#include "colors.inc"
#include "shapes.inc"
#include "textures.inc"
#include "drums.inc"
camera {
location <0.0, 3.0,-90.0>
direction <0.0, 0.0, 2.0>
up <0.0, 1.0, 0.0>
right <4/3, 0.0, 0.0>
look_at <0.0, 8.0, 0.0>
}
#declare Spacing = 15;
#declare Brightness = 0.5;
union {
light_source {<-Spacing, 0.0, 0.0> color red Brightness}
light_source {<0.0, Spacing, 0.0> color green Brightness}
light_source {<Spacing, 0.0, 0.0> color blue Brightness}
pigment {White}
translate -100*z
rotate 80*x
}
union {
light_source {<-Spacing, 0.0, 0.0> color red Brightness}
light_source {<0.0, Spacing, 0.0> color green Brightness}
light_source {<Spacing, 0.0, 0.0> color blue Brightness}
pigment {White}
translate -100*z
rotate <30, 30, 0>
}
union {
light_source {<-Spacing, 0.0, 0.0> color red Brightness}
light_source {<0.0, Spacing, 0.0> color green Brightness}
light_source {<Spacing, 0.0, 0.0> color blue Brightness}
pigment {White}
translate -100*z
rotate <30,-30, 0>
}
sphere {
<0, 0, 0>, 1000
hollow on
pigment {
image_map {png "rednewt.png" interpolate 4}
translate <-0.5,-0.5, 0.0>
scale 800
}
finish {
ambient 1
diffuse 0.5
}
}
plane {
y, -10.0
pigment {Black}
finish {
ambient 0.2
diffuse 0.8
reflection 0.25
}
}
object {
HalfSet
rotate 20.0*y
translate -13.0*x
}
object {
HalfSet
rotate -20.0*y
translate 13.0*x
}
Et voici ce que nous obtenons :

Avec le rednewt.png suivant :

Voyons le script inclus :