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 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180
|
// Insert menu illustration scene
// Created June-August 2001 by Christoph Hormann
// Updated to 3.7 by Friedrich A. Lohmueller, June-2012.
// ----- transformations submenu -----
// -w120 -h48 +a0.1 +am2 -j +r3
#version 3.7;
global_settings{ assumed_gamma 1.0 }
#include "colors.inc"
//#declare Typ=1; // translate
//#declare Typ=2; // rotate
//#declare Typ=3; // scale
//#declare Typ=4; // matrix
global_settings {
//assumed_gamma 1
max_trace_level 5
}
light_source {
<1.5, 0.35, 1.0>*10000
color rgb 1.0
}
camera {
location <10, 20, 7.5>
direction y
sky z
up z
right (120/48)*x
look_at <0, 0, -0.2>
angle 28
}
sky_sphere {
pigment {
gradient y
color_map {
[0.0 rgb <0.6,0.7,1.0>]
[1.0 rgb <0.2,0.2,0.8>]
}
}
}
// ----------------------------------------
plane
{
z, -1
texture
{
pigment { color rgb 1 }
finish {
diffuse 0.7
specular 0.4
roughness 0.01
reflection { 0.5 , 1.0
fresnel on
metallic 0.8
}
conserve_energy
}
}
}
//---------------------------------------------------
#declare Tex1=
texture {
#switch (Typ)
#case (1)
pigment { color NeonBlue }
#break
#case (2)
pigment { color ForestGreen }
#break
#case (3)
pigment { color Coral }
#break
#case (4)
pigment { color SpicyPink }
#end
finish { specular 0.4 roughness 0.02 }
}
// =============================================
#declare Obj=
box {
#if (Typ=1)
<-0.4, -0.8, -0.8> <0.4, 0.8, 0.8>
#else
<-0.3, -0.8, -0.8> <0.3, 0.8, 0.8>
#end
texture { Tex1 }
}
// =============================================
#if (Typ=1)
#declare Cnt=0;
#while (Cnt < 5)
object {
Obj
translate <-4.0+Cnt*2, 0.8, -1>
translate Cnt*0.5*z
}
#declare Cnt=Cnt+1;
#end
#end
// =============================================
#if (Typ=2)
#declare Cnt=0;
#while (Cnt < 5)
object {
Obj
rotate -Cnt*18*z
translate <-4.2+Cnt*2, 0, 0>
}
#declare Cnt=Cnt+1;
#end
#end
// =============================================
#if (Typ=3)
#declare Cnt=0;
#while (Cnt < 5)
object {
Obj
scale (Cnt+1)*0.3
translate <-4.2+Cnt*2, 0, 0>
}
#declare Cnt=Cnt+1;
#end
#end
// =============================================
#if (Typ=4)
#declare Cnt=0;
#while (Cnt < 5)
object {
Obj
matrix < 1, 0, 0,
0, 1, 0,
Cnt*0.3, 0, 1,
0, 0, 0>
translate <-4.2+Cnt*2, 0, 0>
}
#declare Cnt=Cnt+1;
#end
#end
|