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.

1

Monday, June 24th 2019, 10:27am

Auto transition between panoramas with dissolve

Hi All,

We capture and present update images of large construction sites with 360's displayed within the KR Pano viewer. Our client has asked for the content to be somewhat of a Timelapse so instead of creating a video and having all the associated intense data requirements of that is there a way I can make a scene that transitions between a set list of 360's that will be aligned to one another and have them dissolved between each other at a set interval? That way I can have my usual set of scenes but add a button that links to the 'Timelapse Scene' if the viewer decides to check that out (probably won't be very relevant until there are quite a few images to use)

Any and all help is appreciated :)

Cheers

Sam

Scott Witte

Intermediate

Posts: 253

Location: Milwaukee, WI USA

Occupation: Professional Photographer

  • Send private message

2

Wednesday, July 10th 2019, 8:45pm

I do this with idletime and/or an explicit timer. If done with idletime then any interaction with the pano, such as moving with the mouse, will start the timer over as soon as you let go of the mouse. You can get fancy, for instance on mousedown the timer gets paused and on mouse up just restart it, but if less than 5 seconds remain set the remaining time to 5 seconds.

3

Saturday, August 3rd 2019, 4:38pm

Hi Scott,

Thanks for the reply!

Thats great info - I think the explicit timer would be the go in this instance as it needs to just keep rolling no matter what the user does.

What function do you use to make the panoramas switch and also maintain heading ? All panos will be shot from same place and aligned when stitched, but on loading each new image in this scenario player would need to inherit current hlookat and vlookat from current position of viewer to keep the timelapse vibe smooth and easy to follow.

Any hints or points in the right direction warmly appreciated.

Cheers!

Scott Witte

Intermediate

Posts: 253

Location: Milwaukee, WI USA

Occupation: Professional Photographer

  • Send private message

4

Monday, August 5th 2019, 6:13am

If all your scenes are part of the sequence and you just want to run them continuously, one solution could be something like this (using the standard KRPano template):

Source code

1
2
3
4
5
6
7
8
9
10
11
	<action name="startup" autorun="onstart">
		loadscene(get(startscene,scene[0].name)), null, MERGE);
		delayedcall(change, 5, change_scene(1));
	</action>

	<action name="change_scene">
		loadscene(get(scene[%1].name), null, MERGE|KEEPVIEW|KEEPMOVING|NOPREVIEW, BLEND(1));
		add(new_scene, %1, 1);
		if(new_scene GE scene.count, set(new_scene, 0));
		delayedcall(change, 5, change_scene(get(new_scene)));
	</action>

To see this in action: Timed Pano Change

This post has been edited 2 times, last edit by "Scott Witte" (Aug 6th 2019, 12:19am) with the following reason: Moved the first delayedcall into the Startup action, which works with the actual default template.


5

Thursday, September 5th 2019, 12:18pm

Hey Scott,

I hadn't checked back in a while sorry!

That actually looks perfect and what I want to do really is as simple as that....as I keep adding new scenes the loop just gets longer etc.


Ill give that a whirl and see how it ends up in this use case. Thanks so much once again, deeply appreciate the guidance here!

Sam