You are not logged in.

1

Thursday, February 11th 2021, 10:16pm

Need help: north and hotspot

Hey all!
I'm newbie here and have some problems and I need your help:

1. I'm alligning two scenes to make day/night switch.
If I set them view hlookat to same value, they are pointing different angle. So I'm setting North, but it does not change anything!

I need same view angle to make nice day/night change.

What I'm doing wrong?

2. I wish to make hotspot that stays on the screen without moving around. How to achive that? I'm using add_hotspot plugin, so hotspot code goes to seperate file save_hotspot.xml

San7

Professional

Posts: 626

Occupation: coding in krpano

  • Send private message

2

Friday, February 12th 2021, 9:18am

Hi, you need to use to switch layers
Prescribe switching panoramas on the on-click layer. Here is an example

3

Friday, February 12th 2021, 10:38am

Thx for reply!
Yes, I have seen your panorama. Awesome!

Can you past some of the code to see, how layer code should look like?

San7

Professional

Posts: 626

Occupation: coding in krpano

  • Send private message

4

Friday, February 12th 2021, 10:53am

For example, in the "day" scene, specify the "night" inclusion layer"

Source code

1
2
3
<layer name="scene_night" keep="false" url="dusk.png"  align="top"  y="30" 
       onclick="loadscene(scene_night, null, MERGE);"  
 />

In the "night" scene, the opposite is true

5

Friday, February 12th 2021, 6:39pm

Thank you!
I will test it out...

I have still problem with 1st question.
Have a look - I'm setting north to same point at both panos, however the hlookat is way different:





<scene name="scene_livining-day" title="livining-day" onstart="" thumburl="panos/livining-day.tiles/thumb.jpg" lat="" lng="" heading="">

<control bouncinglimits="true" />

<view hlookat="-91.630" vlookat="6.571" fovtype="MFOV" fov="120.000" maxpixelzoom="2.0" fovmin="40.577866" fovmax="140.0" limitview="auto" hlookatmin="-180.0" hlookatmax="180.0" vlookatmin="-90.0" vlookatmax="90.0"/>

<preview url="panos/livining-day.tiles/preview.jpg" />

<image prealign="0|43.9|0">
<cube url="panos/livining-day.tiles/%s/l%l/%v/l%l_%s_%v_%h.jpg" multires="512,640,1152,2304" />
</image>


</scene>

<scene name="scene_living-night" title="living-night" onstart="" thumburl="panos/living-night.tiles/thumb.jpg" lat="" lng="" heading="">

<control bouncinglimits="true" />

<view hlookat="-142.191" vlookat="6.330" fovtype="MFOV" fov="120.0" maxpixelzoom="2.0" fovmin="40.577866" fovmax="140.0" limitview="auto" hlookatmin="-180.0" hlookatmax="180.0" vlookatmin="-90.0" vlookatmax="90.0"/>

<preview url="panos/living-night.tiles/preview.jpg" />

<image prealign="0.224214|43.900686|0.231647">
<cube url="panos/living-night.tiles/%s/l%l/%v/l%l_%s_%v_%h.jpg" multires="512,640,1152,2304" />
</image>

</scene>



What I'm doing wrong here?

This post has been edited 1 times, last edit by "ChrisMechanic" (Feb 19th 2021, 9:36pm)


6

Friday, February 19th 2021, 9:38pm

For example, in the "day" scene, specify the "night" inclusion layer"

Source code

1
2
3
<layer name="scene_night" keep="false" url="dusk.png" align="top" y="30" 
       onclick="loadscene(scene_night, null, MERGE);"  
 />

In the "night" scene, the opposite is true
It works perfect, thank you!

I have a one more need and request for above:

I wish to blend the change of two scenes. At the moment, change is instant and I wish to make it with small slow change from one to another. Kind of transition. Hope I put it clear in my words...

San7

Professional

Posts: 626

Occupation: coding in krpano

  • Send private message

7

Saturday, February 20th 2021, 9:24am

For example so

Source code

1
onclick="loadscene(scene_night, null, MERGE, OPENBLEND(1.5, 0.0, 0.6, 0.3, easeOutQuad));"

8

Saturday, February 20th 2021, 1:29pm

Thank you, but this is not my idea...

Changes from day to night shouldn't move scene like if we go forward. I just want to slowly change from one to another, but static, no movement...



Awesome!
I just changed zoom to 0,0.

Thank you!!