Skip to content

yashV131/3dFractals

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overview

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

Gallery

All at once (2) All at once (3) All at once All at once (1)

Fractals Included

Menger Sponge

A classic 3D fractal generated by recursively subdividing a cube into smaller cubes while removing specific sections at each level of recursion.

Cross Menger Sponge

A variation of the traditional Menger Sponge that uses a cross-based subdivision pattern to create alternative recursive geometries.

Mandelbulb Experiments

3D Mandelbulb-inspired structures exploring volumetric fractal rendering and recursive spatial mathematics.

Additional Recursive Structures

Experimental procedural fractals and recursive object systems developed for testing and visualization.


Technologies Used

  • Unity Engine
  • C#
  • Recursive algorithms
  • 3D mathematics
  • Object instancing and transformations

Project Structure

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/

Script Descriptions

CameraController.cs

Handles camera movement and navigation through the fractal scenes.

ChangeScenes.cs

Manages scene transitions between different fractal visualizations.

CrossMenger.cs

Implements recursive generation logic for cross-based Menger structures.

CrossedMengerSpongeGenerator.cs

Generates modified Menger Sponge fractals using alternative subdivision rules.

Fractals.cs

Base fractal management and shared procedural generation logic.

GroupRotator.cs

Applies rotation and animation to fractal groups for dynamic visualization.

MandelbulbBig.cs

Experimental Mandelbulb-inspired fractal generation system.

MengerSpongeGenerator.cs

Primary recursive generator for the standard Menger Sponge fractal.


Installation

Clone the repository:

git clone https://github.com/yourusername/3D-Fractals-in-Unity.git

Open the project in Unity Hub and launch it using a compatible Unity version.


Usage

  1. Open the project in Unity.
  2. Load one of the fractal scenes.
  3. Press Play in the Unity Editor.
  4. Use the camera controls to explore the generated fractals.
  5. Modify recursion depth and generation settings in the Inspector.

Contributing

Contributions are welcome.

Feel free to fork the repository, experiment with new fractal systems, and submit pull requests with improvements or additional recursive structures.


About

Procedural 3D fractal generation in Unity featuring recursive structures like the Menger Sponge, Mandelbulb-inspired systems, and experimental recursive geometry visualizations.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors