ХабрПостыНовостиМегапосты?

Mandelbrot set. 24-bit TrueColor. 80-bit long double. OpenMP. Supersampling 8x8 (64 passes). Colors

True 24-bit BGR

Migrated to full 24-bit BGR color output, enabling smooth gradients and millions of unique shades. By utilizing a native 24-bit BGR pipeline, the engine can render millions of intermediate colors.

High-Precision Rendering (80-bit)

Most Mandelbrot explorers use standard 64-bit double precision, which leads to "pixelation" at zoom levels around 10 14. This project leverages 80-bit Extended Precision Arithmetic (long double) to push the boundaries of the fractal:

OpenMP

OpenMP is a standard that tells the compiler, "Take this loop and distribute the iterations among the different processor cores." Yes, using OpenMP you are doing parallel programming at the Multithreading level. Everything is powered by OpenMP parallel loops for maximum performance. OpenMP - Scalability: Your code will run equally efficiently on a 4-core laptop and a 128-core server.

8x8 Supersampling (64 Samples Per Pixel): Direct RGB-Space Integration

I decided to take the visual quality to a completely different level. This engine implements True 8x8 Supersampling Anti-Aliasing (SSAA) with 64 independent samples per single screen pixel, utilizing Direct RGB-Space Integration. Instead of a standard 1920x1920 render, the engine internally processes a massive 15,360 x 15,360 sub-pixel grid! After calculating all 64 samples for a pixel, they are downsampled into one. Key Technical Advantages:

Visual Aesthetics

The Red, Green, and Blue channels are calculated using sine and cosine waves to create smooth color transitions: 127 + 127 cos(2 PI a / 255) and 127 + 127 sin(2 PI a / 255).

Look at the results! The smoothness is incredible

Mandelbrot set fragment
Mandelbrot set fragment
Mandelbrot set fragment
Mandelbrot set fragment
Mandelbrot set fragment
Mandelbrot set fragment
Mandelbrot set fragment
Mandelbrot set fragment
Mandelbrot set fragment
Mandelbrot set fragment
Mandelbrot set fragment
Mandelbrot set fragment

Keys [1-6]: Choose one of six predefined locations within the Mandelbrot set to generate a Mandelbrot.bmp image.

absc = -1.39966699645936; ordi = 0.0005429083913; size_val = 0.000000000000036;
absc = -0.691488093510181825; ordi = 0.465680729473216972; size_val = 0.0000000000000026;
absc = -1.26392609056234794; ordi = -0.17578764215262827; size_val = 0.000000000000033;
absc = -0.88380294401099034; ordi = -0.23531813998049201; size_val = 0.0000000000000029;
absc = 0.38923838852618047304; ordi = -0.37956875637751280668; size_val = 0.0000000000000095;
absc = -0.5503493176297569; ordi = 0.6259309572825709; size_val = 0.00000000000041;

Key [7]: Read coordinates/parameters from three lines in Mandelbrot.txt and generate the corresponding Mandelbrot.bmp.

Mandelbrot txt
Mandelbrot txt

Download Latest Version (Windows & Linux)

@aokoroko
13.02.2026 10:00 UTC
Первоисточник