Guest User

some_yahoo

a guest
Jan 31st, 2010
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.64 KB | None | 0 0
  1. // Persistence of Vision Ray Tracer Scene Description File
  2. // File: starship.pov
  3. // Vers: 3.6
  4. // Desc: A simple starship corridor
  5. // Date: 1/30/2010
  6. // Auth: Bryan Valencia
  7.  
  8.  
  9.  
  10. #include "colors.inc"
  11. #include "textures.inc"
  12.  
  13. #declare PlainWhite=texture{
  14. pigment {color rgb 1}
  15. finish {phong 1 specular 1 metallic}
  16. normal {cells 0.1}
  17. }
  18.  
  19. #declare shiny_floor=texture{
  20. pigment{color rgb .20}
  21. finish{reflection .2 phong 1 metallic}
  22. normal{bumps 0.1}
  23. }
  24.  
  25. #declare windows=texture{
  26. pigment{cells
  27. color_map{
  28. [0 0.1 color rgb 7 color rgb 7]
  29. [0.1 1 color rgb .25 color rgb .25]
  30. }
  31. }
  32. }
  33.  
  34. #declare neon=texture{
  35. pigment{color rgb<0.25,1,0.3>}
  36. finish{ambient 1}
  37. }
  38.  
  39. #declare thefloor=box{
  40. <-15,-1,-30><15,0,30>
  41. texture{New_Penny}
  42. }
  43.  
  44.  
  45.  
  46. #declare k=sqrt((10*10)/2);
  47. #declare lowerwalls=difference{
  48. box{<-20,-1,-30><20,5,30>}
  49. box{<-k,-k,-31><k,k,31>
  50. rotate z*45
  51. translate <0,5,0>
  52. }
  53. texture{PlainWhite}
  54. }
  55.  
  56.  
  57. #declare upperwalls=object{
  58. lowerwalls
  59. translate y*-5
  60. scale <1,-3,1>
  61. translate y*5
  62.  
  63. }
  64.  
  65. #declare walls=union{
  66. object{lowerwalls}
  67. object{upperwalls}
  68. }
  69.  
  70.  
  71. #declare doordrill=difference{
  72. box{<-2,-1,-1><2,10,1>}
  73. union{
  74. box{<-5,-10,-2><-2,10,2> rotate z* 10 translate y*5}
  75. box{< 5,-10,-2>< 2,10,2> rotate z*-10 translate y*5}
  76. box{<-5,-10,-2><-2,10,2> rotate z*-10 translate y*5}
  77. box{< 5,-10,-2>< 2,10,2> rotate z* 10 translate y*5}
  78. }
  79. }
  80.  
  81. //object{doordrill texture{Aluminum}}
  82.  
  83. #declare walls2=difference{
  84. object{walls}
  85. union{
  86. object{doordrill rotate y*90 scale <50,1,1>}
  87. object{doordrill rotate y*90 scale <50,1,1> translate z* 10}
  88. object{doordrill rotate y*90 scale <50,1,1> translate z*-10}
  89. object{doordrill rotate y*90 scale <50,1,1> translate z* 20}
  90. object{doordrill rotate y*90 scale <50,1,1> translate z*-20}
  91. }
  92. texture{PlainWhite}
  93. }
  94.  
  95. #declare doorlights=union{
  96. light_source{0 rgb .4 translate<-15,9.9,0> media_interaction off}
  97. }
  98.  
  99. #declare ceiling=difference{
  100. box{<-10,20,-30><10,30,30>}
  101. box{<-4,19,-29><4,28,29>}
  102. texture{ PlainWhite }
  103. }
  104.  
  105. //ceiling lights
  106. #declare ceil_light=light_source{
  107. <0,25,0> color rgb 1
  108. spotlight
  109. point_at <0, 0, 0>
  110. radius 45
  111. tightness 20
  112. falloff 70
  113. media_interaction on
  114. media_attenuation off
  115. }
  116.  
  117.  
  118. #declare media_box=box{
  119. <-10,-10,-50><10,30,200>
  120. hollow
  121. pigment{color rgbf 1}
  122. interior{
  123. media {
  124. intervals 9
  125. scattering { 1, rgb 0.01 }
  126. samples 1, 10
  127. confidence 1/10
  128. variance 1/1000
  129. ratio 0.9
  130. }
  131. }
  132. }
  133.  
  134. #declare sphere_room=difference{
  135. box{-100,100}
  136. union{
  137. sphere{0,99 texture{windows scale <5,3,1>/5}}
  138. object{doordrill scale <2,1,5> translate z*-100}
  139. }
  140. texture{PlainWhite}
  141. translate z*130
  142. }
  143.  
  144. #declare engine_gizmo=union{
  145. cone{<0,-100,0>,50,<0,-1,0>,1}
  146. cone{<0,100,0>,50,<0,1,0>,1}
  147. texture{New_Penny}
  148. translate z*130
  149. }
  150.  
  151.  
  152. //door numbers
  153. #declare xfactor=7.7;
  154. union{
  155. //cylinder{<0,0,0><0,20,0>,0.1}
  156. text {ttf "crystal.ttf", "1171", 2, 0 translate <-1,0,0> rotate y*90 translate <xfactor,11,-20>}
  157. text {ttf "crystal.ttf", "1172", 2, 0 translate <-1,0,0> rotate y*-90 translate <-xfactor,11,-20>}
  158.  
  159. text {ttf "crystal.ttf", "1173", 2, 0 translate <-1,0,0> rotate y*90 translate <xfactor,11,-10>}
  160. text {ttf "crystal.ttf", "1174", 2, 0 translate <-1,0,0> rotate y*-90 translate <-xfactor,11,-10>}
  161.  
  162. text {ttf "crystal.ttf", "1175", 2, 0 translate <-1,0,0> rotate y*90 translate <xfactor,11,0>}
  163. text {ttf "crystal.ttf", "1176", 2, 0 translate <-1,0,0> rotate y*-90 translate <-xfactor,11,0>}
  164.  
  165. text {ttf "crystal.ttf", "1177", 2, 0 translate <-1,0,0> rotate y*90 translate <xfactor,11,10>}
  166. text {ttf "crystal.ttf", "1178", 2, 0 translate <-1,0,0> rotate y*-90 translate <-xfactor,11,10>}
  167.  
  168. text {ttf "crystal.ttf", "1179", 2, 0 translate <-1,0,0> rotate y*90 translate <xfactor,11,20>}
  169. text {ttf "crystal.ttf", "1180", 2, 0 translate <-1,0,0> rotate y*-90 translate <-xfactor,11,20>}
  170.  
  171. text {ttf "verdana.ttf", "Reactor", .2, 0 translate <-1.6,0,0> scale 2 translate <0,11,29.9>}
  172.  
  173. texture{neon}
  174. }
  175.  
  176.  
  177.  
  178. light_source{<0,0,130>
  179. color rgb <2,1,1>
  180. media_interaction on
  181. media_attenuation off
  182. }
  183.  
  184. light_source{<0,20,-29> color rgb <0,.1,0>
  185. media_interaction off
  186. }
  187.  
  188. camera {
  189. location <0.0, 5.0, -25.0>
  190. look_at <0.0, 0.0, 100>
  191. right x*image_width/image_height
  192. }
  193.  
  194.  
  195. object{thefloor}
  196. object{walls2}
  197. object{ceiling}
  198. object{doorlights}
  199.  
  200. object{ ceil_light }
  201. object{ ceil_light translate z* 20}
  202. object{ ceil_light translate z*-20}
  203.  
  204. object{media_box}
  205. object{sphere_room}
  206. object{engine_gizmo}
  207.  
  208.  
  209. //#include "girls_POV_geom.inc"
  210. //#object{girls_ scale 6 translate <-1,0,3>}
Add Comment
Please, Sign In to add comment