1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95
|
// Persistence Of Vision Ray Tracer Scene Description File
// File: logo.pov
// Vers: 3.5
// Desc: logo.inc demo scene
// Date: September 2001
// Auth: Rune S. Johansen
//
// This file is an example of how to use the official POV-Ray Logo
// in a scene. The original version as well as a prism version and
// a bevel version are available. Any texture or material can be
// applied to the logo, that way allowing for a great variety of looks.
//
// For more information on the POV-Ray logo, see logo.inc
//
// -w320 -h240
// -w800 -h600 +a0.3
#include "logo.inc"
#declare Design = 0;
// 0 : All four designs
// 1 : Original logo object with 2-d appearance.
// 2 : Original logo object.
// 3 : Prism logo object.
// 4 : Beveled logo object.
#declare LogoPigment =
pigment {
planar scale 2 translate y
color_map {
[0.0, color <1.0, 0.4, 0.4>] // Red
[0.5, color <0.4, 0.9, 0.4>] // Green
[1.0, color <0.4, 0.4, 1.0>] // Blue
}
}
background {color rgb <1,1,1>} // White background
camera {
// When using the logo for image_maps, 2-d designs etc.,
// always use orthographic camera.
orthographic angle
location -2*z
up y
right (image_width/image_height)*x
look_at 0
}
light_source {< 3, 4,-5>*1000, color 2.0}
#declare Variant1 =
object {
Povray_Logo
pigment {LogoPigment}
// Remove all lighting to get a 2-d appearance:
finish {ambient 1 diffuse 0}
}
#declare Variant2 =
object {
Povray_Logo
pigment {LogoPigment}
rotate -10*y
}
#declare Variant3 =
object {
Povray_Logo_Prism
pigment {LogoPigment}
rotate -10*y
}
#declare Variant4 =
difference{
object {Povray_Logo_Bevel}
// Adjust this plane to adjust the bevel:
plane {z,-0.05}
pigment {LogoPigment}
}
#switch (Design)
#case(0)
union {
object {Variant1 translate <-1,+1>}
object {Variant2 translate <+1,+1>}
object {Variant3 translate <-1,-1>}
object {Variant4 translate <+1,-1>}
scale 0.5
}
#break
#case(1) object {Variant1} #break
#case(2) object {Variant2} #break
#case(3) object {Variant3} #break
#case(4) object {Variant4} #break
#end
|