You are not logged in.

herrpedro

Intermediate

  • "herrpedro" started this thread

Posts: 210

Location: Lisbon

Occupation: Programmer/analyst

  • Send private message

1

Wednesday, December 16th 2020, 3:55pm

day - to night smooth

Hi all

I remember a while ago seeing a "panorama tile change" while you were rotating and gently fading from 1 pano to another

Does anyone knows where it is (and the xml to do it)?

thank you for the help

2

Wednesday, December 16th 2020, 10:12pm

Hi there,
Interesting, I figured that out out a few days ago :)
Here you are:

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
...
<scene name="scene01_DAY" title="01_DAY" onstart="" thumburl="panos/01_DAY.tiles/thumb.jpg" lat="" lng="" heading="">    	<control bouncinglimits="calc:image.cube ? true : false" />
    	<view hlookat="0.0" vlookat="0.0" fovtype="MFOV" fov="120" maxpixelzoom="2.0" fovmin="70" fovmax="140" limitview="auto" />
    	<preview url="panos/01_DAY.tiles/preview.jpg" />
    	<image>
    		<cube url="panos/01_DAY.tiles/%s/l%l/%v/l%l_%s_%v_%h.jpg" multires="512,640,1280,2560" />
    	</image>
    	<plugin onclick="loadscene(scene01_NIGHT, null, MERGE|KEEPVIEW, BLEND(1));" onhover="showtext(Day/Night);" name="daynight" url="%SWFPATH%/skin/switch2night.svg" align="topright" x="20" y="20" altonloaded="if(isphone, mul(x,2); mul(y,2); mul(scale,2));" />		
    </scene>
    <scene name="scene01_NIGHT" title="01_NIGHT" onstart="" thumburl="panos/01_NIGHT.tiles/thumb.jpg" lat="" lng="" heading="">
    	<control bouncinglimits="calc:image.cube ? true : false" />
    	<view hlookat="0.0" vlookat="0.0" fovtype="MFOV" fov="120" maxpixelzoom="2.0" fovmin="70" fovmax="140" limitview="auto" />
    	<preview url="panos/01_NIGHT.tiles/preview.jpg" />
    	<image>
    		<cube url="panos/01_NIGHT.tiles/%s/l%l/%v/l%l_%s_%v_%h.jpg" multires="512,640,1280,2560" />
    	</image>
    	<plugin onclick="loadscene(scene01_DAY, null, MERGE|KEEPVIEW, BLEND(1));" onhover="showtext(Day/Night);" name="daynight" url="%SWFPATH%/skin/switch2day.svg" align="topright" x="20" y="20" altonloaded="if(isphone, mul(x,2); mul(y,2); mul(scale,2));" />
    </scene>
...

The interesting stuff for you is the plugin-part in the scene -i have a slightly different setup for the day and the night switch here -
mainly to use different icons which i have placed absolutely in the top right corner.

As soon as the project is finished, i will post a link here.

Best regards and hope it helps,
mtness

herrpedro

Intermediate

  • "herrpedro" started this thread

Posts: 210

Location: Lisbon

Occupation: Programmer/analyst

  • Send private message

3

Wednesday, December 16th 2020, 11:21pm

Thank you!
I already do that in my site but would like to make it better.


https://www.panoramapalace.com/p/viewpan…34&projection=0

All the best

4

Thursday, December 17th 2020, 9:03am

You're welcome!
As I see it - I gues I was inspired for this technique by on of your panos :D
So, what do you mean by "making it better" ?
Maybe your transition will feel "better" if you just use

Source code

1
onclick="loadscene(scene01_NIGHT, null, MERGE|KEEPVIEW, BLEND(1));"

for the transitions?
Best regards,
MT

Mische

Intermediate

Posts: 157

Location: dortmund

  • Send private message

5

Thursday, December 17th 2020, 9:42am

Hi all

I remember a while ago seeing a "panorama tile change" while you were rotating and gently fading from 1 pano to another

Does anyone knows where it is (and the xml to do it)?

thank you for the help


Do you mean this one?
https://krpano.com/examples/blendcubes720/

herrpedro

Intermediate

  • "herrpedro" started this thread

Posts: 210

Location: Lisbon

Occupation: Programmer/analyst

  • Send private message

6

Thursday, December 17th 2020, 11:05am

You're welcome!
As I see it - I gues I was inspired for this technique by on of your panos :D
So, what do you mean by "making it better" ?
Maybe your transition will feel "better" if you just use

Source code

1
onclick="loadscene(scene01_NIGHT, null, MERGE|KEEPVIEW, BLEND(1));"

for the transitions?
Best regards,
MT


Good morning,
i think i try that on my site, yes

but what i was after was the example that was posted by the other forum member.
Thank you so much.

herrpedro

Intermediate

  • "herrpedro" started this thread

Posts: 210

Location: Lisbon

Occupation: Programmer/analyst

  • Send private message

7

Thursday, December 17th 2020, 11:10am

Hi all

I remember a while ago seeing a "panorama tile change" while you were rotating and gently fading from 1 pano to another

Does anyone knows where it is (and the xml to do it)?

thank you for the help


Do you mean this one?
https://krpano.com/examples/blendcubes720/


Lol, it was there :)

Thank you!

8

Thursday, December 17th 2020, 11:50am

Awesome!
I remember that example now, too.

It was late yesterday, I didn't figured out your question correctly.
Looking forward for your next work!
Best regards and have a nice christmas,
MT