daily pastebin goal
33%
SHARE
TWEET

NESTED-QUATERNIONS.pov

a guest Sep 14th, 2013 47 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //Pov Ray//
  2.  
  3.  
  4. //Alij - Quaternion Nest - seed file for rendering quaternions september 2013 //
  5.  
  6.  
  7. #include "golds.inc"
  8. #include "metals.inc"
  9. #include "finish.inc"
  10. #include "colors.inc"
  11. #include "glass.inc"
  12. #include "textures.inc"
  13.  
  14.  
  15. #declare VP = <-2,1.5,1.5>;
  16. #declare VU = <0,1,0>;
  17. #declare VD = vnormalize(<0,0,0> - VP);
  18. #declare VR = vcross(VU,VD);
  19. #declare ConstC = <-0.187,0.74,-0.03,-0.752>;  
  20. #declare ConstD = <-0.087,0.84,-0.03,-0.452>;
  21. #declare ConstE = <-0.040,0.26,-0.60,-0.85>;
  22. #declare SLICEDIST = 0.01;
  23. #declare Use_Radiosity = 1;
  24. #declare Soft_Shadows = 1;
  25. global_settings {
  26. assumed_gamma 2.5  
  27. #ifdef (Use_Radiosity)
  28.       radiosity { }
  29. #end    }
  30.  
  31.    
  32. camera {
  33.    location VP
  34.    up y
  35.    right x
  36.    angle 50
  37.    sky VU
  38.    look_at VD
  39. }
  40.  
  41. global_settings {
  42.    ambient_light
  43.    rgb <0.560784,0.560784,0.737255>
  44. }
  45.    
  46.  
  47.  
  48.  
  49.    
  50. background {
  51.    color <0.560784,0.560784,0.737255>
  52. }
  53.  
  54.  sky_sphere {
  55.  
  56.     pigment {
  57.  
  58.       gradient y
  59.  
  60.       color_map {
  61.  
  62.         [0 color SlateBlue ]
  63.  
  64.         [1 color Silver]
  65.  
  66.       }
  67.  
  68.       scale 1
  69.  
  70.       translate -2
  71.  
  72.     }
  73.       }
  74. light_source {
  75.    VP + VU + 2*VR
  76.    color rgb <0.060,0.030,0.73>
  77. }
  78. light_source {
  79.    VP - VR
  80.    color rgb <0.560784,0.560784,0.737255>
  81. }
  82.  
  83.  
  84. julia_fractal {
  85.    ConstE
  86.   quaternion
  87.   sqr
  88.   max_iteration 4
  89.   precision 900
  90.   slice <0,0,0,1> SLICEDIST
  91.   texture { T_Brass_2D }  
  92.   scale<-0.85,0.85,0.85>
  93.   rotate<80,80,10>
  94.   translate<0,0.0,0>  
  95.    
  96.   clipped_by { plane { <0, 1, 0>, 0.25
  97.   rotate<90,90,0>  
  98.   scale<-0.1,0.1,0.1>  
  99.   translate<0.5,0,0>
  100.   }
  101.   }
  102.   }
  103.  
  104.  julia_fractal {
  105.    ConstE
  106.   quaternion
  107.   sqr
  108.   max_iteration 5
  109.   precision 900
  110.   slice <0,0,0,1> SLICEDIST
  111.   texture { T_Silver_5A }
  112.   scale<-0.85,0.85,0.85>
  113.   rotate<80,80,10>
  114.   translate<0,0.0,0>  
  115.    
  116.   clipped_by { plane { <0, 1, 0>, 0.25
  117.   rotate<90,90,0>  
  118.   scale<-0.1,0.1,0.1>  
  119.   translate<0.3,0,0>
  120.   }
  121.   }
  122.   }
  123.  
  124.   julia_fractal {
  125.    ConstE
  126.   quaternion
  127.   sqr
  128.   max_iteration 6
  129.   precision 900
  130.   slice <0,0,0,1> SLICEDIST
  131.   texture { T_Brass_2D }  
  132.   scale<-0.85,0.85,0.85>
  133.   rotate<80,80,10>
  134.   translate<0,0.0,0>  
  135.    
  136.   clipped_by { plane { <0, 1, 0>, 0.25
  137.   rotate<90,90,0>  
  138.   scale<-0.1,0.1,0.1>  
  139.   translate<0.2,0,0>
  140.   }
  141.   }
  142.   }
  143.  
  144.   julia_fractal {
  145.    ConstE
  146.   quaternion
  147.   sqr
  148.   max_iteration 7
  149.   precision 900
  150.   slice <0,0,0,1> SLICEDIST
  151.  texture { T_Silver_5A }
  152.   scale<-0.85,0.85,0.85>
  153.   rotate<80,80,10>
  154.   translate<0,0.0,0>  
  155.    
  156.   clipped_by { plane { <0, 1, 0>, 0.25
  157.   rotate<90,90,0>  
  158.   scale<-0.1,0.1,0.1>  
  159.   translate<0.1,0,0>
  160.   }
  161.   }
  162.   }
  163.  
  164.   julia_fractal {
  165.    ConstE
  166.   quaternion
  167.   sqr
  168.   max_iteration 8
  169.   precision 900
  170.   slice <0,0,0,1> SLICEDIST
  171.   texture { T_Brass_2D }  
  172.   scale<-0.85,0.85,0.85>
  173.   rotate<80,80,10>
  174.   translate<0,0.0,0>  
  175.    
  176.   clipped_by { plane { <0, 1, 0>, 0.25
  177.   rotate<90,90,0>  
  178.   scale<-0.1,0.1,0.1>  
  179.   translate<0.0,0,0>
  180.   }
  181.   }
  182.   }    
  183.  
  184.   julia_fractal {
  185.    ConstE
  186.   quaternion
  187.   sqr
  188.   max_iteration 9
  189.   precision 900
  190.   slice <0,0,0,1> SLICEDIST
  191.   texture { T_Silver_5A }
  192.   scale<-0.85,0.85,0.85>
  193.   rotate<80,80,10>
  194.   translate<0,0.0,0>  
  195.    
  196.   clipped_by { plane { <0, 1, 0>, 0.25
  197.   rotate<90,90,0>  
  198.   scale<-0.1,0.1,0.1>  
  199.   translate<-0.1,0,0>
  200.   }
  201.   }
  202.   }  
  203.  
  204.   julia_fractal {
  205.    ConstE
  206.   quaternion
  207.   sqr
  208.   max_iteration 10
  209.   precision 900
  210.   slice <0,0,0,1> SLICEDIST
  211.   texture { T_Brass_2D }  
  212.   scale<-0.85,0.85,0.85>
  213.   rotate<80,80,10>
  214.   translate<0,0.0,0>  
  215.    
  216.   clipped_by { plane { <0, 1, 0>, 0.25
  217.   rotate<90,90,0>  
  218.   scale<-0.1,0.1,0.1>  
  219.   translate<-0.2,0,0>
  220.   }
  221.   }
  222.   }  
  223.  
  224.   julia_fractal {
  225.    ConstE
  226.   quaternion
  227.   sqr
  228.   max_iteration 11
  229.   precision 900
  230.   slice <0,0,0,1> SLICEDIST
  231.   texture { T_Silver_5A }
  232.   scale<-0.85,0.85,0.85>
  233.   rotate<80,80,10>
  234.   translate<0,0.0,0>  
  235.    
  236.   clipped_by { plane { <0, 1, 0>, 0.25
  237.   rotate<90,90,0>  
  238.   scale<-0.1,0.1,0.1>  
  239.   translate<-0.3,0,0>
  240.   }
  241.   }
  242.   }
  243.  
  244.   julia_fractal {
  245.    ConstE
  246.   quaternion
  247.   sqr
  248.   max_iteration 12
  249.   precision 900
  250.   slice <0,0,0,1> SLICEDIST
  251.   texture { T_Brass_2D }
  252.   scale<-0.85,0.85,0.85>
  253.   rotate<80,80,10>
  254.   translate<0,0.0,0>  
  255.    
  256.   clipped_by { plane { <0, 1, 0>, 0.25
  257.   rotate<90,90,0>  
  258.   scale<-0.1,0.1,0.1>  
  259.   translate<-0.4,0,0>
  260.   }
  261.   }
  262.   }
  263.  
  264.   julia_fractal {
  265.    ConstE
  266.   quaternion
  267.   sqr
  268.   max_iteration 13
  269.   precision 900
  270.   slice <0,0,0,1> SLICEDIST
  271.   texture { T_Silver_5A }
  272.   scale<-0.85,0.85,0.85>
  273.   rotate<80,80,10>
  274.   translate<0,0.0,0>  
  275.    
  276.   clipped_by { plane { <0, 1, 0>, 0.25
  277.   rotate<90,90,0>  
  278.   scale<-0.1,0.1,0.1>  
  279.   translate<-0.5,0,0>
  280.   }
  281.   }
  282.   }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Pastebin PRO 'AUTUMN SPECIAL'!
Get 60% OFF Pastebin PRO accounts!
 
Top