overte/examples/light_modifier
2015-12-19 18:19:00 -08:00
..
closeButton.js cleanup 2015-12-18 16:35:06 -08:00
lightLoader.js working non kinematic release 2015-12-17 10:58:14 -08:00
lightModifier.js create panel entity and parent panel to it 2015-12-19 18:19:00 -08:00
lightModifierTestScene.js cleanup 2015-12-18 16:44:20 -08:00
lightParent.js prep for close button 2015-12-17 17:17:04 -08:00
README.md readme 2015-12-18 16:39:21 -08:00
slider.js update overlays when cutoff slider is used 2015-12-19 12:49:42 -08:00

This PR demonstrates one way in-world editing of objects might work. We start with a spotlight. When you distant grab the sliders, you can move them along their axis to change their values. You may also rotate / move the block to which the spotlight is attached.

Enter edit mode by running your distance beam through a light overlay. Exit using the red X.

To test: https://rawgit.com/imgntn/hifi/light_mod/examples/lights/lightLoader.js To reset, I recommend stopping all scripts then re-loading lightLoader.js

When you run the lightLoader.js script, several scripts will be loaded:

  • handControllerGrab.js (custom)
  • lightModifier.js (listens for message to create sliders for a given light)
  • lightModifierTestScene.js (creates a light and parents it to a block, then sends a message ^^)
  • slider.js (attached to each slider entity)
  • lightParent.js (attached to the entity to which a light is parented, so you can move it around)
  • closeButton.js (for closing the ui)
  • ../libraries/lightOverlayManager.js (custom)
  • ../libraries/entitySelectionTool.js

Current sliders are (top to bottom): red green blue intensity cutoff exponent

capture