POV-Ray : Newsgroups : povray.general : Maximum gradient reached : Re: Maximum gradient reached Server Time
28 Jul 2024 22:22:44 EDT (-0400)
  Re: Maximum gradient reached  
From: William F Pokorny
Date: 1 Jan 2014 11:57:36
Message: <52c44900$1@news.povray.org>
On 12/31/2013 02:20 PM, Louis wrote:
> When rendering my scene I get a message:
>
> Shutdown Warning: The maximum gradient found was 2389459.250, but max_gradient
> of the isosurface was set to 10000.000. The isosurface may contain holes! Adjust
> max_gradient to get a proper rendering of the isosurface.
>
> I have adjusted the max_gradient to 2389459.250 in my scene but the warning
> persists. It seems like the maximum is hard-coded at 10000? There are black
> spots, or well... actually, most of it is black with a few spots that rendered
> with the correct color.
>
> I tried lowering the resolution of my heightfield from a 16-bit jpeg to an 8-bit
> png. It helped a little, "The maximum gradient found was 13859817.000". I
> would rather retain the high resolution though.
>
> Is there anything I can do to retain the resolution but lower the max_gradient?
>
>
>
Hi Louis,
Answering blind in not really understanding what you are trying. It 
helps to see the code.

If you have not yet found it, check out Mike William's tutorial page at 
http://www.econym.demon.co.uk/isotut/index.htm. It's got lots of useful 
information on isosurfaces plus working code you can download for all 
the pages.

When you get into max gradients as large as yours without the resultant 
object you want, it very likely means the isosurface 
"function/pigment-image_map-function" you are rendering has - or 
effectively has - discontinuities. There are changes in value which are 
too rapid to accurately find the surface.

In other words, something is wrong(1). I've never gone over 1000 for the 
max gradient setting in anything I've done and I normally run <<200. If 
nicely behaved, slowly changing, functions <<20 is typical for a max 
gradient.

I didn't follow what you did with your bit depth change. You too say 
heightfield, which is not an isosurface, but another kind of povray object.

Taking you to be working with a base isosurface shape where you are 
adding a surface displacement via an input image's grey, red, green or 
blue value:

- Are you using interpolation to smooth your input image? If not, do.

- Are you using the right image_map map_type for the base iso shape? The 
default is 0 or planar.

- Larger input images for the pigment image_map function often help.

Bill P.

(1) - I'm strictly lying as it is OK to have max gradient warnings so 
long as you are getting the iso object you want.


Post a reply to this message

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