|
|
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
|
|