POV-Ray : Newsgroups : povray.documentation.inbuilt : 3.7xx: max_extent (re: image resolution) is missing something? : 3.7xx: max_extent (re: image resolution) is missing something? Server Time
17 Sep 2021 22:05:26 EDT (-0400)
  3.7xx: max_extent (re: image resolution) is missing something?  
From: Kenneth
Date: 8 Jun 2017 13:30:00
Message: <web.593988c1122841b6883fb31c0@news.povray.org>
(running 3.7.1 beta 8)
In the in-built documentation "3.3.1.6.5 Functions"...

In the section "min_extent/max_extent', concerning the new 3.7xx feature of
reading the pixel resolution of an image, the example given there seems to be
missing something. Part of it is written like this...

......
#declare Resolution = max_extent ( MatteImage );
#declare MatteNormalizationScale =
;

There's nothing following   MatteNormalizationScale   except a semi-colon (which
naturally produces a fatal parse error, when I place an image_map pigment into
the preceeding max_extent). Should it instead be written as...

#declare MatteNormalizationScale = Resolution;

??

(Personally, I don't know, as I haven't tried using the feature yet.)

*However*, the remainder of that example says...

box { 0, <1,1,0.001 pigment { MatteImage }
scale MatteNormalizationScale // Fit matte to unit square
scale MatteSceneScale // Size matte for scene
}

....in which case,    MatteNormalizationScale = Resolution   would not seem to
make sense, as it does not "Fit matte to unit square ". (The matte image is
*already* fit to the unit square, by default.)

Some clarification(s) needed?


Post a reply to this message

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