Informatikunterricht

am Gymnasium Kirchenfeld

Benutzer-Werkzeuge

Webseiten-Werkzeuge


raytracing:animation

Dies ist eine alte Version des Dokuments!


Animationen

Vorgehen

  1. Szene mit clock-Variable parametrisieren
  2. Ini-Datei für Animationsparameter erstellen.
  3. Bilder generieren.
  4. Bilder mit MakeAVI zu Video zusammenfügen.

Beispiel

animation.pov
#include "colors.inc"
 
camera {
    location <0, 2, -6>
    look_at  <0, 1.5,  2>
}
 
light_source {
    <0, 5, 1>
    color White
}
 
sphere {
    <1, 1, 0>, 1
    texture {
        pigment {
            color Orange
        }
    }
    rotate <0, 360*clock, 0>
}
 
plane {
    <0, 1, 0>, 0
    texture {
        pigment {
            checker color Gray, color White
        }
    }
}
animation.ini
Input_File_Name="animation.pov"
 
Initial_Frame=1
Final_Frame=30
Initial_Clock=0
Final_Clock=1
raytracing/animation.1416062258.txt.gz · Zuletzt geändert: 2020/10/13 14:25 (Externe Bearbeitung)