|
|
// This exercise is from the 2.2.7.1 Transformations, scale and translate
section of
// the PovRay tutorial,
// but it seems to have returned unexpected results
// can you render this? thanks
#include "colors.inc"
camera
{
location <16, 32, -20.0>
look_at <8, 8, 0.0>
}
plane
{
y, -1.0
pigment {
checker color Gray65 color Gray30
}
}
light_source { <5, 10, 0> color White }
light_source { <-5, 10, 10> color White }
sphere { < 2, 2, 2 >,1 // draws sphere at this location
pigment { Blue }
scale <4,3,.5> // squishes and strectches according to scale
}
sphere { < 0, 3, 0 >,1 // draws sphere at this location
pigment { Green }
scale 2 // doubles the diameter of sphere
}
sphere { <10, 10, 10>,1 // draws sphere at this location for reference point
pigment { Orange }
}
//// Please explain why these spheres where translated to a new location
after being scaled, thanks
sphere { <12, 10, 10>,1 // draws sphere at this location, should be next to
Orange
pigment { Yellow }
scale < 3,2,4 > // squishes and strectches according to scale, but
where did it go??
// comment this scale out, to see Yellow sphere
}
sphere { <10, 10, 10>,1
pigment { Red }
translate 4*x // draws sphere at <14,10,10>, should be next to
Yellow next to Orange
scale <2,.4,.5> // squishes and strectches according to scale, but
where did it go??
// comment this scale out, to see Red sphere
}
Post a reply to this message
|
|