Sie sind nicht angemeldet.

1

Mittwoch, 21. Juli 2021, 08:33

Problem with switching to normal view in fish view

Hello there.
I'm creating a planet entry using the code below. There is no problem at the entrance, but the positions of the scene move when I go to other scenes. For example, the stage turns 30-40 degrees to the right.
What could be the reason for this?

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<scene name="scene_Tokat4-150" title="Tokat4-150" onstart="" thumburl="panos/Tokat4-150.tiles/thumb.jpg" lat="40.31402986" lng="36.55126319" heading="0.0">	
<control bouncinglimits="calc:image.cube ? true : false" /> 

 <view stereographic="true" hlookat="120" vlookat="220" fovtype="MFOV" fov="360" maxpixelzoom="1.0" fovmin="70" fovmax="160" limitview="auto"  fisheye="1"  />

 <events onloadcomplete="delayedcall(2.0, normalview());" />

 <action name="normalview">	
	 tween(view.hlookat, 215, 2.5, easeInOutQuad);	
	 tween(view.vlookat, 32, 2.5, easeInOutQuad);	
	 tween(view.fov,     140,  2.5, easeInOutQuad);	
	 tween(view.fisheye, 0.0, 2.5, easeInOutQuad,hotspot());	
	 tween(view.normal, 10, 10, easeInOutQuad);	
	 !--wait(2.7);;	
 </action>	

<preview url="panos/Tokat4-150.tiles/preview.jpg" />
<image>			<cube url="panos/Tokat4-150.tiles/pano_%s.jpg" />		</image>		<hotspot name="spot1" style="skin_hotspotstyle" ath="-153.026" atv="19.923" 		onloaded="wobble(atv,20.0,20.5,0.5);" 		url="skin/helicopter.png" linkedscene="scene_tokat3" />		<hotspot name="spot2" style="skin_hotspotstyle" ath="163.393" atv="13.620" 		onloaded="wobble(atv,13.5,14.0,0.5);"		url="skin/helicopter.png" linkedscene="scene_tokat6" />		<hotspot name="spot3" style="skin_hotspotstyle" ath="-155.504" atv="4.554" 		onloaded="wobble(atv,-2.5,-2.9,0.5);"		url="skin/helicopter.png" linkedscene="scene_tokat1" />		<hotspot name="spot4" style="skin_hotspotstyle" ath="-133.644" atv="1.908" 		onloaded="wobble(atv,2.0,2.5,0.5);"		url="skin/helicopter.png" linkedscene="scene_tokat7" />
	</scene>

Beiträge: 1 117

Wohnort: Poland, Europe

Beruf: krpano developer : virtual tours : the cms4vr owner

  • Nachricht senden

2

Mittwoch, 21. Juli 2021, 10:35

As a quick aside, try this:

Quellcode

1
<events name="moveview_ev" onloadcomplete="delayedcall(2.0, normalview();set(events[moveview_ev].onloadcomplete,null));" />


Piotr
Your own professional, online cloud tool for creating virtual tours - www.cms4vr.com

facebook page :: youtube :: wiki.cms4vr.com

cms4vr team *thumbsup*

3

Mittwoch, 21. Juli 2021, 22:50

As a quick aside, try this:

Quellcode

1

				


Piotr
Teşekkür ederim, paylaşımınız işe yaradı :)

Ähnliche Themen