home *** CD-ROM | disk | FTP | other *** search
/ Internet 1996 World Exposition / park.org.s3.amazonaws.com.7z / park.org.s3.amazonaws.com / cgi-bin / Japan / Theme / bearth / bearth.inc < prev    next >
Text File  |  2017-09-21  |  2KB  |  77 lines

  1. #declare BGColor = color red 0.1 green .25882352941 blue .48235294118
  2. #declare Camera_Distance = 10.0
  3.  
  4. #switch (clock)
  5.   #case (0)
  6.     #declare Camera_Direction = <25.0, -135.0, 0.0>  // Asian View
  7.     #break
  8.   #case (1)
  9.     #declare Camera_Direction = <25.0, -15.0, 0.0>  // Wuropian View
  10.     #break
  11.   #case (2)
  12.     #declare Camera_Direction = <17.0, 105.0, 0.0>  // American View
  13.     #break
  14.   #case (3)
  15.     #declare Camera_Direction = <-90.0, -135.0, 0.0>  // Nankyoku View
  16.     #break
  17. #end
  18.  
  19. // set viewer's position in the scene
  20. camera
  21. {
  22.   orthographic
  23.   location  <0.0, 0.0,-1.0>  // position of camera <X Y Z>
  24.   up        2.88*y            // which way is +up <X Y Z>
  25.   right     2.88*x            // which way is +right <X Y Z> and aspect ratio
  26.   look_at   <0.0, 0.0, 0.0>  // point center of view at this point <X Y Z>
  27.   translate (1-Camera_Distance)*z
  28.   rotate    Camera_Direction
  29. }
  30.  
  31. // create a regular point light source
  32. light_source
  33. {
  34.   0*x // light's position (translated below)
  35.   color red 1.0  green 1.0  blue 1.0  // light's color
  36.   translate <0, 0, -20>
  37.   rotate Camera_Direction+<20, 10, 0>
  38. }
  39.  
  40. global_settings {
  41.   ambient_light color rgb <1,1,1>
  42. }
  43. background { BGColor }
  44.  
  45. //////////////////////////////////////////////////////////////////////
  46.  
  47. #declare BaseTexture =
  48.   texture {
  49.     pigment {
  50.       color rgbt <1,1,1,0.0>
  51.     }
  52.     finish {
  53.       ambient 0.3
  54.       diffuse 0.7
  55.       phong 0.1
  56.     }
  57.   }
  58.  
  59. #declare LandLineTexture =
  60.   texture {
  61.     pigment {
  62.       image_map {
  63.         gif "landline3.gif"
  64.         map_type 1 // 0=planar, 1=spherical, 2=cylindrical, 5=torus
  65.         transmit 0 1.0
  66.         transmit 1 1.0
  67.         transmit 2 0.0
  68.       }
  69.       rotate 110*y
  70.     }
  71.     finish {
  72.       ambient 0.4
  73.       diffuse 0.8
  74.     }
  75.   }
  76.  
  77.