|
|
I think this has been mentioned before, but I can't find the post. I'm
trying to fit objects' bounding box exactly to screensize. Can anyone please
tell me what I'm missing?
--
-Nekar Xenos-
// ----------------------------------------
sky_sphere {
pigment {
gradient y
color_map {
[0.0 rgb <0.6,0.7,1.0>]
[0.7 rgb <0.0,0.1,0.8>]
}
}
}
light_source {
<0, 0, 0> // light's position (translated below)
color rgb <1, 1, 1> // light's color
translate <-30, 30, -30>
}
// ----------------------------------------
plane {
y, -1
pigment { color rgb <0.7,0.5,0.3> }
}
// +h400 +w400
#include"shapes.inc"
#include "shapes"
#declare hObject =
sphere {
<0,0,0>, 1 translate <1,2,3>
pigment { rgb <1,0,0> }
}
#declare Min = min_extent ( hObject );
#declare Max = max_extent ( hObject );
object { hObject }
box {Min, Max pigment {rgbt .5} }
#declare CamPos=<(Min+Max).x/2,(Min+Max).y/2,(Min-Max).z>;
#declare CamLook= (Min+Max)/2;
camera { orthographic
location CamPos
right (Max-Min).x
up (Max-Min).y
look_at CamLook
}
Post a reply to this message
|
|