Open NataliaDSmirnova opened 9 months ago
The example shows a way to add custom labels. It presents how distance from camera to threebox object can be calculated using threejs math.
threebox
threejs
Note: distance is in world units (not meters).
Additional elements:
Main functions:
The example is a result of a conversation here: https://github.com/jscastro76/threebox/issues/409
@jscastro76, could you add any comments? I'd be grateful 😊
The example shows a way to add custom labels. It presents how distance from camera to
threebox
object can be calculated usingthreejs
math.Note: distance is in world units (not meters).
Additional elements:
threejs
stats measuring performancethreejs
GUI control changing distance thresholdMain functions:
The example is a result of a conversation here: https://github.com/jscastro76/threebox/issues/409