POV-Ray : Newsgroups : povray.advanced-users : Perspective correction : Re: Perspective correction Server Time
23 Apr 2024 21:05:42 EDT (-0400)
  Re: Perspective correction  
From: Thomas de Groot
Date: 16 Mar 2017 03:55:36
Message: <58ca44f8$1@news.povray.org>
On 15-3-2017 18:01, Bald Eagle wrote:
> I was wondering if anyone has ever done any perspective correction using POV-Ray
> / SDL.
>
> Something like taking a photograph of a piece of paper at a non-perpendicular
> angle, and then applying some sort of matrix transform to the resulting image in
> order to get a perspective-corrected result.

The much regretted Doctor John had written a macro in 2005 doing just 
that (see attached test file)
>
> I often use photos and diagrams to guide creation of things by CSG, and things
> can get to be quite "off".
>
> I was also wondering if some sort of system could be designed to use POV-Ray to
> use data points in an image of say, a room, to construct a basic 3D
> representation of the room.
>
> I know there are architectural and remodeling apps that can do this, 3D objects
> can be seamlessly inserted into legacy photos and video, and IIRC someone had
> experimented a while back with using a POV-Ray to identify the location of an
> object in the scene using the screen coordinates.

Yes, Norbert Kern wrote a macro in 2006 to find the coordinates of a 
scene location based on the screen coordinates (see attached test file).

>
> Has anyone thought about any of this?
>
>


-- 
Thomas


Post a reply to this message


Attachments:
Download 'utf-8' (4 KB) Download 'utf-8' (7 KB)

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