cnr-isti-vclab / openlime

Web-based, advanced images viewer (RTI, multispectral, BRDF, etc. )
GNU General Public License v3.0
23 stars 6 forks source link

Auto-animate light when idle #33

Closed EloiGattet closed 2 years ago

EloiGattet commented 2 years ago

It would be very helpful to have the option to make the light move on it's own indefinitly, either when the user is idle for X seconds. Thelayer.setLight([positionX,positionY],timeinmilliseconds); is definitly a starting point, but the rest is beyond my expertise.

And maybe and example file with a few pre-programmed trajectories/paths where we could just set size and speed would help a lot! So we could make the light moving like a circle or an ∞ or just going back and forth horizontally or vertically?

Anyway, thank you very much!

ponchio commented 2 years ago

See rti-viewer example, with a simple spinning light. Other trajectories would just need a different equation.