lehrkraefte:blc:math:povray:lektion7

This is an old revision of the document!


Rendern Sie folgenden Code und studieren Sie diesen. Stellen Sie danach Fragen, wenn Sie etwas nicht verstehen.

Galaxy-gruen.pov
// Kamera
camera { 
  sky <0,0,1>           
  right <-4/3,0,0>      
  location <40,65,15>   
  look_at <0, 0, 0>    
  angle 70            
}
 
// Lichtquellen
light_source { 
  <30,6,5>              // Position des Lichts
  color rgb <1,1,1>     // Farbe des Lichts, als rot-grün-blau Vektor (Komponenten 0 bis 1)
}
 
light_source { 
  <40,50,5>              // Position des Lichts
  color rgb <1,1,1>     // Farbe des Lichts, als rot-grün-blau Vektor (Komponenten 0 bis 1)
}
 
light_source { 
  <0,0,5>              // Position des Lichts
  color rgb <1,1,1>     // Farbe des Lichts, als rot-grün-blau Vektor (Komponenten 0 bis 1)
}
 
plane {z,0
  pigment  {granite scale 10}
  normal { bozo }
  finish { reflection 0.9}
}
 
//#include "myObject.inc"  // Hier lade ich mein eigenes Grundobjekt fuer eine Galaxy
 
//Hier entsteht eine Galaxy
#declare Galaxy = union {
 
 #declare da=0.2;  
 #declare alfa = da; 
 
 #while (alfa<20)      
   sphere { <0,0,0>,1       // Einfaches Grundobjekt, Kugel
   //object { Name_h        // mein Grundobjekt
   translate <0,alfa,0>
   rotate alfa*180/pi*z 
   pigment { color rgb y }  // gruen
   scale 0.01*alfa*<1,1,1>  //
  }
  #declare alfa=alfa+da;
 #end  
}
 
 
// Hier entsteht das Universum                    
#declare dphi=0.4;                
#declare phi=dphi;
 
#while (phi<20)      
   object { Galaxy
        translate <0,phi,0>
        rotate phi*180/pi*z
        scale 0.1*phi*<1,1,1>
    }
    #declare phi=phi+dphi;
 #end
  • lehrkraefte/blc/math/povray/lektion7.1497547812.txt.gz
  • Last modified: 2017/06/15 19:30
  • by Marcel Metzler