domitry / elegans

Elegant 3D plots generator with WebGL.
http://elegans.readthedocs.org/
Other
59 stars 20 forks source link

Ondemand rendering & better trackball #17

Open fl4p opened 8 years ago

fl4p commented 8 years ago

World is listening for change events from the controls. On an event it invalidates to infinity so the render loop does not miss an update. Rendering will stop after the last change event plus 100ms.

Additionally I changed the trackball behavior a bit, it was quite squishy. Damping now depends on the state, e.g. whether the user is holding/dragging or if it has been released.

domitry commented 8 years ago

OK, I'll review it a little bit later :)

fl4p commented 8 years ago

Don't merge it, the movie animation does not render because it does not use any controller, sorry. Ill investigate this.

domitry commented 8 years ago

OK!

fl4p commented 8 years ago

This is enough, if all modifications to the scene are done via the interface of Stage.

fl4p commented 8 years ago

Try out my new trackball implementation (3rd one) http://f4bsch.github.io/trackball-testing/