|
Farbenspiel
| Startszene: Zylinder auf Ebene |
light_source { <0,10,0> color rgb 1.5 }
cylinder{ <-2,0,-4>, <3,0,3>, 2 pigment { color rgbt <1,1,1,0> }}
plane { y, -2 pigment{ color rgb 1 } }
camera { location <0,1.5,10> look_at <2,-1,0> }

Zylinder auf Ebene: weiß
| Zylinder zu 50% durchsichtig |
In der Pigment-Anweisung des Zylinders sind alle Farben und die Transparenz des Zylinders (4.Wert in spitzen Klammern) angegeben. Dreht diesen von 0 auf 50% dann schaut das Ganze so aus:
cylinder{ <-2,0,-4>, <3,0,3>, 2 pigment { color rgbt <1,1,1,0.5> }}

Zylinder halbdurchsichtig
cylinder{ <-2,0,-4>, <3,0,3>, 2 pigment { color rgbt <1,1,0,0.5> }}

Zylinder ohne Blauanteil
#declare basis = cylinder{ <-2,0,-4>, <3,0,3>, 2 pigment { color rgbt <1,1,0,0.5> }}
cylinder{ <-2,0,-4>, <3,0,3>, 2 pigment { color rgbt <1,1,1,0> }}
light_source { <0,10,0> color rgb 1.5 }
plane { y, -2 pigment{ color rgb 1 } }
object { basis scale 0.2 }
object { basis scale 0.2 translate <1,0,0> }
object { basis scale 0.2 translate <2,0,0> }
object { basis scale 0.2 translate <3,0,0> }
object { basis scale 0.2 translate <4,0,0> }
object { basis scale 0.2 translate <5,0,0> }
camera { location <0,1.5,6> look_at <2,-1,0> }

Viele Zylinder
| Viele Zylinder mit unterschiedlichem Blauanteil |
#declare basis = cylinder{ <-2,0,-4>, <3,0,3>, 2 }
cylinder{ <-2,0,-4>, <3,0,3>, 2 pigment { color rgbt <1,1,1,0> }}
light_source { <0,10,0> color rgb 1.5 }
plane { y, -2 pigment{ color rgb 1 } }
object { basis scale 0.2 pigment { color rgbt <1,1,0.0,0.5> } }
object { basis scale 0.2 pigment { color rgbt <1,1,0.2,0.5> } translate <1,0,0> }
object { basis scale 0.2 pigment { color rgbt <1,1,0.4,0.5> } translate <2,0,0> }
object { basis scale 0.2 pigment { color rgbt <1,1,0.6,0.5> } translate <3,0,0> }
object { basis scale 0.2 pigment { color rgbt <1,1,0.8,0.5> } translate <4,0,0> }
object { basis scale 0.2 pigment { color rgbt <1,1,1.0,0.5> } translate <5,0,0> }
camera { location <0,1.5,6> look_at <2,-1,0> }

Viele Zylinder mit unterschiedlichem Blauanteil
| Viele Zylinder mit unterschiedlichem Grünanteil |
#declare basis = cylinder{ <-2,0,-4>, <3,0,3>, 2 }
cylinder{ <-2,0,-4>, <3,0,3>, 2 pigment { color rgbt <1,1,1,0> }}
light_source { <0,10,0> color rgb 1.5 }
plane { y, -2 pigment{ color rgb 1 } }
object { basis scale 0.2 pigment { color rgbt <1,0.0,1,0.5> } }
object { basis scale 0.2 pigment { color rgbt <1,0.2,1,0.5> } translate <1,0,0> }
object { basis scale 0.2 pigment { color rgbt <1,0.4,1,0.5> } translate <2,0,0> }
object { basis scale 0.2 pigment { color rgbt <1,0.6,1,0.5> } translate <3,0,0> }
object { basis scale 0.2 pigment { color rgbt <1,0.8,1,0.5> } translate <4,0,0> }
object { basis scale 0.2 pigment { color rgbt <1,1.0,1,0.5> } translate <5,0,0> }
camera { location <0,1.5,6> look_at <2,-1,0> }

Viele Zylinder mit unterschiedlichem Grünanteil
| Viele Zylinder mit unterschiedlichem Rotanteil und unterschiedlicher Transparenz |
#declare basis = cylinder{ <-2,0,-4>, <3,0,3>, 2 }
cylinder{ <-2,0,-4>, <3,0,3>, 2 pigment { color rgbt <1,1,1,0> }}
light_source { <0,10,0> color rgb 1.5 }
plane { y, -2 pigment{ color rgb 1 } }
object { basis scale 0.2 pigment { color rgbt <0.0,1,1,0.5> } }
object { basis scale 0.2 pigment { color rgbt <0.2,1,1,0.4> } translate <1,0,0> }
object { basis scale 0.2 pigment { color rgbt <0.4,1,1,0.3> } translate <2,0,0> }
object { basis scale 0.2 pigment { color rgbt <0.6,1,1,0.2> } translate <3,0,0> }
object { basis scale 0.2 pigment { color rgbt <0.8,1,1,0.1> } translate <4,0,0> }
object { basis scale 0.2 pigment { color rgbt <1.0,1,1,0.0> } translate <5,0,0> }
camera { location <0,1.5,6> look_at <2,-1,0> }

Viele Zylinder mit unterschiedlichem Rotanteil und unterschiedlicher Transparenz
#declare basis = cylinder{ <-2,0,-4>, <3,0,3>, 2 open }
cylinder{ <-2,0,-4>, <3,0,3>, 2 pigment { color rgbt <1,1,1,0> }}
light_source { <0,10,0> color rgb 1.5 }
plane { y, -2 pigment{ color rgb 1 } }
object { basis scale 0.2 rotate <0,90,10> pigment { color rgbt <0.0,1,1,0.9> } }
object { basis scale 0.2 rotate <0,90,30> pigment { color rgbt <0.2,1,0.8,0.7> } translate <1,0,0> }
object { basis scale 0.2 rotate <0,90,50> pigment { color rgbt <0.4,1,0.6,0.5> } translate <2,0,0> }
object { basis scale 0.2 rotate <0,90,70> pigment { color rgbt <0.6,1,0.4,0.3> } translate <3,0,0> }
object { basis scale 0.2 rotate <0,90,90> pigment { color rgbt <0.8,1,0.2,0.1> } translate <4,0,0> }
object { basis scale 0.2 rotate <0,90,110> pigment { color rgbt <1.0,1,0,0.0> } translate <5,0,0> }
camera { location <0,1.5,6> look_at <2,-1,0> }

Noch mehr Variationen...
|