Thank you for your reply! )
Yes, this example I have in mind.
I found one solution that works for CSS3D:
|
Quellcode
|
1
2
3
4
5
6
7
|
var spot = krpano.hotspot.getItem("test").sprite;
spot.onclick = function(event)
{
console.log(event.offsetX); // for Chrome
console.log(event.layerX); // for FF
}
|
Thus, we get a discrete coordinates inside DIV-element in perspective.
Regardless of the values of: rx, ry, rz, ox, oy, ath, atv, fov, hlookat and vlookat.
If you can realize this function for WebGL - it will be very good.