You are not logged in.

1

Tuesday, March 14th 2023, 4:16pm

Hotspots disappearing when zooming in (flat pano)

Hey there,

it's me with a strange problem again ;-)

I created hotspots as horizontal and vertical helper lines that you can move around.

See: Example

Those lines should only be 1 pixel wide, always be the whole size of the screen and be always on the same position when zooming.
So far that all works as intended.

However: When you zooming in, the lines disappear - depending on the view position.
So when you zoom in at the image center (where the lines cross) you can zoom in all the way.
When you go to the left/right/top/bottom however the line are gone at some level.
So more you move out of the center so further you have zoom out to see the lines.

Can someone help me with this problem?
I first thougth about playing with the zoom and distorted attributes but using those I can't get 1 pixel lines working as you need some scale than.

Thanks for any advice!

This post has been edited 2 times, last edit by "s-maier" (Mar 30th 2023, 6:19pm)


Tuur

Sage

Posts: 3,784

Location: Netherlands

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

  • Send private message

2

Tuesday, March 14th 2023, 4:38pm

Hi,

I have in one/two totally other user case(s) in 360 the same issue I think.
Not sure if it's 1.21 related yet.. I'll test.

btw .. nice collection *love*

Tuur *thumbsup*

This post has been edited 1 times, last edit by "Tuur" (Mar 14th 2023, 5:13pm)


3

Wednesday, March 15th 2023, 8:12pm

Update: Bug is also present in krpano 1.21 (build 2023-03-15)

4

Thursday, March 16th 2023, 1:23pm

Hi,

that kind of problem should appear in all versions (1.19, 1.20, 1.21).

It's about the frustum/visibility checking of hotspots (if they are out of the screen-range to avoid rendering them).

And here currently only a simplified check is used for performance reason and that unfortunately fails for extremely large hotspots...
But improving this is already on my list.

Best regards,
Klaus

Eric Chen

Trainee

Posts: 65

Location: China

Occupation: Krpano custom coding

  • Send private message

5

Thursday, March 16th 2023, 3:32pm

@Klaus Another bug: Flat video won't work in v1.21, but it works in v1.20.
flatpanohfov in the webvr plugin doesn't seem to work with flat video.

Source code

1
<flat url="plugin:video" />
*thumbup*

Preload Plugin (Free, source code)
Constrast Plugin
KR HLS Plugin
Slider Controller Plugin
KR+Next+MapBox+TS Demo (source code)


微信:Eric_Chen1990

6

Thursday, March 16th 2023, 3:44pm

Hi,

that kind of problem should appear in all versions (1.19, 1.20, 1.21).

It's about the frustum/visibility checking of hotspots (if they are out of the screen-range to avoid rendering them).

And here currently only a simplified check is used for performance reason and that unfortunately fails for extremely large hotspots...
But improving this is already on my list.

Best regards,
Klaus


Thanks for the clarification. That explains why it totally disappears at a specific pixel when moving.

Do you have a ETA in mind for when the fix could happen?

If it would take longer due to low priority (what I could totally understand) I would try to work around by "pulling" the hotspot close to the view.fov with onviewchange - guess that should work.

Thanks again!

7

Friday, March 24th 2023, 3:46pm

Hi Klaus!

Turns out that making the hotspots smaller an pulling them to the center to always cover the full screen isn't a good solution. As this has to happen on every onviewchange call and must be a loop to "pull" all hotspots it get's really slow if there are more than a few hotspots.

So a solution for this big-hotspot behaviour in one of the coming releases would be so much appreciated!

8

Monday, March 27th 2023, 5:17pm

Hi,

this will be fixed in the next release.
I have implemented now a pixel-exact visibility check for the 'flat/2d'-hotspots.

Best regards,
Klaus

9

Monday, March 27th 2023, 9:11pm

Hi,

this will be fixed in the next release.
I have implemented now a pixel-exact visibility check for the 'flat/2d'-hotspots.

Best regards,
Klaus


This is so good news - thank you very much for it! *love*

10

Thursday, March 30th 2023, 11:37am

Hi,

here the new version:
krpano 1.21 (pre-release)

Now a 'pixel-exact' test is used for checking the visibility of 'flat' (non-distorted) hotspots.
It should work for the most cases, but at some extreme zooms the hotspot could be still become invisible due numerical/accuracy problems...

Best regards,
Klaus

11

Thursday, March 30th 2023, 1:28pm

Hi Klaus,

thanks for the update!

It actually works better now. However the lines still disappear sooner than I would have liked for my usecase.

For example a verical line vanishes at:
hlookat: -0.481639
vlookat: - 0.260689
hfov: 0.018952
vfov: 0.014214

Probably the values already get to small here?
At least I can see it disappear pixelperfect now *tongue*

Greetings
Stefan

This post has been edited 1 times, last edit by "s-maier" (Mar 30th 2023, 6:18pm)


12

Thursday, March 30th 2023, 6:12pm

Aaaand I was wrong!

Actually it does work so good, that the lines got to short while zooming in - that was never a problem so far obviously, as they just vanished before *g*

So I made the lines much longer and now everything just works as good as I could imagine.

THANK YOU Klaus!