平滑谱Mandelbrot集渲染

平滑谱Mandelbrot集渲染

本文介绍了平滑谱Mandelbrot集渲染的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在写一个程序来生成真正巨大的(65536x65536像素及以上)曼德尔布罗图片,我想设计出这样做他们正义的频谱和着色方案。该维基百科功能似乎是一个很好的例子天壤之别的图像,在任意缩放级别调色板特别是如何保持多样化的序列。我不知道,如果它的旋转调色板上或做一些其他的伎俩来实现这一点,虽然。

I'm currently writing a program to generate really enormous (65536x65536 pixels and above) Mandelbrot images, and I'd like to devise a spectrum and coloring scheme that does them justice. The wikipedia featured mandelbrot image seems like an excellent example, especially how the palette remains varied at all zoom levels of the sequence. I'm not sure if it's rotating the palette or doing some other trick to achieve this, though.

我熟悉的光滑着色算法了解Mandelbrot集,这样我就可以避免带,但我还是需要一种方法来从这个算法分配的颜色输出值。

I'm familiar with the smooth coloring algorithm for the mandelbrot set, so I can avoid banding, but I still need a way to assign colors to output values from this algorithm.

我生成的图像是金字塔(例如,一系列图像,每个都有的previous一半的尺寸),这样我就可以使用某种类型的旋转调色板,只要变化在随后的缩放级别之间的调色板是不是太明显了。

The images I'm generating are pyramidal (eg, a series of images, each of which has half the dimensions of the previous one), so I can use a rotating palette of some sort, as long as the change in the palette between subsequent zoom levels isn't too obvious.

推荐答案

我的最终解决方案是创建一个很好看的(和相当大的)调色板,并将其保存为一个常量数组在源文件中,然后用它索引之间插值光滑着色算法。调色板涡卷(并且被设计为是连续的),但是这不会出现很大关系

My eventual solution was to create a nice looking (and fairly large) palette and store it as a constant array in the source, then interpolate between indexes in it using the smooth coloring algorithm. The palette wraps (and is designed to be continuous), but this doesn't appear to matter much.

这篇关于平滑谱Mandelbrot集渲染的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-18 17:31