POV-Ray : Newsgroups : povray.binaries.images : Chromadepth scaling to model : Re: Chromadepth scaling to model Server Time
25 Jun 2024 02:52:02 EDT (-0400)
  Re: Chromadepth scaling to model  
From: Bald Eagle
Date: 20 Feb 2018 18:20:01
Message: <web.5a8cac28b61f56575cafe28e0@news.povray.org>
"Kenneth" <kdw### [at] gmailcom> wrote:
I have no idea how to compensate for that-- no
> 'fudge factor' that I can think of.

You take the vectors for the original bounding box and do the same vector
transform on them that you do for the object.  Then they define the corners of
the original bounding box, but in the new location / orientation.

If you'd like, for posterity, maybe take a long-ish cylinder, show a bounding
box (like a wire_box) and animate the cylinder being rotated, and how the BB
changes.
Then do the same with a "bounding box" using the transformed vectors as corners
- you'll have to build that wire box manually, or at least edit the code for it
in the include file so it takes 8 corners as arguments...


Post a reply to this message

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