You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

jschrader

Intermediate

  • "jschrader" started this thread

Posts: 237

Location: Bavaria, Germany

Occupation: Photographer, Producer

  • Send private message

1

Thursday, January 8th 2015, 2:30pm

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

Intermediate

  • "jschrader" started this thread

Posts: 237

Location: Bavaria, Germany

Occupation: Photographer, Producer

  • Send private message

2

Thursday, January 8th 2015, 2:39pm

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

Intermediate

  • "jschrader" started this thread

Posts: 237

Location: Bavaria, Germany

Occupation: Photographer, Producer

  • Send private message

3

Thursday, January 8th 2015, 2:43pm

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

Source code

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

Sage

Posts: 3,115

Location: Netherlands

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

  • Send private message

4

Thursday, January 8th 2015, 3:10pm

*thumbsup*
http://www.virtualtuur.com
Skype:studiotuur

martyhr

Intermediate

Posts: 328

Location: CZ

  • Send private message

5

Thursday, January 8th 2015, 3:19pm

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

Intermediate

  • "jschrader" started this thread

Posts: 237

Location: Bavaria, Germany

Occupation: Photographer, Producer

  • Send private message

6

Thursday, January 8th 2015, 3:47pm

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 ;-)