// Chaos1 / The Rosslor Attractor '00.05 // By Tsutomu HIGO E-mail: nj2t-hg@asahi-net.or.jp #version 3.1; #global_settings { assumed_gamma 2.2 } camera { location <100, -200, -300> look_at <-1.2, -1.5, 0> angle 5 } #macro Chaos ( Xo, Yo, Zo, H, A, B, C, D, E, Nend ) #declare X = Xo; #declare Y = Yo; #declare Z = Zo; #declare N = 0; #while (N < Nend) #declare X1 = X + H*A*(-Y-Z); #declare Y1 = Y + H*(X+B*Y); #declare Z1 = Z + H*(E*X*Z+D*X-C*Z); cylinder { 0.05 pigment { color rgb < N/Nend, N/Nend, 1-N/Nend > } finish { reflection 0.5 ambient 0.3 phong 1 diffuse 1 brilliance 1} no_shadow } #declare X = X1; #declare Y = Y1; #declare Z = Z1; #declare N = N+1; #end #end #declare Rosslor = union { Chaos ( 0.1, 0, -0.1, 0.05, 1, 0.36, 4.5, 0.4, 1, 10000 ) translate x*5.5 } object { Rosslor rotate y*120 } object { Rosslor rotate y*240 } object { Rosslor rotate y*0 } light_source { <700, 1000, -3000> color rgb <0.8,1.5,0.8> }