PovRayMan

gigger.pov

Oct 2nd, 2014
598
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Persistence of Vision Ray Tracer Scene Description File
  2. // File: gigger.pov
  3. // Vers: 3.7
  4. // Desc: Good Idea Gaming Nationalistic Flag
  5. // Date: 10/01/2014
  6. // Auth: PovRayMan
  7.  
  8. #include "colors.inc"
  9.  
  10.  
  11. // final camera angle setup for 16:9 rendering.
  12.  
  13. camera {
  14.         location <0,10,-7>
  15.         look_at <0,-1.25,0>
  16.         right 16/9*x
  17.         }
  18.  
  19.  
  20. // boring light source        
  21. //light_source { <-50,50,-50> color White }
  22.  
  23. // fancy light source giving soft shadows
  24. light_source {
  25.   <0,0,0>        
  26.   color rgb 2.0  
  27.   area_light
  28.   <45, 0, 0> <0, 0, 45>
  29.   30, 30
  30.   adaptive 1          
  31.   jitter              
  32.   circular            
  33.   orient              
  34.   //translate <-40,40,20>
  35.   translate <0,40,20>
  36. }
  37.  
  38. // radiosity because reasons
  39. global_settings {
  40.  
  41.       radiosity {
  42.                 pretrace_start 0.08  
  43.                 pretrace_end   0.04
  44.                 count 1600          
  45.                 nearest_count 9    
  46.                 error_bound 4.8    
  47.                 recursion_limit 20
  48.                 low_error_factor .6
  49.                 gray_threshold 0  
  50.                 minimum_reuse 0.015
  51.                 brightness 1      
  52.                 adc_bailout 0.01/2
  53.                 always_sample on
  54.                 }
  55. }
  56.  
  57.  
  58. // Flat red ground
  59. plane{y,0 pigment {Red}}
  60.  
  61.  
  62. /*
  63.  
  64. The "G" Logo
  65.  
  66. I used a pixel art program
  67. to dictate how I should draw
  68. each block as a 1x1x1 pixel
  69. in a 3d space.  This allowed
  70. me to setup the logo to unit
  71. dimensions.
  72.  
  73.  
  74. Each numbered line represents
  75. the appropriate "box" line
  76. object to reference in code.
  77.  
  78.      5
  79.  ||=====
  80.  ||
  81. 4||   3
  82.  ||  ==||
  83.  ||    ||2
  84.  ||    ||
  85.  ||=====
  86.    1
  87.  
  88. */
  89.  
  90. // Toto
  91. #declare G_Logo_Color = Black;
  92.  
  93. // GiG Nation
  94. #declare Gigger =
  95. union{
  96. // 1
  97. box { <0,0,0> <5,1,1> }
  98. // 2
  99. box { <4,0,0> <5,1,3> }
  100. // 3
  101. box { <2,0,2> <5,1,3> }
  102. // 4
  103. box { <0,0,0> <1,1,5> }
  104. // 5
  105. box { <0,0,4> <5,1,5> }
  106. // Toto
  107. pigment {G_Logo_Color }
  108. }
  109.  
  110. // The Pure White platform.
  111. cylinder { <0,0,0> <0,1,0>, 5 pigment { White }}
  112.  
  113. // Declaring the object and translating
  114. // off center to make it look closer in
  115. // the low camera angle.  I probably
  116. // could have designed the camera angle
  117. // more correctly to not need to fake it
  118. // this way but again... reasons.
  119. object { Gigger translate <-2.75,1,-3> rotate -45*y}
RAW Paste Data