I have some lens flares in the ceiling spotlights and some that are behind a wall that disappears when the cursor hovers over it. Behind the wall that disappears there are some spotlights in the ceiling too and they need to light up. How do I do that?
I've been trying for the past couple of hours to make this work but I'm a beginner at coding in krpano and it's a bit difficult.
Here's my code:
<krpano version="1.18">
<!-- the skin -->
<include url="skin/defaultskin.xml" />
<!-- view settings -->
<view hlookat="0" vlookat="0" fovtype="MFOV" fov="120" maxpixelzoom="1.7" fovmax="135"/>
<preview url="Interior.tiles/preview.jpg" />
<image>
<cube url="Interior.tiles/pano_%s.jpg" />
<mobile>
<cube url="Interior.tiles/mobile_%s.jpg" />
</mobile>
</image>
<action name="calc_pos_from_hfov_yaw_pitch_roll">
div(hfov,%1,57.295779);
div(yaw,%2,-57.295779);
div(pitch,%3,57.295779);
div(roll,%4,-57.295779);
mul(hfov,0.5);Math.tan(hfov);mul(width,hfov,1000);set(height,'prop');
Math.cos(ch,yaw);Math.sin(sh,yaw);
Math.cos(ca,pitch);Math.sin(sa,pitch);
Math.cos(cb,roll);Math.sin(sb,roll);
mul(m0,ca,ch);
mul(tmp,cb,sa);mul(tmp,ch);mul(tmp2,sb,sh);add(m3,tmp,tmp2);
mul(m4,cb,ca);
mul(tmp,cb,sa);mul(tmp,sh);mul(tmp2,sb,ch);sub(m5n,tmp,tmp2);mul(m5n,-1);
mul(tmp,sb,sa);mul(tmp,ch);mul(tmp2,cb,sh);sub(m6n,tmp,tmp2);mul(m6n,-1);
Math.atan2(yaw,m6n,m0);
Math.atan2(roll,m5n,m4);
Math.asin(pitch,m3);
mul(ath,yaw,57.295779);
mul(atv,pitch,57.295779);
mul(rotate,roll,57.295779);
</action>
<hotspot name="walls_hidden"
url="hidden_walls.jpg"
distorted="true"
onloaded="calc_pos_from_hfov_yaw_pitch_roll(113, -104.802, -0.5058, -15.5472); animation()"
enabled="false"
alpha="0.0"
/>
<hotspot name="walls_hit_area" capture="false" handcursor="false" alpha="0" onover="tween(hotspot[walls_hidden].alpha,1.0);" onout="tween(hotspot[walls_hidden].alpha,0.0);">
<point ath="72.416069" atv="-9.832708" />
<point ath="60.661331" atv="68.691131" />
<point ath="168.373886" atv="36.769069" />
<point ath="150.799663" atv="-29.221085" />
<point ath="41.205262" atv="-33.604016" />
</hotspot>
<lensflare name="lf0" set="DEFAULT" ath="-16.468182" atv="7.813521" blind="0.0" size="0.25"/>
<lensflare name="lf1" set="DEFAULT" ath="10.275219" atv="6.918436" blind="0.0" size="0.25"/>
<lensflare name="lf2" set="DEFAULT" ath="-8.071901" atv="-13.730841" blind="0.0" size="0.35"/>
<lensflare name="lf3" set="DEFAULT" ath="16.735837" atv="-11.857243" blind="0.0" size="0.35"/>
<lensflare name="lf4" set="DEFAULT" ath="-32.545975" atv="-30.318294" blind="0.0" size="0.75"/>
<lensflare name="lf5" set="DEFAULT" ath="47.898858" atv="-15.154189" blind="0.0" size="0.45"/>
<lensflare name="lf6" set="DEFAULT" ath="176.950145" atv="-62.52692" blind="0.0" size="2.0"/>
</krpano>