3D Fractals in Unity is a project focused on generating recursive fractal structures within the Unity Engine. The project explores recursion, spatial subdivision, and algorithmic geometry through real-time 3D visualizations of mathematical fractals.
This repository includes implementations of several recursive fractals, including:
- Menger Sponge
- Cross Menger Variations
- Mandelbulb-inspired structures
- Experimental recursive fractal systems
A classic 3D fractal generated by recursively subdividing a cube into smaller cubes while removing specific sections at each level of recursion.
A variation of the traditional Menger Sponge that uses a cross-based subdivision pattern to create alternative recursive geometries.
3D Mandelbulb-inspired structures exploring volumetric fractal rendering and recursive spatial mathematics.
Experimental procedural fractals and recursive object systems developed for testing and visualization.
- Unity Engine
- C#
- Recursive algorithms
- 3D mathematics
- Object instancing and transformations
Assets/
├── Scenes/
│
├── Scripts/
│ ├── CameraController.cs
│ ├── ChangeScenes.cs
│ ├── CrossMenger.cs
│ ├── CrossedMengerSpongeGenerator.cs
│ ├── Fractals.cs
│ ├── GroupRotator.cs
│ ├── MandelbulbBig.cs
│ ├── MengerSpongeGenerator.cs
│
├── TextMesh Pro/
│
├── RedMaterial.mat
Packages/
ProjectSettings/
Handles camera movement and navigation through the fractal scenes.
Manages scene transitions between different fractal visualizations.
Implements recursive generation logic for cross-based Menger structures.
Generates modified Menger Sponge fractals using alternative subdivision rules.
Base fractal management and shared procedural generation logic.
Applies rotation and animation to fractal groups for dynamic visualization.
Experimental Mandelbulb-inspired fractal generation system.
Primary recursive generator for the standard Menger Sponge fractal.
Clone the repository:
git clone https://github.com/yourusername/3D-Fractals-in-Unity.gitOpen the project in Unity Hub and launch it using a compatible Unity version.
- Open the project in Unity.
- Load one of the fractal scenes.
- Press Play in the Unity Editor.
- Use the camera controls to explore the generated fractals.
- Modify recursion depth and generation settings in the Inspector.
Contributions are welcome.
Feel free to fork the repository, experiment with new fractal systems, and submit pull requests with improvements or additional recursive structures.