home *** CD-ROM | disk | FTP | other *** search
/ Ray Tracing Box / RAY_CD.mdf / raytrace / _pov_dat / circuit / circuit.pov < prev   
Text File  |  1993-11-23  |  2KB  |  66 lines

  1. //  POVRAY version 2 POV file for CircuitBoard*/
  2. //  Written by Don DeGracia,  CIS address: 71331,3517
  3. //  This code is public domain and may be used freely.
  4. //  11/23/93
  5.  
  6. //    To use the circuit board, you must add the line:
  7. //        #include "circuit.inc"  
  8. //    to your POV file, and have the file circuit.inc in your povray library path.
  9.  
  10. //    You then only need to call the object CircuitBoard in your POV file.
  11. //    This may then be scaled, translated and given a texture as you please.
  12. //    Below is a sample POV file for rendering the circuit board. 
  13. //    This file produced the image in CIRCUIT.GIF
  14.  
  15.  
  16. #include "colors.inc"
  17. #include "shapes.inc"
  18. #include "textures.inc"
  19. #include "circuit.inc"  
  20.  
  21. /* Camera and Light Area */
  22.  
  23.  
  24. camera { 
  25.     location        <-0.90667, 9.90667, -5.24000>
  26.     direction       <0, 0, 1.0>
  27.     up              <0, 1, 0>
  28.     right           <1.3333, 0, 0 >
  29.     look_at <-0.94667, -3.69333, 0.93333>
  30. }
  31.  
  32. //Light 1
  33.  
  34.   object
  35.    {
  36.     light_source
  37.         { <0.0, 0.0, 0.0>
  38.         colour rgb <0.85882, 0.43922, 0.85882>
  39.         scale <1.00000, 1.10000, 1.00000> 
  40.         translate < -5.10000, 15.70000, -4.00000> 
  41.         }  /* End Light Shape */
  42.    } /*End object*/
  43.  
  44. //Light 2
  45.  
  46.    object
  47.    {
  48.     light_source
  49.         { <0.0, 0.0, 0.0>
  50.         colour rgb <0.85882, 0.85882, 0.43922>
  51.         scale <1.00000, 1.10000, 1.00000> 
  52.         translate < 8.30000, 15.80000, -4.00000> 
  53.         }  /* End Light Shape */
  54.    } /*End object*/
  55.  
  56. /*********************************/
  57. //Define the scene:
  58.  
  59. object
  60. {
  61.     CircuitBoard
  62.     //scale <x,y,z>          scale the circuit board -
  63.     //translate <x,y,z>          translate it too, just fill in x, y and z
  64.     texture {Chrome_Metal} 
  65.     
  66. } //end object