POV-Ray : Newsgroups : povray.binaries.images : Chromadepth scaling to model : Re: Chromadepth scaling to model Server Time
12 May 2024 21:26:14 EDT (-0400)
  Re: Chromadepth scaling to model  
From: Bald Eagle
Date: 20 Feb 2018 10:10:01
Message: <web.5a8c396db61f5657c437ac910@news.povray.org>
I don't have time at the moment to sift through your code or write any of my
own, but I'll make a few observations and [hopefully helpful] comments.

First, make sure your camera position and object-camera line of sight are
normalized to be along a primary axis.

Then the bounding box, pattern alignment, and distance calculations are easy to
calculate, code, and align properly.

Once you have done that, apply your pattern and then UNdo it - which will shift
the pattern along with the object.

Truly a place where "letting POV-Ray do the heavy lifting" for the vector math
and matrix transforms is strongly advisable.

finding the nearest part of the bounding box ought to be as simple as min (a, b,
c, d, e, f, g, h) where a-h are distances from the camera to the bb corners.


Post a reply to this message

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