home *** CD-ROM | disk | FTP | other *** search
/ Assembly 1994 - The 3rd Phase / ASMROM94.mdf / pc / demo / attic / attic.rr3 < prev    next >
Text File  |  1994-08-03  |  6KB  |  175 lines

  1. {
  2.  
  3.   This is the script file for the first picture, the raytraced title, in
  4.   the demo 'The Attic', Digital House's Assembly 94 demo.
  5.  
  6.   Both this script and the raytracer, RayRace 3, are made by Pointer
  7.   from Digital House.
  8.  
  9.   The script is included for two reasons : first of all, you have proof
  10.   it isn't a 3D Studio picture, and you can also watch the script as
  11.   some sort of preview for the tracer itself.  Enjoy.
  12. }
  13.  
  14. #Include <colors.inc>           { Colors.inc is basicaly a long list of
  15.                                   #VECTOR White = (1.0 1.0 1.0)
  16.                                   #VECTOR Blue  = (0.0 0.0 1.0) etc...  }
  17.  
  18. #Surface Yellow_Marble =        { Define a surface called Yellow Marble as }
  19. Surface < Marble                { black and white marble, multi layered... }
  20.           Position (20 20 20) Scale (3 3 3) Turbulence 5
  21.           Colormap  < 0   color (0.9 0.9 0.9)
  22.                           color (0.5 0.5 0.5)
  23.                       0.8 color (0.5 0.5 0.5)
  24.                           color (0.2 0.2 0.2)
  25.                       1   color (0.2 0.2 0.2)
  26.                           color (0 0 0) >
  27. >
  28. Surface < Filter Yellow >       { ... with a yellow filter                 }
  29. NoSurface                       { No more layers                           }
  30.  
  31. #Surface Dark_Red_Marble =      { Same story here                          }
  32. Surface < Marble
  33.           Position (0 0 0) Scale (2 2 2) Turbulence 5
  34.           Colormap < 0   color (0.8 0.8 0.6)
  35.                          color (0.8 0.4 0.4)
  36.                      0.8 color (0.8 0.4 0.4)
  37.                          color (0.8 0.2 0.2)
  38.                      1   color (0.8 0.2 0.2)
  39.                          color (0 0 0) >
  40. >
  41. Surface < Filter (0.2 0.2 0.2)>
  42. NoSurface
  43.  
  44. { Next is a square, with a bitmap on.  The bitmap, 'testje', serves as
  45.   a 'map' : every pixel inside the bitmap colored black (color 0), will be
  46.   replaced as if the definition were 'Dark_Red_Marble' for the entire
  47.   square.  Pixels colored with color 1, will become 'Yellow Marble'.
  48.   By putting 'Digital House' in color 1 on a black (color 0) background,
  49.   the effect as in the picture can be achieved. }
  50.  
  51. Square                          { This object will become 'box' in later      
  52.                                   versions of the tracer... Time, you know }
  53. < Position (-80 0 -20) Scale (80 80 0) Rotateview (0 0 0)
  54.   NoTexture
  55.   Surface < Bitmap TESTJE Projection Position (20 80 0)
  56.             Rotateview (180 0 0) Scale (160 160 100)
  57.             Surfacebased < Index 0     Dark_Red_Marble
  58.                            Index 1     Yellow_Marble>
  59.   > Nosurface Opaque Nobumpmap
  60. >
  61.  
  62. { Next is a plane, also bitmapped but 'palettebased', meaning it's just
  63.   processed as is, with the colors as in the bitmap's palette. }
  64.  
  65. Plane
  66. < Position (0 1 0) Radius 50 NoTexture
  67.   Surface < bitmap fract001 projection position (100 80 30) rotateview (90 30 0)
  68.             scale (300 300 100) palettebased > nosurface
  69.   opaque nobumpmap
  70. >
  71.  
  72. { Two spheres, both transparent.  The Index Of Refraction is still 'fake',
  73.   meaning it's not suitable for values like Diamant (2.25).  Still, it's
  74.   okay for now ;) }
  75.  
  76. Sphere
  77. < Position (100 0 20) Radius 35
  78.   Texture < Color Black { Due to missing 'Alpha' support, make it black }
  79.             Specular 1
  80.             SpecColor White
  81.             Phong 50
  82.             Transparency 1 IOR 0.8 >
  83.   NoSurface Opaque NoBumpmap >
  84.  
  85. Sphere
  86. < Position (120 40 100) Radius 35
  87.   Texture < Color Black { Due to missing 'Alpha' support, make it black }
  88.             Specular 1
  89.             SpecColor White
  90.             Phong 50
  91.             Transparency 1 IOR 0.8 >
  92.   NoSurface Opaque NoBumpmap >
  93.  
  94.  
  95. { Coming up is some stuff to make the scene look as if I had five months 
  96.   work to compose it. }
  97.  
  98. Ellips < Position (150 0 100) Radius (40 20 10)
  99.          NoTexture
  100.          Yellow_Marble
  101.          Opaque
  102.  
  103.          { Fuck up the normals, so that it looks as if the ellips is bumpy }
  104.          Bumpmap < plasmatic scale (1 1 1) amplitude 1 > >
  105.  
  106. Ellips < Position (150 70 0) Rotateview (0 -30 0) Radius (40 20 10)
  107.          NoTexture
  108.          Yellow_Marble
  109.          Opaque
  110.          Bumpmap < plasmatic scale (1 1 1) amplitude 1 >>
  111.  
  112. Ellips < Position (120 0 80) Rotateview (0 50 0) Radius (40 20 10)
  113.          NoTexture
  114.          Yellow_Marble
  115.          Opaque
  116.          Bumpmap < plasmatic scale (1 1 1) amplitude 1 >>
  117.  
  118. { Reflective sphere with stronger bumpmapping, to show that feature clearer }
  119.  
  120. Sphere
  121. < Position (50 0 -100) Radius 40
  122.   Texture < Color (0.05 0.05 0.05)
  123.             Specular 1
  124.             Speccolor White Phong 200
  125.             Reflection 1 >
  126.   NoSurface Opaque
  127.   Bumpmap <plasmatic scale (3 3 3) amplitude 2 >
  128. >
  129.  
  130. { Simple cylinder 'coz there's too much mass in the right-lower corner 
  131.   without it (yeah, some real Design here !)                            }
  132.  
  133. ZCylinder
  134. < Position (-100 80 0) Rotateview (0 15 0) Radius 10
  135.   Texture < Diffuse 0.7
  136.             Specular 0.3
  137.             Speccolor Blue
  138.             Phong 30
  139.             Reflection 0.4 >
  140.  
  141.   { Slightly spotted }
  142.   Surface < Plasmatic Position (0 0 0) Scale    (3 3 3) Turbulence 5
  143.             ColorMap < 0   Color (0 0 0)
  144.                            Color (0.5 0 0)
  145.                        0.5 Color (0.5 0 0)
  146.                            Color (1 1 0)
  147.                        1   Color (1 1 0)
  148.                            Color Black > > Nosurface
  149.   Opaque NoBumpmap >
  150.  
  151. Camera
  152. < Rotatepos (-30 10 5) Rotateview (-30 10 5) >
  153.  
  154. light < position (-100 100 -300)
  155.         color (80 0 120) >
  156.  
  157. light < position (50 100 -200)
  158.         color (255 255 255) >.
  159.  
  160. That's it.  For more info on the raytracer, its possibilities and its
  161. shortcomings, get your hands on the previously released
  162.  
  163. CSG4.ZIP      with a simple but 'AntiOpaque' showing picture and
  164.  
  165. KDR.FLI       a fli file showing marble, bumpmapping, movable camera.
  166.  
  167. I have absolutely no idea when RayRace 3 is to be released, as it's extremely
  168. buggy; someone said I should never have called it 'RayRace 3', especially
  169. that '3' at the end seemed ... eh... you know.  Anyway.
  170. We have, beside the tracer, plans to produce more stuff, like something to
  171. liven up your desktop with, and even a game, becoz we feel there's a good old
  172. game on our attic which might be worth a VGA-rebirth...  We'll (North)sea !
  173.  
  174. Greetings, Pointer / DH
  175.