返回列表 回复 发帖

学习UF三角不等式着色效果

QQ截图20230311.jpg
快照9.jpg

http://www.inrm3d.cn/viewthread.php?tid=3086&extra=&highlight=&page=7
UF_TIA.gsp (35.58 KB)

uf着色之-三角不等式平均法
此法榕老师研究过,这两天一直在研究,效果不好。希望大家共同研究。
Triangle {
;
; Variation on the Triangle Inequality Average coloring method
; from Kerry Mitchell. The smoothing used here is based on the
; Smooth formula, which only works for z^n+c and derivates.
;
; Written by Damien M. Jones
;
init:
  float sum = 0.0
  float sum2 = 0.0
  float ac = cabs(#pixel)
  float il = 1/log(@power)
  float lp = log(log(@bailout)/2.0)
  float az2 = 0.0
  float lowbound = 0.0
  float f = 0.0
  BOOL first = true
loop:
  sum2 = sum
  IF (!first)
    az2 = cabs(#z - #pixel)
    lowbound = abs(az2 - ac)
    sum = sum + ((cabs(#z) - lowbound) / (az2+ac - lowbound))
  ELSE
    first = false
  ENDIF
final:
  sum = sum / (#numiter)
  sum2 = sum2 / (#numiter-1)
  f = il*lp - il*log(log(cabs(#z)))
  #index = sum2 + (sum-sum2) * (f+1)  
default:
  title = "Triangle Inequality Average"
  helpfile = "Uf*.chm"
  helptopic = "Html/coloring/standard/triangleinequalityaverage.html"
  param power
    caption = "Exponent"
    default = 2.0
    hint = "This should be set to match the exponent of the \
            formula you are using. For Mandelbrot, this is usually 2."
  endparam
  param bailout
    caption = "Bailout"
    default = 1e20
    min = 1
$IFDEF VER40
    exponential = true
$ENDIF
    hint = "This should be set to match the bail-out value in \
            the Formula tab. Use a very high value for good results."
  endparam
}
J1.JPG
J3.jpg
应该是内部着色算法。
12# 柳烟
这是UF中的TIA算法,就是前面讨论的那个。
枝杈太粗问题,只要调整dem就可以了。
M9.JPG
在放大图中,id值变化范围很小,不太好处理。
看来还得看看色彩搭配
M10.JPG
M11.JPG
M12.JPG
M13.JPG
M14.JPG
榕老师的色彩非常好。
这个是因为等势线吗,对比UF还是有差别。
M16.JPG
M17.JPG
UF
Fractal2.jpg
返回列表