파일:Mandelbrot Set Image 31.png

testwiki
둘러보기로 이동 검색으로 이동
    원본 파일 (10,800 × 10,800 픽셀, 파일 크기: 182.29 MB, MIME 종류: image/png)

    이 파일은 위키미디어 공용에 있으며, 다른 프로젝트에서 사용하고 있을 가능성이 있습니다. 해당 파일에 대한 설명이 아래에 나와 있습니다.

    파일 설명

    설명
    Русский: Фрагмент множества Мандельброта, координаты центра: -0.0976106489038042, 0.8441497946098066, ширина изображения 0.0000000000000094
    • Метод: 80-битная длинная двойная точность.
    • Сглаживание: 64x SSAA (суперсэмплинг 8x8).
    • Многопоточность на чистом C++11: Высокоскоростные параллельные вычисления, встроенные непосредственно в стандарт языка, масштабируются прозрачно на разных архитектурах ЦП.
    • Программное обеспечение: C++ (скомпилировано с помощью g++), компилятор GNU C++. g++ -O3 -s main.cpp -o Mandelbrot.exe
    • Алгоритм на Rosetta Code: https://rosettacode.org/wiki/Mandelbrot_set#80-bit_precision
    • Визуальное восприятие: Этот рендер создает оптическую иллюзию трехмерной глубины. На переднем плане изображены сложные фрагменты, которые кажутся выпуклыми, в то время как задний план состоит из гладких полос, создающих ощущение вогнутого пространства. Это создает отчетливое ощущение объема — особенно в красных областях — в результате чего получается скульптурный 3D-эффект.
    English: Fragment of the Mandelbrot set, coordinates: -0.0976106489038042, 0.8441497946098066, width 0.0000000000000094
    • Method: 80-bit long double precision.
    • Anti-aliasing: 64x SSAA (8x8 supersampling).
    • Pure C++11 Multi-threading: High-speed parallel computing built directly into the language standard, scaling transparently across CPU architectures.
    • Software: C++ (compiled with g++), GNU C++ Compiler. g++ -O3 -s main.cpp -o Mandelbrot.exe
    • Rosetta Code: https://rosettacode.org/wiki/Mandelbrot_set#80-bit_precision
    • Visual perception: This render creates an optical illusion of three-dimensional depth. The foreground features intricate fragments that appear convex, whereas the background consists of smooth bands that evoke a sense of concave space. This produces a distinct sense of volume - particularly in the red regions - resulting in a sculptural 3D effect.
    날짜
    출처 자작
    저자 Aokoroko

    Source code (C++)

    #include <iostream>
    #include <fstream>
    #include <vector>
    #include <cmath>
    #include <cstdlib>
    #include <ctime>
    #include <thread>
    #include <atomic>
    
    const long double absc = -0.0976106489038042L;
    const long double ordi = 0.8441497946098066L;
    const long double size_val = 0.0000000000000094L;
    const int PALETTE = 20;
    const int horiz = 10800;
    const int vert = 10800; 
    
    void worker_thread(std::atomic<int>& next_row, int horiz, int vert, int row_size,
                       long double step, long double absc2, long double ordi2,
                       const unsigned char pal[256][3], unsigned char* image_buffer) {
        int b = 0;
        while ((b = next_row.fetch_add(1, std::memory_order_relaxed)) < vert) {
            int nn = b << 3;
            unsigned char* row_ptr = image_buffer + (b * row_size);
            for (int a = 0; a < horiz; ++a) {
                int mm = a << 3;
                long long z[3] = {0, 0, 0};
                for (int j = 0; j < 8; ++j) {
                    long double n = ordi2 + static_cast<long double>(nn + j) * step;
                    for (int i = 0; i < 8; ++i) {
                        long double m = absc2 + static_cast<long double>(mm + i) * step;
                        long double c = m;
                        long double d = n;
                        int t = 50000;
                        long double cc = c * c;
                        long double dd = d * d;
                        while (t > 0 && (cc + dd <= 1000000.0L)) {
                            long double cd = c * d;
                            d = cd + cd + n;
                            c = cc - dd + m;
                            cc = c * c;
                            dd = d * d;
                            --t;
                        }                    
                        int remaining = t; 
                        const uint8_t colorIndex = (remaining == 0) ? 255 : static_cast<uint8_t>(remaining % 255);
                        const int paletteIndex = (colorIndex == 255) ? 255 : (colorIndex - PALETTE + 255) % 255;
                        z[0] += pal[paletteIndex][0];
                        z[1] += pal[paletteIndex][1];
                        z[2] += pal[paletteIndex][2];
                    }
                }
                row_ptr[a * 3 + 0] = static_cast<uint8_t>(z[0] >> 6);
                row_ptr[a * 3 + 1] = static_cast<uint8_t>(z[1] >> 6);
                row_ptr[a * 3 + 2] = static_cast<uint8_t>(z[2] >> 6);
            }
        }
    }
    
    int main() {
        int row_size = horiz * 3;
        if (row_size % 4 != 0) {
            row_size = (row_size + 4) & 0xFFFFFFFC;
        }
        int pixel_data_size = row_size * vert;
        int file_size = pixel_data_size + 54;
        int h[14] = {
            0x4D42, file_size, 0, 54, 40, horiz, vert, 
            0x180001, 0, pixel_data_size, 2834, 2834, 0, 0
        };
        unsigned char pal[256][3];
        const long double pi = std::acosl(-1.0L);
        for (int a = 0; a < 255; ++a) {
            pal[a][0] = static_cast<unsigned char>(std::round(127 + 127 * std::cosl(2 * pi * a / 255.0L)));
            pal[a][1] = static_cast<unsigned char>(std::round(127 + 127 * std::sinl(2 * pi * a / 255.0L)));
            pal[a][2] = static_cast<unsigned char>((a % 5) * 63);
        }
        for (int a = 0; a < 3; ++a) {
            pal[255][a] = 255;
        }
        long double step = size_val / static_cast<long double>(horiz << 3);
        long double absc2 = absc - step * static_cast<long double>((horiz << 3) - 1) / 2.0L;
        long double ordi2 = ordi - step * static_cast<long double>((vert << 3) - 1) / 2.0L;
        std::vector<unsigned char> image_buffer(pixel_data_size, 0);
        std::atomic<int> next_row(0);
        unsigned int num_threads = std::thread::hardware_concurrency();
        if (num_threads == 0) num_threads = 4;
        std::cout << "Rendering using " << num_threads << " 80-bit optimized dynamic threads..." << std::endl;
        std::vector<std::thread> threads;
        threads.reserve(num_threads);
        for (unsigned int t = 0; t < num_threads; ++t) {
            threads.emplace_back(worker_thread, std::ref(next_row), horiz, vert, row_size,
                                 step, absc2, ordi2, pal, image_buffer.data());
        }
        while (true) {
            int current_row = next_row.load(std::memory_order_relaxed);
            if (current_row >= vert) {
                std::cout << "Done: " << vert << "/" << vert << " (100%)\r" << std::flush;
                break;
            }
            std::cout << "Done: " << current_row << "/" << vert 
                      << " (" << (current_row * 100 / vert) << "%)\r" << std::flush;
            std::this_thread::sleep_for(std::chrono::milliseconds(100));
        }
        for (auto& thread : threads) {
            if (thread.joinable()) {
                thread.join();
            }
        }
        std::ofstream f("Mandelbrot Set Image 31.bmp", std::ios::binary);
        if (!f.is_open()) {
            std::cerr << "Error creating file!" << std::endl;
            return 1;
        }
        f.write(reinterpret_cast<const char*>(&h), 2);
        f.write(reinterpret_cast<const char*>(&h[1]), 52);
        f.write(reinterpret_cast<const char*>(image_buffer.data()), pixel_data_size);
        f.close();
        std::cout << "\nFinished! File saved as Mandelbrot Set Image 31.bmp" << std::endl;
        return 0;
    }
    

    Deep zoom videos

    Color cycling GIF animations

    Static color cycling animation (Palette shifting)

    Images rendered using perturbation theory and bilinear approximation

    Images at zoom scales not exceeding 10−19 (80-bit precision limit)

    라이선스

    나는 아래 작품의 저작권자로서, 이 저작물을 다음과 같은 라이선스로 배포합니다:
    Creative Commons CC-Zero 이 파일은 크리에이티브 커먼즈 CC0 1.0 보편적 퍼블릭 도메인 귀속에 따라 이용할 수 있습니다.
    저작물에 본 권리증서를 첨부한 자는 법률에서 허용하는 범위 내에서 저작인접권 및 관련된 모든 권리들을 포함하여 저작권법에 따라 전 세계적으로 해당 저작물에 대해 자신이 갖는 일체의 권리를 포기함으로써 저작물을 퍼블릭 도메인으로 양도하였습니다. 저작권자의 허락을 구하지 않아도 이 저작물을 상업적인 목적을 포함하여 모든 목적으로 복제, 수정·변경, 배포, 공연·실연할 수 있습니다.

    이 그림은 고화질 그림 지침에 적합한 것으로 인정을 받아 선정된 고화질 그림입니다.

    العربية ∙ جازايرية ∙ беларуская ∙ беларуская (тарашкевіца) ∙ български ∙ বাংলা ∙ català ∙ čeština ∙ Cymraeg ∙ Deutsch ∙ Schweizer Hochdeutsch ∙ Zazaki ∙ Ελληνικά ∙ English ∙ Esperanto ∙ español ∙ eesti ∙ euskara ∙ فارسی ∙ suomi ∙ français ∙ galego ∙ עברית ∙ हिन्दी ∙ hrvatski ∙ magyar ∙ հայերեն ∙ Bahasa Indonesia ∙ italiano ∙ 日本語 ∙ Jawa ∙ ქართული ∙ Qaraqalpaqsha ∙ 한국어 ∙ kurdî ∙ кыргызча ∙ Latina ∙ Lëtzebuergesch ∙ lietuvių ∙ македонски ∙ മലയാളം ∙ मराठी ∙ Bahasa Melayu ∙ Nederlands ∙ ਪੰਜਾਬੀ ∙ Norfuk / Pitkern ∙ polski ∙ português ∙ português do Brasil ∙ rumantsch ∙ română ∙ русский ∙ sicilianu ∙ slovenčina ∙ slovenščina ∙ shqip ∙ српски / srpski ∙ svenska ∙ தமிழ் ∙ తెలుగు ∙ ไทย ∙ Tagalog ∙ toki pona ∙ Türkçe ∙ українська ∙ oʻzbekcha / ўзбекча ∙ vèneto ∙ Tiếng Việt ∙ 中文 ∙ 中文(简体) ∙ 中文(繁體) ∙ +/−

    설명

    이 파일이 나타내는 바에 대한 한 줄 설명을 추가합니다
    Fragment of the Mandelbrot set, coordinates: -0.0976106489038042, 0.8441497946098066, width 0.0000000000000094

    이 파일에 묘사된 항목

    다음을 묘사함

    파일 역사

    날짜/시간 링크를 클릭하면 해당 시간의 파일을 볼 수 있습니다.

    날짜/시간섬네일크기사용자설명
    현재2026년 11월 25일 (수) 11:312026년 11월 25일 (수) 11:31 판의 섬네일10,800 × 10,800 (182.29 MB)wikimediacommons>AokorokoIncreased resolution

    이 파일을 사용하는 문서가 없습니다.