Hello everyone,
My first post on this forum, also pardon my english if any mistake, my native language is french.
I know krpano for some time now an I tried it for some experiments especially with stereoscopic panos in VR. It is very good and brings many great possibilities for virtual tours, but I never really began to use it extensivelly and my skills in coding (like in XML) are quite low. I plan to use it more now so I have to learn...
For now I have a specific question. In a tour with several stereoscopic panos, in WebVR mode I want to have a floating/following set of little hotspots that can trigger some different zoom levels (fiels of view), inside VR view, without changing any other parameter (like orientation). For example 3 hotspots for 3 zoom levels, one for wide angle view, one for normal view and one for zoomed view. I want those 3 hotspots following the view like the default floating arrows used to go to preview or next scene in WebVR (around 45° down).
So I think it is quite simple to achieve but I don't know how to code this. I replaced the code of the default floating arrows of WebVR (in vtourskin.xml file), but I don't know what to write to make it trigger an instant change in fiel of view value. Maybe we have to change some parameter in the webvr.xml file, from the vtourskin.xml file? I guess there is just something to write for "onclick=";"" in hotspot arguments.
This is the part of the vtourskin.xml file I replace to test this with floating hotspots (just 2 arrows for now):
Zitat<!-- VR scene switching hotspots -->
<style name="skin_webvr_menu_style" depth="250" scale="0.1" distorted="true" ath="0" atv="45" alpha="0.25" />
<hotspot name="skin_webvr_prev_scene" keep="true" style="skin_base|skin_webvr_menu_style" crop="0|64|64|64" ox="-24" rotate="+90" vr_timeout="2000" onclick="skin_nextscene_loop(-1);" visible="false" devices="html5.and.webgl" />
<hotspot name="skin_webvr_next_scene" keep="true" style="skin_base|skin_webvr_menu_style" crop="64|64|64|64" ox="-12" rotate="+90" vr_timeout="2000" onclick="skin_nextscene_loop(+1);" visible="false" devices="html5.and.webgl" />
So I don't know with what to replace the code "skin_nextscene_loop(-1)", to set a new field of view instead.
Like I said my coding skills are still very low especially in XML, so if someone can explain me what to write and where, it would be really appreciated.
Regards,Hoel