{"id":23752356,"url":"https://github.com/ktk-jadoo/mandelbrot-visualizer","last_synced_at":"2026-04-30T02:34:20.674Z","repository":{"id":267203744,"uuid":"900122627","full_name":"KTK-Jadoo/Mandelbrot-Visualizer","owner":"KTK-Jadoo","description":"Mandelbrot set visualizer built in Unity. It uses a custom shader for rendering the fractal and a controller script for navigation, allowing dynamic zooming, panning, and iteration adjustments.","archived":false,"fork":false,"pushed_at":"2024-12-09T01:51:50.000Z","size":30,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-01T09:24:02.275Z","etag":null,"topics":["csharp","hlsl","unity"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/KTK-Jadoo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-12-07T23:18:21.000Z","updated_at":"2024-12-09T01:54:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"95578ae3-6ffd-4340-b484-e5e6d3f75a38","html_url":"https://github.com/KTK-Jadoo/Mandelbrot-Visualizer","commit_stats":null,"previous_names":["ktk-jadoo/cool-tings"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/KTK-Jadoo/Mandelbrot-Visualizer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KTK-Jadoo%2FMandelbrot-Visualizer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KTK-Jadoo%2FMandelbrot-Visualizer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KTK-Jadoo%2FMandelbrot-Visualizer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KTK-Jadoo%2FMandelbrot-Visualizer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KTK-Jadoo","download_url":"https://codeload.github.com/KTK-Jadoo/Mandelbrot-Visualizer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KTK-Jadoo%2FMandelbrot-Visualizer/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261561175,"owners_count":23177542,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["csharp","hlsl","unity"],"created_at":"2024-12-31T17:28:41.505Z","updated_at":"2026-04-30T02:34:20.648Z","avatar_url":"https://github.com/KTK-Jadoo.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mandelbrot Set Visualizer in Unity\n\nThis project is an interactive Mandelbrot set visualizer built in Unity. It uses a custom shader for rendering the fractal and a controller script for navigation, allowing dynamic zooming, panning, and iteration adjustments.\n\n---\n\n## 🎨 **Features**\n- **Real-Time Exploration**:\n  - Smooth zooming using the mouse scroll wheel.\n  - Adjustable panning speed based on zoom level for fine control.\n- **Customizable Detail**:\n  - Dynamic iteration count adjustment for balancing performance and detail.\n  - Grayscale rendering for a clean and elegant aesthetic.\n- **Interactive Navigation**:\n  - Intuitive keyboard and mouse controls for seamless fractal exploration.\n- **Reset Functionality**:\n  - Quickly reset the view to the default position, zoom level, and iteration count.\n\n---\n\n## 🖥️ **Technologies Used**\n- **Unity Engine** (Version X.X or higher)\n- **HLSL** (High-Level Shader Language)\n- **C# Scripts** for user interaction and parameter control\n\n---\n\n## 🚀 **Getting Started**\n\n### Prerequisites\n- Unity Editor (Version X.X or later)\n- Basic understanding of Unity projects\n\n### Installation\n1. Clone this repository:\n   ```bash\n   git clone https://github.com/your-username/mandelbrot-visualizer.git\n   cd mandelbrot-visualizer\n   ```\n2. Open the project in Unity.\n3. Attach the **MandelbrotController** script to a GameObject in your scene.\n4. Create a Plane or Quad and assign the Mandelbrot material to it.\n\n---\n\n## 🎮 **Controls**\n\n| **Action**         | **Input**               |\n|---------------------|-------------------------|\n| Zoom               | Scroll mouse wheel      |\n| Pan (Move)         | `W`, `A`, `S`, `D`      |\n| Increase Iterations | `+` or `=` key          |\n| Decrease Iterations | `-` or `_` key          |\n| Reset View         | `R` key                 |\n\n---\n\n## 🛠️ **Customization**\n\n### Parameters (Exposed in Unity Inspector)\n- **Base Pan Speed**: Controls the default speed of panning.\n- **Zoom Speed**: Sensitivity of zooming with the mouse scroll wheel.\n- **Pan Scaling Exponent**: Adjusts how panning slows down with zoom.\n  - Example: Set to `2.0` for quadratic scaling or `3.0` for cubic scaling.\n- **Min/Max Iterations**: Bounds for iteration adjustments.\n- **Iteration Step**: Controls how much the iteration count changes with `+` or `-`.\n\n---\n\n## 🧠 **How It Works**\n\n### Mandelbrot Shader\nThe shader computes the Mandelbrot fractal by iterating the formula:\n\\[ Z_{n+1} = Z_n^2 + C \\]\n- For each pixel, the shader determines the number of iterations before the value escapes a threshold (e.g., magnitude \u003e 2).\n- The iteration count is normalized and used to generate grayscale values.\n\n### Controller Script\n- **Dynamic Zoom and Pan**: Adjusts the fractal’s `_Zoom` and `_Offset` parameters.\n- **Iteration Control**: Updates the `_MaxIterations` parameter to refine fractal detail.\n- **Smooth Navigation**: Panning speed scales based on the zoom level for fine control during deep zooms.\n\n---\n\n## 🌟 **Future Enhancements**\n- **Color Mapping**: Add support for customizable color gradients.\n- **Julia Sets**: Enable rendering of related fractals with a toggle.\n- **Save/Export**: Allow users to save their favorite fractal views as images.\n\n---\n\n## 🤝 **Contributing**\nContributions are welcome! Feel free to open issues or submit pull requests to improve this project.\n\n---\n\n## 📧 **Contact**\nIf you have questions or feedback, feel free to reach out:\n- **Email**: jadoo@berkeley.edu\n- **GitHub**: [KTK-Jadoo](https://github.com/KTK-Jadoo)\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fktk-jadoo%2Fmandelbrot-visualizer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fktk-jadoo%2Fmandelbrot-visualizer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fktk-jadoo%2Fmandelbrot-visualizer/lists"}