Hi,
Currently I'm using the WebVR cursor to click hotspots which display a textfield layer within the hotspot (parent). Works like a charm. What I'm trying to accomplish now is a method of hiding the textfield layer once the cursor rolls off of the hotspot/textfield. Another words, hide hotspot's text on rollout.
I've attempted saving and checking (onviewchanged) the opened hotspot's spheretoscreen coords and hiding the hotspot text when the hotspost corrds have apdated to certain distance. But it's unreliable as the coordinates are sometimes NaN and the distance moved isn't as consistant as I expected due to distortion.
Is there an out-of-the-box solution for this already with WebVR? Or can anyone think of a way to code it?
Thanks!
-Joseph