Coder Social home page Coder Social logo

three-extensions's Introduction

THREE.Sun

Add a sun object into your THREE.js scene.

Usage

var sunFlares = [
  [0.55, 0.825, 0.99, 7000, 400, -700],
  [0.08, 0.825, 0.99, 800, 200, -700],
  [0.995, 0.025, 0.99, 7000, 7000, -700]
];
var sun = new THREE.Sun({
  texturePath : 'images/sun.png',
  size : 1500,
  color : 0xffffff,
  flares: sunFlares
});
(sun); // Add the new instance to your scene

THREE.SkyBox

Add a sky box object into your THREE.js scene.

Usage

var skyBox = new THREE.SkyBox('images/skybox.jpg');
scene.add(skyBox); // Add the new instance to your scene

THREE.SkyCan

Add a cylinder sky box object into your THREE.js scene.

Usage

var skyCan = new THREE.SkyCan({
  textures : ['images/sides.jpg', 0xff0000, 0x0000ff] // top is red, bottom is blue
});
scene.add(skyCan); // Add the new instance to your scene

THREE.ParticleLine

Add a particle line object into your THREE.js scene.

Usage

var geometry = new THREE.Geometry(); // create the geometry
geometry.vertices.push(new THREE.Vector3(0, 0, 50)); // add a vertex
geometry.vertices.push(new THREE.Vector3(0, 50, 150)); // add a vertex
geometry.vertices.push(new THREE.Vector3(0, 100, 200)); // add a vertex
var particleLine = new THREE.ParticleLine({
  geometry : geometry, // the line geometry object
  lineWidth : 10, // line width
  lineColor : 0xff0000, // line color,
  color : 0xffff00, // particle color,
  size : 30 // particle size
});
scene.add(particleLine); // Add the new instance to your scene

particleLine.update(); // call this method in your rendering loop

three-extensions's People

Contributors

vutran avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

sermonis

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.