POV-Ray : Newsgroups : povray.newusers : Can I do an Axonometric projection? (primitive game style isometric(ish) projection) : Re: Can I do an Axonometric projection? (primitive game style isometric(ish) projection) Server Time
30 Jul 2024 00:20:46 EDT (-0400)
  Re: Can I do an Axonometric projection? (primitive game style isometric(ish) projection)  
From: Slime
Date: 23 Dec 2004 14:28:15
Message: <41cb1c4f@news.povray.org>
> I can get fairly close with an orthographic projection but then I have
> to shear the image externally to make the nearside of the map horizontal.

Orthographic is the way to go, but to get the effect you're looking for,
you'll have to shear the *camera*.

Start with a camera looking straight at the X-Y axes (I'm assuming
left-handed coordinates here so the Z axis is pointing away):

camera {
    orthographic
    location -z
    right x*mapwidth/2
    up y*mapheight/2
    look_at 0


With this camera, the Z axis will be pointing straight away from the camera.
To make it point kind of diagonally, we can use a simple matrix
transformation:

    matrix <
        1,0,0,
        0,1,0,
        -xamnt,-yamnt,1,
        0,0,0
    >
}

where xamnt and yamnt are the amounts that the z axis points in the x and y
directions. To match up with your picture, try xamnt = .3 and yamnt = .8.

 - Slime
 [ http://www.slimeland.com/ ]


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.