Skip to content
Suraya Shivji edited this page Apr 9, 2018 · 10 revisions

Intro

What is Planets.js?

Planets.js is a simple library built on three.js that lets you create procedural and texture-based planets.

Who is this for?

If you are familiar with three.js and want to generate planets in your scene, this is the library for you! If you are new to three.js, you should first learn the basics of setting up a three.js scene.

How does it work?

Planets.js can generate two types of planets: (1) texture-based planets and (2) procedural planets. A texture-based planet is created based on a single texture (or two textures if you want a bump map on it. You can create a texture-based planet from either a texture URL or from a local file. A procedural planet, on the other hand, generates its visual elements entirely through code (not based on a pre-existing image).

Docs

Basic Setup - setting up Planets.js with three.js

Creating a Texture Planet - learn how to create a planet based on a texture

Creating a Procedural Planet - learn how to create a procedural planet

API

Clone this wiki locally