Descriptions and Examples for the POV-Ray Raytracer by Friedrich A. Lohmüller
About Loops with POV-Ray     
Italiano Italiano
Français français
Deutsch Deutsch

Home
- POV-Ray Tutorial

  Loops in POV-Ray
  1. For + While
       Comparison
  2. Linear
      Transformations
  3. Circular
      Transformations
  4. Moebius etc.
  5. Screws
       & Spirals
>6. Twisting
       Spirals
  7. Snails
       & Ammonites
  8. Spherical Spirals 1
  9. Spherical Spirals 2
 10. Fibonacci Spirals
                                       
 
 
  - Download

Loops and Twisting Spirals

In the last samples we mostly used spheres. If we use ellipsoids instead then we win the possibility to turn them around in a Moebius like way.

First a spiral made with ellipsoides:

//-------------------------------------
#declare Ball =
sphere{ <0,0,0>,0.45
        scale <0.7,1.5,1> // !!!
        texture{
          pigment{
             color rgb<1,0.6,0>}
          finish { phong 1}}}

//the rest like in the previous sample!

Scene file for POV-Ray: povloop9b.pov
or: povloop9b.txt

Now we twist these ellipsoids around their way:

//------------------------------------
...
#while (Nr< EndNr)
 object{Ball
        rotate <0,0,Nr*0.5>  // !!!
        translate<Radius0+Nr*D,0,0>
        rotate<0,Nr * 360/N_p_rev ,0>}
 #declare Nr = Nr+1;  // next Nr
...
//------------------------------------

Scene file for POV-Ray: povloop9d.pov
or: povloop9d.txt

Twisting stronger we see what we get:
- A new strange live form?

//------------------------------------
...
#while (Nr< EndNr)
 object{Ball
        rotate <0,0,Nr*3.5>  // !!!
        translate<Radius0+Nr*D,0,0>
        rotate<0,Nr * 360/N_p_rev ,0>}
 #declare Nr = Nr+1;  // next Nr
...
//------------------------------------

Scene file for POV-Ray: povloop9e.pov
or: povloop9e.txt


top

© Friedrich A. Lohmüller, 2014
www.f-lohmueller.de