POV-Ray : Newsgroups : povray.general : How to set the view to the object width? : Re: How to set the view to the object width? Server Time
25 Apr 2024 11:19:04 EDT (-0400)
  Re: How to set the view to the object width?  
From: Kima
Date: 22 Sep 2019 13:55:01
Message: <web.5d87b4fc756e0408ecc0fada0@news.povray.org>
"Bald Eagle" <cre### [at] netscapenet> wrote:
> "Bald Eagle" <cre### [at] netscapenet> wrote:
>
> > IIRC, it isn't what you think it might be, but half of that
>
> I think maybe this series of equation rearrangements might shed some light on
> the issue.
>
> From:
>
http://news.povray.org/povray.advanced-users/thread/%3Cweb.580f8b048d6e3073b488d9aa0%40news.povray.org%3E/
>
> // direction_length = 0.5 * right_length / tan(angle / 2)
> // tan(angle / 2) * direction_length = 0.5 * right_length
> // tan(angle / 2) = (0.5 * right_length) / direction_length
> // (angle / 2) = atan2( (0.5 * right_length), direction_length)
> // angle = 2* atan2( (0.5 * right_length), direction_length)

Thanks for the links and suggestions, they are quite useful.

However, my problem appears in all of the equations you mentioned. The problem
is of trigonometry nature. We have a triangle as depicted here
https://www.povray.org/documentation/view/3.6.1/246/ one side is
direction_length and one side is right_length (half of the view). Tangent
defines their ratio. Where does the "0.5" come from?


Post a reply to this message

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