GithubHelp home page GithubHelp logo

osamakashif / solar_system Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 6.16 MB

Solar System model build using React ThreeJS libraries.

Home Page: https://osamakashif.github.io/Solar_System/

HTML 10.26% JavaScript 89.01% CSS 0.73%

solar_system's Introduction

Solar System

A Solar System 3D model

This web app uses the React Three.js libraries - react-three/fiber, react-three/drei, and three.

These libraries are used to build a 3-D model of the Solar System.

The distances and sizes of the sun and planets aare not exactly relative since they were kept closer to show more easily. However the orbiting speeds are reflective of how fast they would be relative to each other in reality. For simplicity a circular orbit was assumed.

Effectively, this is a model to show use of the React Three.js libraries and not to model the solar system completely accurately.

The model is currently displayed on https://osamakashif.github.io/Solar_System/.

Model

The images of the final model are as follows.

Initially:

InitialImage

After a while:

ImageAfterTime

Rotating and zooming after a while:

ShiftedImage

To run the application

To install

You need to install Node.js on your device if you do not have it already. You need to have Node and npm working on your device. The application was developed with node version 16.14.0, and npm version 8.3.1.

Once you have those you can use the steps to run the application.

Steps to run

  1. Clone the repository;
  2. Open the terminal in the solar_system directory;
  3. Run npm install;
  4. Run npm start.

With these steps the application should be running on your device.

References

Information of planets

The planet distances from the Sun and their diameters were taken from Wikipedia.

https://en.wikipedia.org/wiki/Solar_System

The time it took for the planets to orbit the Sun were taken from SpacePlace.

https://spaceplace.nasa.gov/years-on-other-planets/en/

Images used

The images used to wrap around the planets were taken from Solar System Scope.

https://www.solarsystemscope.com/textures/

The images are as follows.

Sun:

Sun

Mercury:

Mercury

Venus:

Venus

Earth:

Earth

Mars:

Mars

Jupiter:

Jupiter

Saturn:

Saturn SaturnRing

Uranus:

Uranus

Neptune:

Neptune

solar_system's People

Contributors

osamakashif avatar github-classroom[bot] avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.