POV-Ray : Newsgroups : povray.binaries.animations : CHROMADEPTH code tests-- animation : Re: CHROMADEPTH code tests-- animation Server Time
24 Apr 2024 07:04:38 EDT (-0400)
  Re: CHROMADEPTH code tests-- animation  
From: clipka
Date: 23 Feb 2018 13:43:12
Message: <5a9060c0$1@news.povray.org>
Am 23.02.2018 um 09:53 schrieb Kenneth:

> Given that the
> found min and max points are simply coordinates in space, why doesn't, say,
> min_extent *always* pick the 'closest' bounding-box corner to the camera?

Because it always picks the corner with the lowest absolute x,y,z
values, regardless of camera location.

Thus if the camera is in the negative x,y,z octant relative to the
object, then min_extent happens to be the nearest corner.

If on the other hand the camera is in the positive x,y,z octant relative
to the object, then max_extent is the nearest corner.

And if the camera is in any other octant, yet another corner may be the
nearest one.

For instance, if the camera is in the +x,-y,-z octant, then the nearest
corner is at

    <max_extent(Obj).x,min_extent(Obj).y,min_extent(Obj).z>


Post a reply to this message

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