POV-Ray : Newsgroups : povray.advanced-users : IsoSurface Help : Re: IsoSurface Help Server Time
30 Jun 2024 02:10:06 EDT (-0400)
  Re: IsoSurface Help  
From: Alain
Date: 3 Apr 2010 08:55:44
Message: <4bb73ad0$1@news.povray.org>

> Am 03.04.2010 05:18, schrieb Woody:
>> Can Someone help me out. I'm trying to figure out the weird coloring
>> on the
>> lighted portion of the bottom half of the sphere.
>
> When dealing with isosurfaces...
>
> - Try avoiding discontinuous functions like floor(), mod() or the like.
> The algorithm doesn't work well with those.
>
> - Make sure your function /crosses/ f(x)=0 (or whatever threshold you
> choose) instead of just touching it; it seems to me that your function
> never goes below the threshold, so that for some pixels POV-Ray is
> convinced that it never even reaches it.
>
> For your purposes, I'd suggest using sin() or cos() to produce the
> repetitive banding, instead of the mod(floor(),2) operation.

Also, using sin() or cos() will greatly reduce your max_gradient and 
will probably result in a faster rendering.


Alain


Post a reply to this message

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