MuPAD Education Group: Kostenlose Materialen für MuPAD Pro:
www.sciface.com/education, schule.mupad.de, studium.mupad.de, mupad.zum.de.

________________________________________________________________________________

 

Inhalt....: Animierter Lichtquelle in 3D (Animation 3D)

Kategorie.: Grafik

Mathematik: Grafik

MuPAD.....: 3.1.1

Datum.....: 2005-04-04

Autoren...: Kai Gehrs <acrowley@mupad.de>

Funktionen: plot, plot::Surface, plot::PointLight, FillColor, PointColor

Funktionen: FillColorType, Flat, Height, Width, BackgroundStyle, TopBottom

________________________________________________________________________________

 

Animierte Lichtquelle in 3D

 

Dieses Arbeitsblatt demonstriert den Einsatz von MuPAD Grafikfunktionen und Grafikoptionen

anhand eines Beispiels.

 

Wir erzeugen drei blaue Flachenstücke und beleuchten sie mit einer animierten weißen Punkt-

lichtquelle. Die Lage der Lichtquelle wird durch einen weißen Punkt angezeigt. Dieser Punkt

hängt sowohl bei der Definition als plot::Point3d-Objekt von dem Animationsparameter

a ab wie auch bei der Definition der Lichtquelle als plot::PointLight-Objekt. Neben der

Angabe der Position der Lichtquelle, ist ihre Itensität als numerischer Wert aus dem Intervall

[0; 1] anzugeben.

 

s1 := plot::Surface([1, y, z], y = 0..1, z = 0..1):

s2 := plot::Surface([x, 1, z], x = 0..1, z = 0..1):

s3 := plot::Surface([x, y, 0], x = 0..1, y = 0..1):

 

p := plot::Point3d([a, 0.9, 0.2], a = 0..1,

                   PointSize = 2,

                   PointColor = RGB::White):

 

light := plot::PointLight([a, 0.9, 0.2], 1, a = 0..1):

 

plot(s1, s2, s3, p, light, Axes = Frame,

     FillColor = RGB::Blue, FillColorType = Flat,

     Width = 170, Height = 120, BackgroundStyle = TopBottom):

MuPAD graphics

________________________________________________________________________________

 

Anmerkungen:

1.  Weitere Anregungen zum Einsatz von MuPAD in der Lehre finden Sie auf unserem WebPortal

     MuPAD in Schule und Studium unter: http://schule.mupad.de bzw. http://studium.mupad.de.

________________________________________________________________________________

 

 

 

MuPAD Education Group: Kostenlose Materialen für MuPAD Pro:
www.sciface.com/education, schule.mupad.de, studium.mupad.de, mupad.zum.de.