Advertisement
Guest User

Untitled

a guest
Aug 17th, 2017
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //--------------------------------------------------------------------------
  2. #version 3.6; // 3.7;
  3. global_settings{ assumed_gamma 1.0 }
  4.  
  5. //--------------------------------------------------------------------------
  6.  
  7. #include "colors.inc"
  8. #include "textures.inc"
  9. // camera -----------------------------------------------------------
  10.  
  11. camera {
  12.     angle 120
  13.     location    <0.0 , 0.0 ,  2.0>
  14.     look_at     <0.0 , 0.0 ,  0.0>
  15. }
  16.  
  17. // sun ---------------------------------------------------------------
  18. light_source{
  19.     <1500,2500,-2500>
  20.     color White
  21. }
  22.  
  23. background {
  24.     color <1,1,1>
  25. }
  26.  
  27. cylinder {
  28.     <0,-64000,0>, <0, 64000, 0>, 8000
  29.  
  30.     pigment{
  31.         gradient <0,1,0>
  32.         color_map {
  33.             [0 rgb <1.00,1.00,1.00>]
  34.             [1 rgb <0.00,0.50,1.00>]
  35.         }
  36.         turbulence 0.15 + (clock/100)
  37.         scale <8000,64000,8000>
  38.         translate <0,-32000,0>
  39.        
  40.     }
  41.     finish {
  42.         ambient 1.00
  43.     }
  44.    
  45.     hollow
  46.    
  47.     rotate <0,clock*10,0>
  48. }
  49.  
  50. #if (clock > 15)
  51. box {
  52.     <-2,-2,0>, <2,2,0>
  53.    
  54.     pigment {
  55.         #if ((clock > 10) & (clock < 20))
  56.         rgbt <0, 0, 0, 1-((clock-15)/5)>
  57.         #else
  58.         rgb <0, 0, 0>
  59.         #end
  60.     }
  61.    
  62.     finish {
  63.         ambient 1.0
  64.     }
  65.    
  66.     rotate <0,180,0>
  67.     translate <0,0, 1.2>
  68. }
  69. #end
  70.  
  71.  
  72. box {
  73.     <-1,-1,0>, <1,1,0>
  74.    
  75.     texture {
  76.         pigment {
  77.             image_map {
  78.                 png "titlescreen.png"
  79.                 interpolate 4
  80.                 once
  81.             }
  82.            
  83.             translate <-0.5,-0.5,1>
  84.             scale < 2,  2, 1>
  85.            
  86.         }
  87.        
  88.         finish {
  89.             ambient 1.0
  90.         }
  91.     }
  92.    
  93.     rotate <0,180,0>
  94.     #if (clock < 15)
  95.     translate <0,0, 1.3 - (pow(15-clock,3)/2)>
  96.     #else
  97.     translate <0,0, 1.3>
  98.     #end
  99. }
  100.  
  101.  
  102. //--------------------------------------------- rgbf
  103.  
  104. cylinder {
  105.     <0,-32000,0>, <0, 32000, 0>, 100
  106.     pigment{
  107.         rgbt <0, 0, 0, 0.75>
  108.     }
  109.    
  110.     hollow
  111.     interior{
  112.         media{
  113.             emission <1,1,1>
  114.             scattering{
  115.                 1, <1,1,1>
  116.             }
  117.             density{
  118.                 spherical
  119.                 turbulence 1.5 + (clock/50)
  120.                 color_map {
  121.                     [0 rgb <0,0,0>]
  122.                     [1 rgb <0.125,0.125,0.125>]
  123.                 }
  124.             }
  125.             rotate <0, -clock * 5, 0>
  126.             scale <200, 200, 200>
  127.         }
  128.     }
  129. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement