Thanks Klaus for replying
but that not works
not only my hotspot remain visible when entering little planet but the webVR hotspot target become visible when exiting ...
and invisible when re-entering little planet, it mean your code is correct

but it doesn't works on my hotspots....
my hotspots are added with
addhotspot in an action like this :
|
Quellcode
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
<style name="hotspots_style" onloaded=""
url="%FIRSTXML%/gfx/skin/hotspot.png" type="image" devices="all" distorted="false"
keep="false" zoom="false" width="143" height="143" scale="0.5" altscale="0.5" scalechildren="false" rotate="0" rx="0" ry="0" rz="0"
edge="center" handcursor="true" visible="true" enabled="true" capture="true" children="false" zorder="0" alpha="0.8" blendmode="normal" smoothing="true" refreshrate="auto" details="8"
flying="0" inverserotation="true" usecontentsize="false"
onover="tween(hotspot[get(name)].alpha,1);" onout="tween(hotspot[get(name)].alpha,0.8);"
onup="tween(plugin[on_over].alpha, 0, 0.3);"
/>
<action name="extra_stuff_pano_06_set_01">
<!-- hotspot loading pano 07 set 01 -->
addhotspot(hotspot_to_pano_07_set_01);
hotspot[hotspot_to_pano_07_set_01].loadstyle(hotspots_style); <!-- -->
set(hotspot[hotspot_to_pano_07_set_01].ath, -0.21021293084334658);
set(hotspot[hotspot_to_pano_07_set_01].atv, 14.4284036031504539661);
set(hotspot[hotspot_to_pano_07_set_01].ondown, set(plugin[on_over].parent, hotspot[hotspot_to_pano_07_set_01]);tween(plugin[on_over].alpha, 1, 0.3););
set(hotspot[hotspot_to_pano_07_set_01].onclick, set(hotspot_clicked, true);
lookto(get(hotspot[hotspot_to_pano_07_set_01].ath), 0, 80, smooth(100,50,100));
action(setup_pano_07_set_01);set(hlookat_custom, 0);set(vlookat_custom, 0);action(load_pano);action(extra_stuff_pano_07_set_01););
</action>
|
is there something to add ?
Thanks
z