POV-Ray : Newsgroups : povray.programming : Are there documents for the source code? : Re: Are there documents for the source code? Server Time
20 May 2024 18:48:14 EDT (-0400)
  Re: Are there documents for the source code?  
From: Simon
Date: 6 Jul 2013 07:45:01
Message: <web.51d8023a3349a570e6ccd8f40@news.povray.org>
Le_Forgeron <jgr### [at] freefr> wrote:
> Le 04/07/2013 09:04, Simon nous fit lire :
> > My purpose is to get a map file which can show a link between the 2D coordinate
> > of the result image and the 3D coordinate that is described in the POV file.
> >
> > I want to fulfill this purpose by modificate the source code of POV-Ray, is it
> > possible to do it in this way? Can you give me any advice on this idea?
>
> So, basically you are interested in the camera code
> (TracePixel::CreateCameraRay in tracepixel.cpp) which create a Ray (3D
> origin with 3D direction) from the position in the final picture.
> (unless you want to also have the reflection and refraction, at which
> point it become to be harder)
>
> Be aware that there is more than one camera's type, each with its own
> mapping.
>
> Documentation (for user, not programmer) of cameras can be seen at
> http://wiki.povray.org/content/Reference:Camera


Hello Forgeron,
I followed your advice and finally I got the code I need, just want to say thank
you! really appreciate your help!


Post a reply to this message

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