home *** CD-ROM | disk | FTP | other *** search
/ APDL Public Domain 1 / APDL_PD1A.iso / raytrace / rayshade / examples / scripts / spaceship < prev    next >
Encoding:
Text File  |  1988-02-03  |  1.9 KB  |  91 lines

  1. /* Converted using rsconvert */
  2. /*
  3.  * solids.ray
  4.  *
  5.  * Example rayshade input file.
  6.  *
  7.  * Render using:
  8.  *      rayshade solids.ray > solids.rle
  9.  *
  10.  * For previewing purposes, you may wish to use the -P option.
  11.  * Craig Kolb 9/89
  12.  */
  13. eyep 8 -30 9 
  14. screen 160 128 
  15.  
  16. maxdepth 1
  17. background 0 0 0
  18. /*light 1.4 extended  1.4  -15 20 15
  19. */
  20. light 1.4 point -15 20 15
  21. light 1.3 point 7 -10 12
  22.  
  23. surface fire 
  24.         ambient .03 0 0 
  25.         diffuse .1 .1 0 
  26.         transp  .9
  27.         body    1 .8 .3  /*3.5 3.5 3.5 */
  28. surface glass
  29.         ambient  0.01 0.01 0.2 
  30.         diffuse  0.1  0.2  0.4 
  31.         specular 0.8  0.8  0.8 
  32.         specpow 64 
  33.         reflect 0.3
  34.         transp  .7
  35. surface white 
  36.         ambient 0.2 0.2 0.2
  37.         diffuse 0.4 0.4 0.4
  38.         specular 0.2 0.2 0.2
  39.         specpow 18
  40.  
  41.  
  42. name blow1 list
  43.   sphere   fire  1  0 0 0 scale 1 3 1 translate 0 -11.7 0
  44.   cone     fire  1  0 -11.7 0  0  0 -17 0
  45. end
  46. name blow2 list
  47.   sphere   fire  1.1 0 0 0 scale 1 3 1 translate -4 -13.65 0
  48.   cone     fire  1  -4 -13.5 0  0  -4 -19 0
  49. end
  50. name blow3 list
  51.   sphere   fire  1.1 0 0 0 scale 1 3 1 translate  4 -13.65 0
  52.   cone     fire  1  4 -13.5 0  0  4 -19 0
  53. end
  54. name cockpit list
  55.   union
  56.     list
  57.       cone     glass 1.2  3 7.5 1.3  0.5  3 3 2
  58.       disc     glass 1.2  3 7.5 1.3  0 1 0
  59.       disc     glass 0.5  3 3 2      0 -1 0
  60.     end
  61.     sphere   glass 1.2  3 7.5 1.3
  62.   end
  63. end
  64.  
  65. name EnemySpacecraft grid 5 5 5
  66.   /* Main Body */
  67.   intersect
  68.     sphere white 20 0 0 17 
  69.     sphere white 20 0 0 -17 
  70.   end
  71.  
  72.   sphere white 2.2 0 0 0 scale 5 5 1
  73.  
  74.   /* Cockpit */
  75.   object   cockpit
  76.   /* Middle engine */
  77.   cylinder white 1.5  0 0 0  0 -10.2 0
  78.   sphere   white 1.5  0 -10.2 0
  79.   object   blow1
  80.   /* Left engine */
  81.   cylinder white 1.65 -4 0 0 -4 -12 0
  82.   sphere   white 1.65 -4 -12 0
  83.   object   blow2
  84.   /* Right engine */
  85.   cylinder white 1.65 4 0 0 4 -12 0
  86.   sphere   white 1.65 4 -12 0
  87.   object   blow3
  88. end
  89.  
  90.  
  91. object EnemySpacecraft  rotate 0 0 1 0