POV-Ray : Newsgroups : povray.advanced-users : Pixel coords? : Re: Pixel coords? Server Time
29 Jul 2024 08:13:34 EDT (-0400)
  Re: Pixel coords?  
From: Christoph Hormann
Date: 2 Sep 2002 08:30:31
Message: <3D7359E5.DA4BB927@gmx.de>
Hugo wrote:
> 
> Hello,
> 
> I'd like to use POV as a kind of 2d animator. In other words, I load some
> image_maps and move them around the screen. But for this to work reasonably,
> I need a way to calculate the exact step in POV units between each pixel on
> screen. This should be possible since Z is always zero, and I use an
> orthographic camera.
> 
> But how?

You have the right and up vectors of the camera and the image_width and
image_height constants.  This should be enough to calculate the position.

Christoph

-- 
POV-Ray tutorials, IsoWood include,                 
TransSkin and more: http://www.tu-bs.de/~y0013390/  
Last updated 13 Aug. 2002 _____./\/^>_*_<^\/\.______


Post a reply to this message

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