home *** CD-ROM | disk | FTP | other *** search
/ PC Open 10 / pcopen10.iso / giochi / behemot / examples / t_csg1.rt < prev   
Encoding:
Text File  |  1994-01-06  |  1.1 KB  |  91 lines

  1. { vrc
  2.     vrp ( 0 , 0 , 0 );
  3.     prp ( 0 , 0 , -1 );
  4.     vup ( 0 , 0 , 1 );
  5.     vpn ( 1 , 0 , 0 );
  6.     umax -0.5;
  7.     umin 0.5;
  8.     vmax -0.5;
  9.     vmin 0.5;
  10.     type 1;
  11.     f 1;
  12.     b 0;
  13.     fon 0;
  14.     bon 0;
  15. }
  16. { param
  17.  
  18.   toll 0.01;
  19.   mode 0;
  20.   shade phong;
  21.   anti_alias 0;
  22.   anti_al_toll 0.05;
  23.   dimx 256;
  24.   dimy 256;
  25.   ambientcolor (1,1,1);
  26.   backcolor (0,0,0);
  27. }
  28.  
  29. { material
  30.         name m1;
  31.         model { phong
  32.  
  33.           Ks 0.3;
  34.           Kt 0;
  35.           ni 1;
  36.           Ka 0.1;
  37.           Kd 0.45;
  38.           n 25;
  39.           Od (0.714,0.9,0.63);
  40.           Os (0.64,0.69,0.13);
  41.         }
  42. }
  43.  
  44.  
  45. {lamp
  46. name lamp1;
  47. model { pointlamp
  48. pos ( 5 , 0 , 7 );
  49.     color (0.7,0.7,0.7);
  50. }
  51. }
  52. {lamp
  53. name lamp2;
  54. model { pointlamp
  55. pos ( 0 , 0 , 0 );
  56.     color (0.95,0.95,0.95);
  57. }
  58. }
  59.  
  60. { object
  61.     name tcsg;
  62.     material m1;
  63.     model { intersect
  64. first
  65.  
  66. {object
  67. name sph1;
  68. material m1;
  69. toll 0.01;
  70. model     { sphere
  71.         center ( 5 , 0.5 , 0 );
  72.         radius 0.95;
  73.     }
  74. };
  75.  
  76. second
  77.  
  78. {object
  79. name sph1;
  80. material m1;
  81. toll 0.01;
  82. model     { sphere
  83.         center ( 5 , -0.5 , 0 );
  84.         radius 0.95;
  85.     }
  86. };
  87.  
  88. }
  89. }
  90. .
  91.