Skip to content

Render planet and stars with Vite, Typescript and Threejs

Notifications You must be signed in to change notification settings

keithCuniah/planet-threejs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PLANET

3D Rendering of Stars/Planet... with Vite, Typescript and Threejs

image

In this example, Sun and Planets (also satellite) are considered as Sphere and stars are Dot.

UML

Alt text

The CompoundGraphic contains several kind of shapes : could be Dot or Sphere or even CompoundGraphic. A composite pattern have been implemented to separate responsabilities: The class ShapeScene can manipulate different kind of shapes through the interface IGraphic without been coupled to the complexe structures and independently to the complexity of the object. We can assimilate the leaf of the pattern to the class Dot and the composite of the pattern to the class CompoundGraphic.

Inspiration came from refactoring guru

About

Render planet and stars with Vite, Typescript and Threejs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published