POV-Ray : Newsgroups : povray.binaries.images : Chromadepth scaling to model : Re: Chromadepth scaling to model Server Time
12 May 2024 09:44:12 EDT (-0400)
  Re: Chromadepth scaling to model  
From: Mike Horvath
Date: 20 Feb 2018 04:50:18
Message: <5a8bef5a@news.povray.org>
On 2/20/2018 2:43 AM, Thomas de Groot wrote:
> On 19-2-2018 17:13, Kenneth wrote:
>> So, I finally coded-up my idea, and it does indeed put the 'center' 
>> color of the
>> color_map across the center of the object. That part works, at least. 
>> But the
>> color pattern's 'limits' on the object have a problem: the color 
>> spread doesn't
>> extend all the way across. So far, after several days of trying to 
>> figure out
>> why, I still don't have a clue. I tried changing *every* parameter in 
>> the code,
>> but no luck-- although there's probably a hidden 'clue' in those trials.
>>
>> So, I had to resort to some fudge-factors as well :-/ 
> 
> As far as I know from docs and/of previous discussions, min_extent and 
> max_extent do not give the /exact/ extent of the object. So, I am not 
> really surprised you need a fudge factor...
> 

LDraw models all have bounding boxes defined during the conversion 
process. I will try and see if I still need any fudge factors after 
plugging those values in instead of min_extent and max_extent.


Mike


Post a reply to this message

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