POV-Ray : Newsgroups : povray.advanced-users : Isosurface speed up. Server Time
1 Nov 2024 11:17:31 EDT (-0400)
  Isosurface speed up. (Message 1 to 1 of 1)  
From: Pyry
Subject: Isosurface speed up.
Date: 21 Oct 2002 05:50:04
Message: <web.3db3ccf32b847e01398d8dbb0@news.povray.org>
I've found a way to render a grainy quick-preview of an isosurface.
Here it is:
#declare
Function_Preview=function(f,delta,Threshold){max(-delta/2+Threshold,min(delta/2+Threshold,f))}
where:
-f is the function to preview.
-delta is the range around the threshold value.
-Threshold is same as the isosurface's threshold.

It only limits the values the function can get around the threshold value.

To get a less grainy, but fast preview the accuracy should be kept much
lower than delta and the max_gradient about 5 times larger than delta.

There is no need to know the actual max_gradient of the function. Just
choose the values that produce best quality in reasonable amount of time.


Post a reply to this message

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