Advertisement
Kroppeek

povray chess

Jun 5th, 2019
2,536
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. #version 3.6;
  3. global_settings{ assumed_gamma 1.0 }
  4. #default{ finish{ ambient 0.1 diffuse 0.9 }}
  5.  
  6. #include "colors.inc"
  7. #include "textures.inc"
  8. #include "glass.inc"
  9. #include "metals.inc"
  10. #include "golds.inc"
  11. #include "stones.inc"
  12. #include "woods.inc"
  13. #include "shapes.inc"
  14. #include "shapes2.inc"
  15. #include "functions.inc"
  16. #include "math.inc"
  17. #include "transforms.inc"
  18.  
  19. #declare Camera_0 = camera { angle 70      
  20.                             location  <0.0 , 1.0 ,-2.0>
  21.                             right     x*image_width/image_height
  22.                             look_at   <0.0 , 0.2 , 0.0>}
  23. #declare Camera_1 = camera { angle 90  
  24.                             location  <2.0 , 2.5 ,-3.0>
  25.                             right     x*image_width/image_height
  26.                             look_at   <0.0 , 1.0 , 0.0>}
  27. #declare Camera_2 = camera { angle 90
  28.                             location  <3.0 , 1.0 , 0.0>
  29.                             right     x*image_width/image_height
  30.                             look_at   <0.0 , 1.0 , 0.0>}
  31. #declare Camera_3 = camera { angle 90        
  32.                             location  <0.0 , 3.0 ,-0.001>
  33.                             right     x*image_width/image_height
  34.                             look_at   <0.0 , 1.0 , 0.0>}
  35. camera{Camera_0}
  36.  
  37. light_source{<-1500,2500,-2500> color White}
  38.  
  39.  
  40. plane{<0,1,0>,1 hollow  
  41.        texture{ pigment{ bozo turbulence 0.92
  42.                          color_map { [0.00 rgb <0.20, 0.20, 1.0>*0.9]
  43.                                      [0.50 rgb <0.20, 0.20, 1.0>*0.9]
  44.                                      [0.70 rgb <1,1,1>]
  45.                                      [0.85 rgb <0.25,0.25,0.25>]
  46.                                      [1.0 rgb <0.5,0.5,0.5>]}
  47.                         scale<1,1,1.5>*2.5  translate< -1.25,0,0>
  48.                        }
  49.                 finish {ambient 1 diffuse 0} }      
  50.        scale 10000}
  51.  
  52. fog { fog_type   2
  53.       distance   20
  54.       color      <1.00,0.98,0.9>  
  55.       fog_offset 0.1
  56.       fog_alt    1
  57.       turbulence 1.8
  58.     }
  59.  
  60. plane{ <0,1,0>, 0
  61.        texture{ pigment{ color rgb <1.00,0.95,0.8>*0.8}
  62.                 normal { bumps 0.75 scale 0.0125  }
  63.                 finish { phong 0.1 }
  64.               }
  65.      }
  66.  
  67. #declare Chessboard =
  68. union{
  69. box { <-1.01, 0.00, -1.01>,< 1.01, 0.049, 1.01>  
  70.       texture{ pigment{ color rgb< 0.75, 0.5, 0.30>*0.5 }  
  71.              }
  72.     }
  73. box { <-1.00, 0.00, -1.00>,< 1.00, 0.05, 1.00>  
  74.       texture{ pigment{ checker color rgb<1,1,1> color rgb<0,0,0> }  
  75.                scale 0.25
  76.              }  
  77.     }
  78. }
  79.  
  80.  
  81. object{ Chessboard
  82.         scale 1
  83.         rotate<-25,30,0>
  84.         translate<0.05,0.6,0>
  85.       }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement