Hi, all
I can use canvas as a render object for videoDOM, but when drawing transparent images or cropping images, the black background of the hotspot itself is always there.
Can you provide a method to remove the black background.
Hi, all
I can use canvas as a render object for videoDOM, but when drawing transparent images or cropping images, the black background of the hotspot itself is always there.
Can you provide a method to remove the black background.
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.
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
How to set the correct rx ry rz with quaternion to keep it consistent with the local rotation of three.js