u3.wrl

 tw.wrl  table.wrl  u3.wrl  tank.wrl  cafe.wrl  garaz2.wrl 
Zpět Zpět
   1 : #VRML V2.0 utf8
   2 : 
   3 : WorldInfo {
   4 :  info ["Author: Jakub Zemlicka, Martin Petricek, Tomas Kazmar"]
   5 :  title "Uloha 2"
   6 : }
   7 : 
   8 : NavigationInfo {
   9 :  headlight FALSE
  10 : }
  11 : 
  12 : Background {
  13 :  skyColor [.1 .2 .2]
  14 :  groundColor [.1 .2 .1]
  15 : }
  16 : 
  17 : DirectionalLight {
  18 :  intensity .2
  19 :  ambientIntensity 0.1
  20 :  direction -20 -8 -2
  21 : }
  22 : 
  23 : Viewpoint {
  24 :  description "Daleko 1"
  25 :  position 27 40 70
  26 :  orientation 0.717 -0.69 -0.1 -0.681
  27 :  fieldOfView 0.6
  28 :  jump FALSE
  29 : }
  30 : 
  31 : Viewpoint {
  32 :  description "Daleko 2"
  33 :  position -20 40 70
  34 :  orientation -0.717 -0.69 -0.1 0.681
  35 :  fieldOfView 0.6
  36 :  jump FALSE
  37 : }
  38 : 
  39 : Viewpoint {
  40 :  description "Stredni 1"
  41 :  position 25 1.6 21
  42 :  orientation 0 1 0 1.1
  43 :  fieldOfView 1
  44 :  jump FALSE
  45 : }
  46 : 
  47 : Viewpoint {
  48 :  description "Stredni 2"
  49 :  position 23 1.6 23
  50 :  orientation 0 1 0 0.6
  51 :  fieldOfView 1
  52 :  jump FALSE
  53 : }
  54 : 
  55 : Viewpoint {
  56 :  description "Blizko 1"
  57 :  position -11.37 1.6 17.41
  58 :  orientation -0.6 0.8 0.05 0.2
  59 :  jump FALSE
  60 : }
  61 : 
  62 : Viewpoint {
  63 :  description "Blizko 2"
  64 :  position -12 1.6 17.5
  65 :  orientation -0.93 0.35 0 0.18
  66 :  jump FALSE
  67 : }
  68 : 
  69 : 
  70 : EXTERNPROTO Tank [
  71 :  exposedField SFVec3f pos
  72 :  exposedField SFRotation rot
  73 :  exposedField SFInt32 lod
  74 :  exposedField SFColor wheelColor
  75 :  exposedField SFColor wheelDarkColor
  76 :  exposedField SFNode tex
  77 :  field MFFloat lodRanges
  78 :  exposedField SFColor light
  79 :  exposedField SFFloat lightIntensity
  80 : ] "tank.wrl#Tank"
  81 : EXTERNPROTO TankTex [
  82 :  field MFString tex
  83 : ] "tank.wrl#TankTex"
  84 : PROTO Pink[]{
  85 :  Appearance {
  86 :   material Material {
  87 :    diffuseColor .9 .5 .9
  88 :    ambientIntensity .6
  89 :    specularColor .3 .1 .3
  90 :   }
  91 :  }
  92 : }
  93 : 
  94 : EXTERNPROTO	Kafemlynek [ 
  95 :  exposedField SFInt32 lod
  96 :  exposedField MFString	texture
  97 :  exposedField SFColor Color
  98 :  field MFFloat lodRanges
  99 :  field SFVec3f rot
 100 :  field SFColor lightcolor
 101 : ] "cafe.wrl#Kafemlynek"
 102 : 
 103 : 
 104 : EXTERNPROTO TW [
 105 :  exposedField SFNode plastic
 106 :  exposedField SFNode steel
 107 :  exposedField SFColor light
 108 : ] "tw.wrl#TW"
 109 : 
 110 : 
 111 : 
 112 : Transform {
 113 :  translation 7 0 12
 114 :  children [
 115 :   Viewpoint {
 116 :    description "Stul 1"
 117 :    position -2.2 1.6 -2.5
 118 :    orientation 0.717 -0.69 -0.1 -0.681
 119 :    fieldOfView 0.6
 120 :    jump FALSE
 121 :   }
 122 :   Transform { translation -3.2 .77 -3.8 children Kafemlynek {lod 1 texture "drevo.jpg" Color 1 1 1 lightcolor 0 0 1} rotation 0 1 0 .5}
 123 :   Transform { translation -2.7 .77 -3.7 children TW {
 124 :     light 0 1 0
 125 :     plastic Appearance {
 126 :      texture ImageTexture { url ["marble02_sm.png"] }
 127 :      material Material {
 128 :       diffuseColor .47 .53 .6
 129 :       specularColor .32 .4 .4
 130 :       emissiveColor .07 .08 .09
 131 :       ambientIntensity .0667
 132 :       shininess .54
 133 :      }
 134 :     }
 135 :     steel Appearance {
 136 :      texture ImageTexture { url ["metal.png"] }
 137 :      material Material {
 138 :       diffuseColor .61 .61 .61
 139 :       specularColor .39 .39 .39
 140 :       ambientIntensity .25
 141 :       shininess .11
 142 :      }
 143 :     }
 144 :    }
 145 :    rotation 0 1 0 .1}
 146 :   Transform { translation -3 0 -4.2 children DEF Table Inline { url "table.wrl" } }
 147 :  ]
 148 : }
 149 : Transform {
 150 :  translation 5 0 0
 151 :  children [
 152 :   Transform { translation 0 0 0 children Inline { url "garaz2.wrl" } }
 153 :   Tank { lightIntensity 10 light 1 0 0 lod 1 pos 1.8 1.3 0   tex TankTex{ tex "tank1.png"} wheelColor .6 .4 0 wheelDarkColor .3 .3 0}
 154 :   Tank { lightIntensity 1.5 light 0 1 0 lod 1 pos -18 1.3 10 rot 0 1 0 4   tex Pink{} wheelColor .8 .4 .8 wheelDarkColor .6 .5 .6}
 155 :   Tank { lightIntensity 10 light 1 0 1 lod 1 pos 12 1.3 13 rot 0 1 0 2 tex TankTex{} wheelColor 0 .4 0 wheelDarkColor 0 .1 0
 156 :    lodRanges [2 3 15 100 500]
 157 :   }
 158 :  ]
 159 : }
 160 : Transform {
 161 :  rotation 0 1 0 1.4
 162 :  translation 23 0 18
 163 :  children Group {
 164 :   children [
 165 :    Transform { translation -3.2 .77 -3.8 children Kafemlynek {lod 1 texture "mahagon_md.jpg" lightcolor 0 1 0} rotation 0 1 0 .5}
 166 :    Transform { translation -2.7 .77 -3.7 children TW {
 167 :      light 1 0 0 
 168 :      plastic Appearance {
 169 :       texture ImageTexture { url ["wood25_sm.png"] }
 170 :       material Material {}
 171 :      }
 172 :      steel Appearance {
 173 :       texture ImageTexture {
 174 :        url ["gold2_sm.png"]
 175 :       }
 176 :       material Material {}
 177 :      }
 178 :     }			
 179 :     rotation 0 1 0 .1}
 180 :    Transform { translation -3 0 -4.2 children USE Table }
 181 :   ]
 182 :  }
 183 : }
 184 : 
 185 : Transform {
 186 :  center -3 0 -4.2
 187 :  translation -9 0 19
 188 :  children Group {
 189 :   children [
 190 :    Transform { translation -3.2 .77 -3.8 children Kafemlynek {lod 1 texture "cafe8.png" Color 1 1 1 lightcolor 1 0 0} rotation 0 1 0 .5}
 191 :    Transform { translation -2.7 .77 -3.7 children TW {light 0 0 1} rotation 0 1 0 .1}
 192 :    Transform { translation -3 0 -4.2 children USE Table }
 193 :   ]
 194 :  }
 195 : }