|
![](/i/fill.gif) |
"SharkD" wrote:
> OK, I think I accomplished what I set out to do.
>
> Compare the isometric image of a cube:
> http://img134.imageshack.us/img134/6726/cubeisometricot0.png
> with the oblique image of the same cube:
> http://img141.imageshack.us/img141/639/cubeobliquedl4.png
If you just want to create the effect of that second image, then the below
code works perfectly and is far simpler than the math you were using:
#declare CameraDistance = 20;
#declare CameraArea = 5/2;
#declare CameraSkewed = 0.7;
#declare AspectRatio = image_width/image_height;
camera {
orthographic
location <-CameraSkewed,1,-CameraSkewed>*CameraDistance
direction <CameraSkewed,-1,CameraSkewed>
up (x+z)*CameraArea
right (x-z)*CameraArea*AspectRatio
}
light_source {
<0,0,-100> color rgb 1
rotate <60,30,0>
parallel
shadowless
}
box {-0.5,0.5 pigment {rgb 1}}
#declare Arrow = union {cylinder {-x, x, 0.02} cone {x, 0.1, 1.2*x, 0}}
object {Arrow pigment {red 1}}
object {Arrow rotate 90*z pigment {green 1}}
object {Arrow rotate -90*y pigment {blue 1}}
plane {y, 0
pigment {
boxed translate x+z warp {repeat x*2} warp {repeat z*2}
scale 0.05
color_map {[0.1, rgb 0.3][0.1, transmit 1]}
}
}
Rune
--
http://runevision.com
Post a reply to this message
|
![](/i/fill.gif) |