// transform02.pov // POV-Ray 3.5 scene file by En-Chong Pak // Demonstrates translating a box to another location. // Render in 240x180, antialiasing 0.3, method 2. #include "colors.inc" global_settings { assumed_gamma 1.0 max_trace_level 5 } camera { location <-0.6, 3.0, -3.0> direction 1.5*z right x*image_width/image_height look_at <1.0, 0.0, 1.0> } sky_sphere { pigment { gradient y color_map { [0.0 rgb <1.0, 1.0, 1.0>] [0.7 rgb <0.6, 0.7, 1.0>] } } } light_source { <0.0, 0.0, 0.0> // light's position (translated below) color rgb <1.0, 1.0, 1.0> // light's color translate <-50.0, 50.0, 10.0> } plane { // checkered floor y, -1 texture { pigment { checker color rgb 1.0 color Gray50 scale 0.5 } finish { diffuse 0.8 ambient 0.1 reflection 0.3 } } } box { // cartesian y-axis <-0.05, -0.01, -6.0>, <0.05, 0.01, 6.0> texture { pigment { color Black } finish { diffuse 0.3 ambient 0.3 specular 0.6 reflection 0.3 } } translate <-0.05, -0.99, 5.5> } box { // cartesian x-axis <-0.05, -0.01, -6.0>, <0.05, 0.01, 6.0> texture { pigment { color Black } finish { diffuse 0.3 ambient 0.3 specular 0.6 reflection 0.3 } } translate <0.05, -0.99, 4.5> rotate <0.0, 90.0, 0.0> } box { // blue box <0.0, 0.5, 0.0>, <1.5, -1.0, 1.5> texture { pigment { color blue 1.0 } finish { diffuse 0.3 ambient 0.3 specular 0.6 } } translate <1.0, 0.0, 0.0> }