Skip to content

A visually immersive spiral galaxy simulation built using Three.js. Realistic Star distribution, Orbital Motion, and 3D Space Rendering for an interactive Cosmic Experience.

Notifications You must be signed in to change notification settings

shreeharshshinde/galaxy_three

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

3D Galaxy Generator

image

An interactive 3D galaxy generator built with Three.js. This project allows you to create and customize beautiful, spiral galaxies in real-time by manipulating various parameters.

🛠️ Interactive Controls

The lil-gui panel provides the following controls to customize the galaxy:

  • count: The total number of stars in the galaxy.
  • size: The size of each individual star particle.
  • radius: The overall radius of the galaxy.
  • branches: The number of spiral arms.
  • spin: The "tightness" of the spiral arms' curve.
  • randomness: The amount of random scatter applied to the stars.
  • randomPower: The power applied to the randomness, affecting how far stars can scatter from the arms.
  • insideColor: The color of the stars at the center of the galaxy.
  • outsideColor: The color of the stars at the outer edges of the galaxy.

Controls

  • Mouse Drag: Rotate the camera around the galaxy.
  • Mouse Scroll: Zoom in and out.
  • Right-Click Drag: Pan the camera.

This project was created as a learning exercise to explore procedural generation, particle systems in Three.js.

About

A visually immersive spiral galaxy simulation built using Three.js. Realistic Star distribution, Orbital Motion, and 3D Space Rendering for an interactive Cosmic Experience.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published