Sie sind nicht angemeldet.

jschrader

Fortgeschrittener

  • »jschrader« ist der Autor dieses Themas

Beiträge: 237

Wohnort: Bavaria, Germany

Beruf: Photographer, Producer

  • Nachricht senden

1

Donnerstag, 8. Januar 2015, 14:30

Urgent: Using hotspots in slider-blend-cubes example

I want to use several hotspot graphics in a beofre/after blended cubes pano.
I'm using the example that comes with krpano.

The problem is, the hotspots are only visible as long as I just use one hotspot.
As soon as I add a second hotspot the hotspot are not visible at all.

I understand that the code is treating the cubefaces as hotspots to blend them and that this also may affect individual hotspots, but I can't get the hang how this is related.
Can someone please shed some light on this?

Thanks a lot
Jürgen

jschrader

Fortgeschrittener

  • »jschrader« ist der Autor dieses Themas

Beiträge: 237

Wohnort: Bavaria, Germany

Beruf: Photographer, Producer

  • Nachricht senden

2

Donnerstag, 8. Januar 2015, 14:39

Issue solved, the individual hotspots need to have a "zorder".

One more question:
What do I have to add to make the alpha of the individual hotspot related to the slider?
Like: Hotspots invisible in pano A, become visible with slider moving to pano B?

jschrader

Fortgeschrittener

  • »jschrader« ist der Autor dieses Themas

Beiträge: 237

Wohnort: Bavaria, Germany

Beruf: Photographer, Producer

  • Nachricht senden

3

Donnerstag, 8. Januar 2015, 14:43

Ok, that's easy too.
Simply add the hotspot name to the setcubealpha action.

Quellcode

1
2
3
4
5
6
7
8
9
10
11
	<action name="setcubealpha">
		setalpha(hotspot[face_%1_F], %2);
		setalpha(hotspot[face_%1_L], %2);
		setalpha(hotspot[face_%1_R], %2);
		setalpha(hotspot[face_%1_B], %2);
		setalpha(hotspot[face_%1_Z], %2);
		setalpha(hotspot[face_%1_N], %2);
		setalpha(hotspot[hs1], %2);
		setalpha(hotspot[hs2], %2);
		
	</action>


Wonderful, thanks to myself for helping me *thumbsup* *thumbsup* *thumbsup*

Tuur

Erleuchteter

Beiträge: 3 839

Wohnort: Netherlands

Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Nachricht senden

5

Donnerstag, 8. Januar 2015, 15:19

Jürgen, nice !
I wish we were all be able to solve problems like you *g*

Hey, could you show your example, working example??

jschrader

Fortgeschrittener

  • »jschrader« ist der Autor dieses Themas

Beiträge: 237

Wohnort: Bavaria, Germany

Beruf: Photographer, Producer

  • Nachricht senden

6

Donnerstag, 8. Januar 2015, 15:47

Hahaha, yes, that would be perfect.

At the moment I cannot show it, because it is for a story in a German magazine to be published on Saturday.
But maybe I can show it next week ;-)