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.

Scott Witte

Intermediate

  • "Scott Witte" started this thread

Posts: 252

Location: Milwaukee, WI USA

Occupation: Professional Photographer

  • Send private message

1

Wednesday, January 31st 2018, 12:25am

Stagescale and hotspot alignment problem

When stagescale changes, hotspots scale in absolute size but the edge attribute is ignored. This leads to layout problems. For example: stagescale issue. Mouse over a hotspot and its scale goes to 2x. Click the SCALE button and stagescale toggles to 2X. In the case of the mouseover the edge anchor point is maintained. With stagescale it is not.

Is there a workaround? Can this be fixed??

Also, why does the SCALE button, which is a layer, shift horizontally with stagescale instead of remaining centered?

Relevant code:

Source code

1
2
3
4
5
6
7
8
9
10
11
12
  <style name="hs_style" atv="0" width="40" height="40" onover="tween(scale,2);" onout="tween(scale,1);" />
	
  <hotspot name="hs1" url="graphic.jpg" ath="-7.2" style="hs_style" edge="bottom" />
  <hotspot name="hs2" url="graphic.jpg" ath="10.9" style="hs_style" edge="center" />

  <layer name="scale_test" type="text" align="top" html="SCALE" css="font-size:20px;" 
    onclick="if(stagescale == 1,
      set(stagescale, 2);
    ,
      set(stagescale, 1);
    );" 
  />

This example is running pr14. Pr13 has the same behavior.

2

Wednesday, January 31st 2018, 11:27am

Hi,

thanks for reporting - this is a bug in the WebGL hotspot rendering - a size there wasn't unfortunately stagescaled...

It's the same bug as here:
https://krpano.com/forum/wbb/index.php?p…73624#post73624

This is already fixed for the next release (1.19-pr15).

A workaround renderer="css3d" could be eventually used - or keeping stagescale=1 (mobilescale=1 in the html) for all devices and doing manually scaling for certain elements via devices settings.

Best regards,
Klaus

Scott Witte

Intermediate

  • "Scott Witte" started this thread

Posts: 252

Location: Milwaukee, WI USA

Occupation: Professional Photographer

  • Send private message

3

Monday, February 5th 2018, 5:21pm

This is already fixed for the next release (1.19-pr15)

Great news.

Sorry. Have to ask because I have a major project that depends on this, but is pr15 likely days, weeks or months in the future?

4

Wednesday, February 7th 2018, 10:07pm

Using stagescale=1.0 for all devices is no option?

Quoted

Sorry. Have to ask because I have a major project that depends on this, but is pr15 likely days, weeks or months in the future?
Please contact me by mail for more.

Scott Witte

Intermediate

  • "Scott Witte" started this thread

Posts: 252

Location: Milwaukee, WI USA

Occupation: Professional Photographer

  • Send private message

5

Wednesday, February 7th 2018, 10:56pm

email (not pm) sent.