POV-Ray : Newsgroups : povray.binaries.images : Doctor John - FieldCam conundrum : Re: Doctor John - FieldCam conundrum Server Time
4 May 2024 03:49:53 EDT (-0400)
  Re: Doctor John - FieldCam conundrum  
From: Bald Eagle
Date: 17 Nov 2020 19:25:01
Message: <web.5fb4697aed460f771f9dae300@news.povray.org>
Cousin Ricky <ric### [at] yahoocom> wrote:

> Doctor John posted this version in 2009:
>
>    https://news.povray.org/4aa8db4e$1@news.povray.org

Ah, excellent.   I needed different search terms.

> As these camera shift macros and discussions have been sitting on my
> computer completely uncomprehended for years, I cannot say whether the
> "Corrected silly mathematical error in vertical scaling" addresses
> Thomas's concerns.

Well me neither, but I figured it was a good place to start.  I've made some
sort of sense of all of the stuff Doctor John did, and so understand the WHY and
resulting output of what he does, and a little over half of the HOW.

The thing I do NOT understand is the purpose of the VCorr term or the meaning of
it's defining equation.

This is what I've got so far:

#local VCorr = pow(vlength(CamDirVec), 2) / pow(HypoXZ, 2);
  // HypoXZ / CamDirVec = adjacent / hypotenuse = cos (theta)
  // CamDirVec / HypoXZ = the inverse of the above, which is 1/cos (theta) = sec
(theta)
  // Squaring numerator and denominator is the same as squaring the fraction
  // so it looks like he's [erroneously?] calculating the secant squared of
theta

But maybe there's some trigonometric identity or other way of approaching the
meaning of the terms that sheds some light on what's going on....


Post a reply to this message

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