|
|
I was playing around with tiled characters for the purposes of making sprite
sheets. I am finding that (with code I write) that the characters of the bottom
of the screen are always cut off when I use an orthographic projection.
Can anyone fix my code so that:
1) The red spheres stay exactly on edges of screen and green spheres in corner.
(I want 100% control of the field of view here).
2) The "fakeman" objects at the bottom are not cut off?
thanks.
camera {orthographic angle 90
location < 0.00,200*pow(2,0.5),-200*pow(2,0.5)>
look_at 0
right x*image_width/image_height
}
light_source{<-31110,50000,-40000> color rgb 1}
light_source{<12220,500,40000> color rgb 2 shadowless}
#declare fakeman=union{
cylinder{0,80*y,8 pigment {blue 1} finish {ambient rgb 0.15}}
sphere{0,16 translate 80*y pigment{rgb <1,0.5,0>}}}
#declare tiley=//box{<-45,-5,-45>,<45,10,45> pigment{rgb 0.9}}
superellipsoid{<0.45,0.25> scale 45*<1,0.2,1> pigment{rgb 0.9}}
#declare unity=union{
object{fakeman}
object{tiley}
}
#declare nx=-4.5;
#while(nx<6)
#declare nz=-2.5;
#while (nz<6)
object{unity translate <nx*100,0,nz*200>}
#declare nz=nz+1;
#end
#declare nx=nx+1;
#end
sphere{0,28 pigment{red 1}}
sphere{0,28 pigment{red 1} translate <-400, 0, 400>}
sphere{0,28 pigment{red 1} translate < 400, 0, 400>}
sphere{0,28 pigment{red 1} translate <-400, 0,-400>}
sphere{0,28 pigment{red 1} translate < 400, 0,-400>}
sphere{0,28 pigment{green 1} translate < 400, 0,-400*pow(2,0.5)>}
sphere{0,28 pigment{green 1} translate <-400, 0,-400*pow(2,0.5)>}
sphere{0,28 pigment{green 1} translate < 400, 0, 400*pow(2,0.5)>}
sphere{0,28 pigment{green 1} translate <-400, 0, 400*pow(2,0.5)>}
Post a reply to this message
|
|