DefaultUI - Standard UI overlay for ThreePresenter
Provides a ready-to-use UI control panel with buttons for common 3D viewer operations.
This class demonstrates how to build a UI on top of ThreePresenter without tight coupling.
Features:
Home/Reset button - returns camera to default view
Light toggle - enable/disable head lighting
Light position control - adjust light direction relative to camera
All buttons are hidden by default and must be enabled individually using
setButtonVisible(id, true). Available button IDs: 'home', 'light', 'lightPosition',
'env', 'screenshot', 'camera', 'annotation', 'fullscreen'.
The UI responds to state changes via callbacks, keeping it in sync with the
presenter's internal state.
DefaultUI - Standard UI overlay for ThreePresenter
Provides a ready-to-use UI control panel with buttons for common 3D viewer operations. This class demonstrates how to build a UI on top of ThreePresenter without tight coupling.
Features:
All buttons are hidden by default and must be enabled individually using
setButtonVisible(id, true). Available button IDs: 'home', 'light', 'lightPosition', 'env', 'screenshot', 'camera', 'annotation', 'fullscreen'.The UI responds to state changes via callbacks, keeping it in sync with the presenter's internal state.
Example
See