I want to arrange hotspots in a 3D space. I want to arrange another hotspot in the opposite direction of the normal of hotspot A, which has been moved in position by tx, ty, tz, rx, ry, rz. Can I get the direction of the normal in KRPano?
How to get the normal vector of hotspot?
-
-
this is not the normal vector but if you add 180 degrees to rx, ry or rz
the hotspot is looking in the opposite direction. -
Thank you for your reply!
this is not the normal vector but if you add 180 degrees to rx, ry or rz
the hotspot is looking in the opposite direction.Using the method you taught me, I was able to point hotspotB in the opposite direction of hotspotA. However, I want to place hotspotB in a position opposite of hotspotA and a certain distance away from hotspotA. Therefore, I would like to know how to calculate the coordinates tx, ty, tz.
-
to convert rx, ry and rz to a vector is not so easy
the rotation order is important
https://krpano.com/docu/xml/#hotspot.rotationordernot 100% sure, but i think you need to search for "euler angles to vector"
this might be of help for tests
https://stackoverflow.com/questions/1568…ectional-vector
https://iqcode.com/code/python/eu…n-vector-python (?)
https://www.andre-gaschler.com/rotationconverter/
Participate now!
Don’t have an account yet? Register yourself now and be a part of our community!