Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

lucy-three

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lucy-three

THREE.js scene composition with lucy-compose.

  • 0.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

Lucy Three Build Status

Part of lucidity project.

THREE.js scene composition tool

Compose complexe scenes by writing simple composition functions with support for live (shader) coding.

Asynchronous scene loading and setup uses promises and ensures that scenes down the graph hierarchy are entirely loaded before they are inserted in parent objects through the call to setup.

First declare sources by specifying a folder.

const compose = require ( 'lucy-compose' )

const fx = compose.load ( 'fx' )

// expects fx/cube/index.js or fx/cube.js to exist
fx ( 'cube' )

// same scene but with some additional options (these are passed right through
// to the scene's "setup" function).
fx
( 'cube'
, { distance: 5.0, extent: 1.0 }
)

Compose with postprocessing effect.

fx
( 'blur'
, { radius: 0.3 }
, fx ( 'cube' )
)

Transition between 'cube' and 'sphere' scenes using a 'fade' effect.

const trans = compose.load ( '../common/trans' )

fx
( 'fade'
, { position: 0.3 }
, fx
  ( 'blur'
  , { radius: 0.8 }
  , scene ( 'cube' )
  )
, scene ( 'sphere' )
)

Scene API

Look at the examples in 'examples' to get an idea of Scene definitions.

Installation

npm install lucy-three --save

Tests

 npm test

Contributing

Please use 'jessy style'.

Add unit tests for any new or changed functionality.

Release History

  • 0.2.0 (2015-09-22) Anaglyph renderer, better resizing support.
  • 0.1.1 (2015-09-03) Fixed main module.
  • 0.1.0 (2015-09-03) Initial release.

Keywords

FAQs

Package last updated on 22 Sep 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc