home *** CD-ROM | disk | FTP | other *** search
/ Chip 2000 August / chip_08_2000.iso / aktualnosci / shareware / Rhinoceros / rh11eval_20000320.exe / %MAINDIR% / POV / materials.inc < prev    next >
Encoding:
Text File  |  2000-06-08  |  2.6 KB  |  166 lines

  1. // Rhino material definition file for POV-Ray 3.1 and up
  2. //
  3. // Variables you can use in the object material definitions:
  4. // rh_color = object color and transparency
  5. // rh_layercolor = object layer color
  6. // rh_phong = if surface in Rhino has highlight, this is 1, otherwise it is 0
  7. // rh_phong_size = the highlight size, 1 for big highlight and 100 for a small one
  8. // rh_image_map = texture map name. Remember to use PNG format!
  9. // rh_bump_map = bump map name. Remember to use PNG format!
  10.  
  11.  
  12. #include "textures.inc"
  13.  
  14.  
  15. #declare plastic = material {
  16. texture {
  17.   pigment { rgbf rh_color }
  18.   finish { 
  19.     ambient 1
  20.     diffuse 1
  21.         phong rh_phong
  22.         phong_size rh_phong_size
  23.     }
  24.   }
  25. }
  26.  
  27.  
  28. #declare dented_plastic = material {
  29. texture {
  30.   pigment { rgbf rh_color }
  31.   finish { 
  32.     ambient 1
  33.     diffuse 1
  34.         phong rh_phong
  35.         phong_size rh_phong_size
  36.     }
  37.   normal { 
  38.     bumps 1
  39.     scale 0.3
  40.     }
  41.   }
  42. }
  43.  
  44.  
  45. #declare shiny = material {
  46. texture {
  47.   pigment { rgbf rh_color }
  48.   finish  {
  49.     ambient 1
  50.     diffuse 1
  51.     specular 1
  52.     roughness 0.05
  53.     reflection 0.4
  54.     }
  55.   }
  56. }
  57.  
  58. #declare dented_shiny = material {
  59. texture {
  60.   pigment { rgbf rh_color }
  61.   finish  {
  62.     ambient 1
  63.     diffuse 1
  64.         brilliance 0.1
  65.     specular 1
  66.     roughness 0.05
  67.     reflection 0.4
  68.     }
  69.   normal { 
  70.     bumps 1
  71.     scale 0.3
  72.     }
  73.   }
  74. }
  75.  
  76.  
  77. #declare shinymetal = material {
  78. texture {
  79.   pigment { rgbf rh_color }
  80.   finish  {
  81.     ambient 1
  82.     diffuse 0.1
  83.     specular 1
  84.     roughness 0.05
  85.     metallic 1
  86.     reflection rh_color
  87.     }
  88.   }
  89. }
  90.  
  91.  
  92. #declare dented_shinymetal = material {
  93. texture {
  94.   pigment { rgbf rh_color }
  95.   finish  {
  96.     ambient 1
  97.     diffuse 0.1
  98.     specular 1
  99.     roughness 0.05
  100.     metallic 1
  101.     reflection rh_color
  102.     }
  103.   normal { 
  104.     bumps 1
  105.     scale 0.3
  106.     }
  107.   }
  108. }
  109.  
  110. #declare rough_shinymetal = material {
  111. texture {
  112.   pigment { rgbf rh_color }
  113.   finish  {
  114.     ambient 1
  115.     diffuse 0.1
  116.     specular 1
  117.     roughness 0.05
  118.     metallic 1
  119.     reflection rh_color
  120.     }
  121.   normal { 
  122.     bumps 0.1
  123.     scale 0.01
  124.     }
  125.   }
  126. }
  127.  
  128.  
  129. #declare glass = material {
  130. texture {
  131.   pigment { rgbf rh_color}
  132.   finish  {
  133.     ambient 0.2
  134.     diffuse 0
  135.     specular 1
  136.     roughness 0.05
  137.     reflection 0.4
  138.     }
  139.   }
  140. interior { 
  141.   ior 1.5
  142.   caustics 1
  143.   }
  144. }
  145.  
  146.  
  147. #declare textured_shiny = material {
  148. texture {
  149.   pigment { 
  150.         image_map { 
  151.             png rh_image_map
  152.             map_type 1
  153.         }
  154.     }
  155.   finish  {
  156.     ambient 1
  157.     diffuse 1
  158.     specular 1
  159.     roughness 0.05
  160.     reflection 0.4
  161.     }
  162.   }
  163. }
  164.  
  165.  
  166.