Sie sind nicht angemeldet.

  • »spacerywirtualne« ist der Autor dieses Themas

Beiträge: 834

Wohnort: Poland, Europe

Beruf: krpano developer : virtual tours

  • Nachricht senden

1

Freitag, 8. Februar 2019, 23:35

layer pixelwidth with hotspot parent bug?

Hi I have this code:


<hotspot name="hs1" type="text" renderer="css3d" scale="1" width="2" height="2" ath="0" atv="0" edge="center" zoom="true" keep="true" />

<layer name="ly1" parent="hotspot[hs1]" type="container" width="100%" height="100%" align="center" edge="center" keep="true" />

<events name="pixsiz" keep="true" onclick="trace('ly1 pixelwidth: ',get(layer[ly1].pixelwidth))"/>


My trace log: INFO: ly1 pixelwidth: 2

Why does pixelwidth and pixelheight display invalid values? *huh* *huh* *huh*
You own online, cloud tool for creating virtual tours - www.cms4vr.com

facebook page :: facebook group :: youtube

cms4vr team *thumbsup*

2

Samstag, 9. Februar 2019, 08:09

the parent hs has width=2,
the child ly1 has width=100%
so ly1 has a pixelwidth=2

what pixelwidth would you expect?

  • »spacerywirtualne« ist der Autor dieses Themas

Beiträge: 834

Wohnort: Poland, Europe

Beruf: krpano developer : virtual tours

  • Nachricht senden

3

Samstag, 9. Februar 2019, 10:03

The documentation says:
"These variables contain the final pixel size of the element..."
so it seemed to me that the pixelwidth value shows the actual width in the pixels on the screen. In this case, the width changes depending on the view.fov

Piotr
You own online, cloud tool for creating virtual tours - www.cms4vr.com

facebook page :: facebook group :: youtube

cms4vr team *thumbsup*

4

Montag, 11. Februar 2019, 09:16

that probably doesn't include hotspot distortion
it would cost a lot of processing time to re-calculate the sizes for every hotspot on every view change
(just guessing here)

  • »spacerywirtualne« ist der Autor dieses Themas

Beiträge: 834

Wohnort: Poland, Europe

Beruf: krpano developer : virtual tours

  • Nachricht senden

5

Montag, 11. Februar 2019, 10:47

that probably doesn't include hotspot distortion
A hotspot is not distorted but has a zoom="true", but that's probably the point...

thx indexofrefraction

Piotr
You own online, cloud tool for creating virtual tours - www.cms4vr.com

facebook page :: facebook group :: youtube

cms4vr team *thumbsup*