krpano custom asteroid opener

The asteroids from the original factory are really hard to watch, it’s so monotonous

Custom Asteroid Opener

Original method skin_setup_littleplanetintro

<action name="skin_setup_littleplanetintro" scope="local">
		set(global.lpinfo, scene=get(xml.scene), hlookat=get(view.hlookat), vlookat=get(view.vlookat), fov=get(view.fov), fovmax=get(view.fovmax), limitview=get(view.limitview) ); 
		set(view, fovmax=170, limitview=lookto, vlookatmin=90, vlookatmax=90);
		lookat(calc(lp_hlookat - 180), 90, 150, 1, 0, 0);
		set(events[lp_events].onloadcomplete,
			delayedcall(0.5,
				if(lpinfo.scene === xml.scene,
					set(control.usercontrol, off);
					set(view, limitview=get(lpinfo.limitview), vlookatmin=null, view.vlookatmax=null);
					tween(view.hlookat|view.vlookat|view.fov|view.distortion, calc('' + lpinfo.hlookat + '|' + lpinfo.vlookat + '|' + lpinfo.fov + '|' + 0.0),
						3.0, easeOutQuad,
						set(control.usercontrol, all);
						tween(view.fovmax, get(lpinfo.fovmax));
						skin_deeplinking_update_url();
						delete(global.lpinfo);
					);
				  ,
					delete(global.lpinfo);
				);
			);
		); 
	</action>

If it is difficult to write another one, I will write it here again

customized

<action name="skin_setup_littleplanetintro" scope="local">
		set(view.vlookat, -90);
		set(view.fov, 140);
		set(view.fisheye, 1);
		tween(view.vlookat, 90.0, 3.0, easeInOutQuad);
		tween(view.hlookat, 360.0, 3.0, easeInOutQuad); 
		delayedcall(3.0,{
			tween(view.architectural, 0, 2.0);
    		tween(view.pannini,       0, 2.0);
    		tween(view.distortion,    0, 2.0);
			tween(view.vlookat, 0, 2.0);
		});
	</action>

The style of tween refers to this and this

Guess you like

Origin blog.csdn.net/bgp_halt_here/article/details/106543789