Hi, all
How to make the hotspot not face the camera during dragging (moving).
Thanks.
Hi, all
How to make the hotspot not face the camera during dragging (moving).
Thanks.
rephrase your question, hard to understand
The hotspot moves from the point (20, 20) to the point (50, 50), and it always faces the center of the sphere during the movement.
Is there a way to make the hotspot from the beginning to the end of the movement, not towards the center of the sphere,
which seems to be multiplied by a rotation matrix
https://krpano.com/docu/xml/#hotspot.distorted
set distorted=false for your hotspot, then it will face the camera
hi,
To move the point from (20, 20) to (50, 20) in the 3d distorted state, just apply ry=30, The hotspot appears to be translated a distance.
However, if you go from point (20, 20) to point (50, 50), there will be a deviation in changing rx and ry.
How to calculate an Euler angle through the coordinate motion trajectory to react on the hotspot
point ? hotspot ? rotate ? move ?
your explanation is not clear, sorry...
the rotation subject very complex
https://krpano.com/docu/xml/#hotspot.rotationorder
helps a lot for some tasks
Hi,
The hotspot moves from the point (20, 20) to the point (50, 50), and it always faces the center of the sphere during the movement.
Either use the tx,ty,tz settings for an absolute 3d placement/offset (instead of ath,atv,depth), then the hotspot will not automatically face toward the center of the sphere - or use the ox,oy settings for relative 2d movements of the hotspot:
https://krpano.com/docu/xml/#hotspot.tx
https://krpano.com/docu/xml/#hotspot.ox
Btw - to get the tx,ty,tz values from ath,atv values the spheretospace action can be used, e.g.
<hotspot ...
onloaded="spheretospace(ath,atv,depth, tx,ty,tz); set(ath,0); set(atv,0); set(depth,0);"
/>
Best regards,
Klaus
Thanks you for your reminder, but I only have an ath atv to determine the end position, no tx ty tz changes.
Later, I calculate the Euler angle of rotation between the start and end points by reversing the ath atv, and then apply it to the hotspot by mixing its own rotation.
The effect is very good, it meets my needs.
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!