POV-Ray : Newsgroups : povray.general : Finding Screen Coordinates of Objects : Re: Finding Screen Coordinates of Objects Server Time
29 Jul 2024 10:22:12 EDT (-0400)
  Re: Finding Screen Coordinates of Objects  
From: Pablo Viojo
Date: 25 Feb 2001 10:39:33
Message: <3a992735@news.povray.org>
> > Is there any easy way of finding the screen
> > coordinates of an object in the scene.
> > i.e. some internal way of converting from world to screen coords
>
> This is not how POV-Ray works.  While not the perfect answer to your
> question, this should help explain it:
>

This is not how POV-Ray works, but you can, knowing the coordinates of an
object and its dimensions, calculate the position of the object in the final
image.

For this you must know: 1- The coordinates of the object in the POV-Ray
world
                                     2- The camera location, look_at,
direction, angle, etc.

                                     3- The size of the final image.

And the rest is all maths.


Pablo Viojo
pvi### [at] adinetcomuy


Post a reply to this message

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