You are not logged in.

21

Tuesday, November 8th 2022, 4:57pm

How can I change scene direction with external link?

Hello.
At the beginning of my project

Source code

1
2
3
4
5
6
7
8
9
10
<action name="startup" autorun="onstart">  
  tween(view.fisheye, 1.0);
  if(startscene === null OR !scene[get(startscene)], copy(startscene,scene[0].name); );
  loadscene(get(startscene), null,  MERGE,BLEND(0));
  if(startactions !== null, startactions() );
		
  skin_hideskin('instant');
  delayedcall(5.0, normalview(););
   .......
</action>

I get the planet view in the first scene to the normal view with the following code

Source code

1
2
3
4
5
6
7
8
<action name="normalview">
   tween(view.hlookat, 80, 2.5, easeInOutQuad);
   tween(view.vlookat, 25, 2.5, easeInOutQuad);
   tween(view.fov,     360,  2.5, easeInOutQuad);
   tween(view.fovmax,     140,  2.5, easeInOutQuad);
   tween(view.fisheye, 0.0, 2.5, easeInOutQuad);
   <!--stereographic="false"--> 
</action>

first intro scene

Source code

1
 <view hlookat="150.00" vlookat="80.00" fovtype="MFOV" fov="160.00" maxpixelzoom="1.0" fovmin="360" fovmax="160" limitview="auto" />

next scenes

Source code

1
<view hlookat="0.0" vlookat="41.133" fovtype="MFOV" fov="140.000" maxpixelzoom="1.0" fovmin="70" fovmax="140" limitview="auto" />


I have a problem when I call different scenes externally

Source code

1
index.html?startscene=scene6&startactions=lookat(198.47,7.36,140,0,0);

or

Source code

1
index.html?startscene=scene6&start_fov=70&start_vlookat=20


As a result, the direction of the scene takes the value (80,25,140,0,0) in the normalview at the first input:

Source code

1
index.html?startscene=scene6&startactions=lookat(80,25,140,0,0);


In short, how can I adjust the directions of the scenes?
Thank you for your help.
Muhammed