garaz.wrl

 cafe.wrl  tank.wrl  garaz.wrl  tree.wrl  chair.wrl  stavba.wrl  fence.wrl  u1.wrl  table.wrl  sibenice.wrl  tw.wrl 
Zpět Zpět
   1 : #VRML V2.0 utf8
   2 : 
   3 : WorldInfo {
   4 : 	info ["Author: Jakub Zemlicka"]
   5 : 	title "Garaz"
   6 : 
   7 : }
   8 : 
   9 : DEF Svetlo1 SpotLight {    
  10 : 	ambientIntensity 0.2
  11 : 	location 0 4 -2 
  12 : 	color	1 0.8 0.7
  13 : 	direction	0 -1 0
  14 : 	beamWidth	2
  15 : 	cutOffAngle 5
  16 : 	on FALSE
  17 : }
  18 : DEF Svetlo2 SpotLight {    
  19 : 	ambientIntensity 0.2
  20 : 	location 0 4 2 
  21 : 	color	1 0.8 0.7
  22 : 	direction	0 -1 0
  23 : 	beamWidth	2
  24 : 	cutOffAngle 5
  25 : 	on FALSE
  26 : }
  27 : 
  28 : PROTO Strecha [] 
  29 : {	
  30 : 	Shape {
  31 :     	appearance Appearance {
  32 : 			material Material {
  33 : 				diffuseColor .8 .157 0
  34 : 				emissiveColor .15 .03 0
  35 : 				ambientIntensity .078
  36 : 			}
  37 : 		} 
  38 :     	geometry Extrusion
  39 : 		{
  40 : 			solid FALSE
  41 : 			spine [0 0 1, 0 0 0]
  42 : 			beginCap TRUE
  43 : 			endCap TRUE
  44 : 			crossSection [1 0, 0 1, -1 0, -1.05 0, 0 1.05, 1.05 0]
  45 : 		}
  46 : 	}
  47 : }
  48 : 
  49 : PROTO Stit []
  50 : {	
  51 : 	Shape 
  52 : 	{
  53 : 		appearance Appearance 
  54 : 		{
  55 : 			material Material
  56 : 		    {
  57 : 				diffuseColor .514 .267 .0745
  58 : 				emissiveColor 0 .00784 0
  59 : 				ambientIntensity .192
  60 : 				shininess 0
  61 : 			}
  62 : 		}
  63 : 		geometry Extrusion
  64 : 		{
  65 : 			solid FALSE
  66 : 			spine [0 0 0.4, 0 0 0]
  67 : 			beginCap TRUE
  68 : 			endCap TRUE
  69 : 			crossSection [-1 0, 1 0, 0 1, -1 0]
  70 : 		}
  71 : 	}
  72 : }
  73 : 
  74 : PROTO Tram []
  75 : {	
  76 : 	Shape {
  77 : 	   	appearance Appearance {
  78 : 			material Material {
  79 : 				diffuseColor .502 .298 .188
  80 : 				emissiveColor .12 .13 .08
  81 : 				ambientIntensity .192
  82 : 				shininess 0
  83 : 			}
  84 : 		} 
  85 :     	geometry Extrusion
  86 : 		{
  87 : 		
  88 : 			solid FALSE
  89 : 			spine [0 0 0.2, 0 0 0]
  90 : 			beginCap TRUE
  91 : 			endCap TRUE
  92 : 			crossSection [.8 0, .9 0, .9 .1, 0 1, -.9 .1, -.9 0, -.8 0, -.4 .4, 
  93 : 				-.3 .55, .3 .55, 0 .8, -.3 .55, -.4 .4,
  94 : 				.4 .4, .8 0]
  95 : 		}
  96 : 	}
  97 : }
  98 : 
  99 : 
 100 : 
 101 : 
 102 : DEF	Garaz Transform	{
 103 : 	translation	0 2 0 # posun nahoru
 104 : 	children [
 105 : 		Transform {	 #zadni zed
 106 : 			scale 7.8 4 0.2
 107 : 			translation 0 0 -5.9
 108 :     		children [
 109 : 				DEF Zed Shape {
 110 :     				appearance Appearance {
 111 : 						material Material {
 112 : 							diffuseColor .35 .41 .43
 113 : 							emissiveColor .14 .16 .17
 114 : 							ambientIntensity .06
 115 : 							shininess .32
 116 : 						}
 117 : 					} 
 118 :     				geometry Box { size 1 1 1 }
 119 : 				}
 120 : 			]
 121 : 		}
 122 : 		Transform {	 #leva zed
 123 : 			scale 0.2 4.2 12
 124 : 			translation -4 0.1 0
 125 :     		children [
 126 : 				USE Zed
 127 : 			]
 128 : 		}
 129 : 		Transform {	 #prava zed
 130 : 			scale 0.2 4.2 12
 131 : 			translation 4 0.1 0
 132 :     		children USE Zed
 133 : 		}
 134 : 		Transform {	 # zed nad vjezdem
 135 : 			scale 7.4 0.2 0.2
 136 : 			translation 0 1.9 5.9
 137 :     		children USE Zed
 138 : 		}
 139 : 		Transform {	 # levy sloupek
 140 : 			scale 0.2 4 0.2
 141 : 			translation -3.8 0 5.9
 142 :     		children USE Zed
 143 : 		}
 144 : 		Transform {	 # pravy sloupek
 145 : 			scale 0.2 4 0.2
 146 : 			translation 3.8 0 5.9
 147 :     		children USE Zed
 148 : 		}
 149 : 	  	Transform {	 # STRESNI KONSTRUKCE
 150 : 			scale 4.8 1.385 1
 151 : 			translation	0 2 0
 152 : 			children [
 153 : 				Transform {	# predni stit
 154 : 					translation	0 0 5.8
 155 : 					children Stit {}
 156 : 				}
 157 : 				Transform {	  #zadni stit
 158 : 					translation	0 0 -6.2
 159 : 					children Stit {}
 160 : 				}
 161 : 				Transform {	  #krytina
 162 : 					scale 1 1 13
 163 : 					translation	0 0 -6.5
 164 : 					children Strecha {}
 165 : 				}
 166 : 				Transform {	  #vnitrni tramy
 167 : 					translation	0 0 -4
 168 : 					children Tram {}
 169 : 				}
 170 : 				Transform {	  #vnitrni tramy
 171 : 					translation	0 0 -2
 172 : 					children Tram {}
 173 : 				}
 174 : 				Transform {	  #vnitrni tramy
 175 : 					children Tram {}
 176 : 				}
 177 : 				Transform {	  #vnitrni tramy
 178 : 					translation	0 0 2
 179 : 					children Tram {}
 180 : 				}
 181 : 				Transform {	  #vnitrni tramy
 182 : 					translation	0 0 4
 183 : 					children Tram {}
 184 : 				}
 185 : 
 186 : 			]
 187 : 		}
 188 : 		Transform	{
 189 : 			scale 0.05 0.05 0.05
 190 : 			translation	0 2.35 2
 191 : 			children [ 
 192 : 				DEF Lustr Shape {
 193 : 					appearance Appearance {
 194 : 				    	material Material {
 195 : 					    	diffuseColor .882 .843 .8
 196 : 							shininess 0
 197 : 							ambientIntensity 0
 198 : 							transparency .114
 199 :     					}
 200 : 					}
 201 : 					geometry Extrusion {
 202 : 					
 203 : 						solid FALSE
 204 : creaseAngle 99
 205 : 						spine [4 0 0, 3 0 -3,
 206 : 							0 0 -4, -3 0 -3,
 207 : 							-4 0 0, -3 0 3,
 208 : 							0 0 4, 3 0 3,
 209 : 							4 0 0]
 210 : 						beginCap FALSE
 211 : 						endCap FALSE
 212 : 						crossSection [0 0, 3 1, 4 3, 4 4, 0 4]
 213 : 					}
 214 : 				}
 215 : 			]
 216 : 		}
 217 : 		Transform {
 218 : 			scale 0.05 0.05 0.05
 219 : 			translation	0 2.35 -2
 220 : 			children USE Lustr
 221 : 		}
 222 : 		Transform {
 223 : 			rotation 0 1 0 1.57
 224 : 			translation -3.88 -0.8 5.5
 225 :     		children [
 226 : 				DEF Vypinac Shape {
 227 :     				appearance Appearance {
 228 : 						material Material {
 229 : 							diffuseColor .137 .102 .0667
 230 : 							emissiveColor .13 .13 .13
 231 : 							ambientIntensity .04
 232 : 							shininess .07
 233 : 							specularColor .0745 .0902 .118
 234 : 						}
 235 : 					} 
 236 :     				geometry Box { size 0.1 0.1 0.02 }
 237 : 					
 238 : 				}
 239 : 				DEF	TS TouchSensor {}
 240 : 			]
 241 : 		
 242 : 			ROUTE TS.isActive TO Svetlo1.on
 243 : 			ROUTE TS.isActive TO Svetlo2.on
 244 : 			
 245 : 
 246 : 		
 247 : 		}
 248 : 		
 249 : 	]
 250 : 	
 251 : }