Hi,
I'm trying to lookto hotspot when clicked but not centered in the screen...
Here is an exemple : http://360images.fr/barebonelookto/
Works fine when hotspot has ath="0" but it doesn't when ath is different.
Plus I would like to look to the offset position directly without having to look first at the centered position and then calculate the offset coordinates with screentosphere.
Don't know if it's possible, well I guess it is with some math but I'm very bad with math...
Any clue ?
Here is my actual code :
Code
<style name="hsstyle" url="hs.png" onclick="lookto_offset(get(name))"/>
<action name="lookto_offset">
lookto(get(hotspot[%1].ath), get(hotspot[%1].atv), get(hotspot[%1].tofov), smooth(50,50,50),true,true,
calc(hpix,stagewidth * 0.25);calc(vpix,stageheight * 0.5);screentosphere(hpix, vpix, toh, tov);lookto(get(toh),get(tov),get(view.fov),smooth(50,50,50));
);
</action>
<hotspot name="hs1" style="hsstyle" ath="0" atv="0" tofov="20"/>