mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-05 01:44:19 +02:00
add readme
This commit is contained in:
parent
e37d68449b
commit
40e6e4b133
1 changed files with 24 additions and 0 deletions
24
examples/light_modifier/README.md
Normal file
24
examples/light_modifier/README.md
Normal file
|
@ -0,0 +1,24 @@
|
|||
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.
|
||||
|
||||
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, 4 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)
|
||||
|
||||
|
||||
|
||||
Current sliders are (top to bottom):
|
||||
red
|
||||
green
|
||||
blue
|
||||
intensity
|
||||
cutoff
|
||||
exponent
|
||||
|
||||
To-Do: Determine how to enter / exit edit mode , support near grab, add other input types (checkbox, etc), prevent velocity drift on slider release,button to hide entity
|
||||
|
||||

|
Loading…
Reference in a new issue