Sie sind nicht angemeldet.

JPG_master

Anfänger

  • »JPG_master« ist der Autor dieses Themas

Beiträge: 20

Wohnort: Deutschland

Beruf: IT Manager

  • Nachricht senden

1

Sonntag, 25. Januar 2015, 18:33

Polygon HotSpot Blinking Border analog animated HotsSpots from Klaus' examples

Hi,

I made the borders of a Polygin HotSpot blink - using the logic Klaus provided with his animated HotSPots.

Unfortunately th refresh (ans do the blinking) is linked to the referesh of the STAGE - i.e. while moving the Pano ... fine.
If Pano is idle => no blinking.

Any ideas to make it better than below???
<!-- polygon hotspot animation -->
<action name="polygonhotspot_blink">
inc(frame,1,get(lastframe),0 );
mul(blink , frame,get(startalpha) );
mul(linewidth , frame,get(startline) );
set(hotspot[%1].borderalpha , get(blink) );
set(hotspot[%1].borderwidth , get(linewidth) );
delayedcall(0.15, polygonhotspot_blink( %1 ) );
</action>

<style name="blink_polygonhotspot"
startalpha="0.05"
startline="0.2"
frame="0"
lastframe="19"
onloaded="polygonhotspot_blink( get(name) );"
/>

<hotspot name="little_square"
style="sitzplatz|blink_polygonhotspot"
ath="73.15" atv="-5.42"
>
<point ath="00.00" atv="-10.52" />
<point ath="03.67" atv="-10.52" />
<point ath="03.67" atv="-06.90" />
<point ath="00.00" atv="-06.90" />
</hotspot>


Thanks to Cracks and thanks to Klaus for the wonderful Tool. *smile* *smile* *smile* *smile*
Honi soit qui mal y pense ! *thumbup*

2

Montag, 26. Januar 2015, 14:07

Hi,

is your krpano version up to date?
With 1.18 the polygonal hotspot should update/redraw automatically when changing its properties.

Btw (just as note) - simply tweening the borderalpha/borderwidth properties would be possible too.

Best regards,
Klaus

JPG_master

Anfänger

  • »JPG_master« ist der Autor dieses Themas

Beiträge: 20

Wohnort: Deutschland

Beruf: IT Manager

  • Nachricht senden

3

Montag, 26. Januar 2015, 21:34

Klaus,
is your krpano version up to date?
With 1.18 the polygonal hotspot should update/redraw automatically when changing its properties.
that was it => solved. Thanks

Here I have another Issue:
Btw (just as note) - simply tweening the borderalpha/borderwidth properties would be possible too.
When using multi-variable Tween i could not fugure out correct syntax.
E.g.

tween( view.hlookat | view.fov, 90.0 | 35, 4)
did not work.
tween( view.hlookat, 90.0 | view.fov, 35, 4)
neither. Anyhow I would expect the first syntax to be correct.

Thanks again
Honi soit qui mal y pense ! *thumbup*

4

Dienstag, 27. Januar 2015, 09:17

When using multi-variable Tween i could not fugure out correct syntax.
E.g.

tween( view.hlookat | view.fov, 90.0 | 35, 4)

That would be the correct syntax, but currently there are no white-spaces allowed there (I will add a white-space trimming in the next release).

Try it this way:

Quellcode

1
tween(view.hlookat|view.fov, 90.0|35, 4)


Best regards,
Klaus

JPG_master

Anfänger

  • »JPG_master« ist der Autor dieses Themas

Beiträge: 20

Wohnort: Deutschland

Beruf: IT Manager

  • Nachricht senden

5

Montag, 9. Februar 2015, 08:02

Klaus,

following your suggestion, I tried TWEENing for the blinking of the borders of a Polygon HotSpot .
Looks fine.

BUT
when having more than one similiar hotspot in one pano, they blink SEQUENTIALLY instead in PARALLEL or maybe a little OVERLAPED.

Anybody any ideas?

Code Example
<action name="polygonhotspot_blink">
set (hotspot[%1].borderalpha , get(startalpha) );
set (hotspot[%1].borderwidth , get(startline) );
delayedcall(1,
tween(hotspot[%1].borderalpha , 0.95 , 1 );
tween(hotspot[%1].borderwidth , 3.8 , 1 );
wait(1); );
delayedcall(1,
tween(hotspot[%1].borderalpha , get(startalpha), 1 );
tween(hotspot[%1].borderwidth , get(startline) , 1 );
wait(1); );
delayedcall(0.5,polygonhotspot_blink( %1 ) );
</action>

<style name="blink_polygonhotspot"
startalpha="0.05"
startline="0.2"
frame="0"
lastframe="19"
onloaded="polygonhotspot_blink( get(name) );"
/>

<hotspot name="little_square" style="blink_polygonhotspot"
ath="73.15" atv="-5.42"
>
<point ath="00.00" atv="-10.52" />
<point ath="03.67" atv="-10.52" />
<point ath="03.67" atv="-06.90" />

<point ath="00.00" atv="-06.90" />

</hotspot>


best regards
Honi soit qui mal y pense ! *thumbup*

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »JPG_master« (9. Februar 2015, 20:20) aus folgendem Grund: Format destroyed