hye all... i like to intergrate this code
appear fadein/fadeout POV driven
and Klaus new sample slide-blend-cubes
but the id dont know how to change the hotspot grouping.. %1 in code or %2..
i already try mix those code but the whole side of cube and my appear fadein/fadeout POV driven hotspot seem mixed up together.. help me.. :)
THIS IS FADE/FADEOUT POV DRIVEN CODE
Code
<events onviewchange="show_hotspots_in_range()"
/>
<action name="show_hotspots_in_range">
set(i,0);
loop_hotspots(0);
</action>
<action name="loop_hotspots">
test_hotspot_in_range(get(hotspot[%1].name));
inc(i);
if (i LT hotspot.count, loop_hotspots( get(i) ) );
</action>
<action name="test_hotspot_in_range">
sub(hdistance, view.hlookat, hotspot[%1].ath);
mod(hdistance,hdistance,360);
sub(vdistance, view.vlookat, hotspot[%1].atv);
mod(vdistance,vdistance,360);
if(hdistance LT 0, mul(hdistance,hdistance,-1));
if(vdistance LT 0, mul(vdistance,vdistance,-1));
if(hdistance GT 60, set(hdistance,60) );
if(vdistance GT 60, set(vdistance,60) );
div(hdistance,hdistance,60);
div(vdistance,vdistance,60);
add(distance2,hdistance,vdistance);
sub(hotspot[%1].alpha,1.0,distance2);
if(hotspot[%1].alpha LT 0.5, set(hotspot[%1].alpha,0) );
</action>
Alles anzeigen
and
THIS IS KLAUS PARTIAL NEW SLIDER BLEND CUBES CODE
Code
<action name="addface">
addhotspot(%1);
set(hotspot[%1].url, %2);
set(hotspot[%1].ath, %3);
set(hotspot[%1].atv, %4);
set(hotspot[%1].width, 1000);
set(hotspot[%1].height, 1000);
set(hotspot[%1].distorted, true);
set(hotspot[%1].enabled, false);
set(hotspot[%1].visible, false);
set(hotspot[%1].alpha, 0.0);
set(hotspot[%1].details, 16);
set(hotspot[%1].zorder, %1);
</action>
Alles anzeigen
regards
albulp