Git Product home page Git Product logo

threejs-space-simulations's Introduction

This repository is a collection of recent experiments I've been working on in three.js.

Three.js is a JavaScript library built on top of the WebGL graphics language. WebGL is a low level, verbose language used to create graphics in the browser that can be both very performant and very hard to use. Three.js greatly reduces the amount of boilerplate code you have to write to build rich 3D graphics, and wraps common operations into intuitive constructor functions. If you're interested in learning three.js, I recently completed two new tutorials on getting started with the three.js library. You can find them at loftus.xyz

You will find the different simulations in this repo in the examples folder. To develop and test out the simulations locally, first clone the repo down to your local machine.

git clone https://github.com/MattLoftus/threejs-space-simulations.git

To avoid cross-origin errors when using textures(every example in this repo), you will need to host the files on a local server. I recommend using python simple server or npm live server. First navigate to the root of the directory, then run the following command.

python -m SimpleHTTPServer

This will host the folder on port 8000, so you can head over to the browser and type "localhost:8000" into the address bar, and you will see a listing for the directory. If you happen to have a version of python on your machine >= 3.0, you may need to run the following command instead.

python2.7 -m SimpleHTTPServer

threejs-space-simulations's People

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.