|
|
Here it is again, except from a different angle:
camera
{
#local diff = (45 - asind(tand(30))); // the difference between a 45 degree
angle and the vertical angle required to view from one corner of a cube to the
opposite corner
#local angl = 30; // the angle required to rotate the hexagonal outline of the
isometric cube so that one of its bottom sides is parallel with the bottom of
the image
#local dimm = 5/2; // the width and height of the output image (assuming a
square image)
#local quadrantangle = (90 - diff * 2) / 2; // an angle used to determine the
length of the segment, below.
#local leng = tand(quadrantangle) + 1/tand(quadrantangle); // the length of a
side of the parallelogram defined by the (unit length) up and right vectors
#local AspectRatio = image_width/image_height;
orthographic
location -z*(CameraDistance)
up vaxis_rotate(y,z,-(angl - diff)/2) * dimm * leng/2
right vaxis_rotate(x,z,+(angl - diff)/2) * dimm * leng/2 * AspectRatio
rotate z*-45
rotate x*(45 - diff)
rotate y*45
Axis_Rotate_Trans(<1,0,-1,>, diff)
}
light_source
{
<0, 0, -100> // light's position (translated below)
color rgb <1, 1, 1> // light's color
rotate <60,30,0>
parallel
shadowless
}
box
{
-0.5,0.5
texture
{
pigment {rgb 1}
finish {Phong_Glossy}
}
}
Here's the image, itself:
http://img139.imageshack.us/img139/7937/obliquetoprotatedgm6.png
You'll notice some jagginess due to roundoff errors. I hope there's some way of
fixing them.
Post a reply to this message
|
|