You are not logged in.

1

Thursday, August 24th 2017, 4:58pm

Priority fov in scene and in startup action

I try to make the scene open at 90 ° in the nadir and at a great distance. After loading and rotating, the scene should be limited to fov=120. But the scene gets priority. Can I make it so that after the full download the scene was limited to fov=120, but from the very beginning it was vov=170?
Here is an example code.

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<!-- startup action - load the first scene -->
	<action name="startup" autorun="onstart">
		if(startscene === null OR !scene[get(startscene)], copy(startscene,scene[scene_monteville_120_sky].name); );
		loadscene(get(startscene), null, MERGE);
		if(startactions !== null, startactions() );
		lookat(-129.32, 90.0, 170); wait(2); oninterrupt(break); lookto(-3.96, 0, 135, smooth(80,100,300));

	</action>
....................
<scene name="scene_monteville_120_sky" title="monteville_120_sky" onstart="" havevrimage="true" thumburl="panos/monteville_120_sky.tiles/thumb.jpg" lat="55.79496833" lng="36.97134167" heading="0.0" 
	 >

		<view hlookat="0" vlookat="0" fovtype="MFOV" fov="100" maxpixelzoom="0.95" fovmin="70"  limitview="auto" fisheye="0" distortion="0"  />

		<preview url="panos/monteville_120_sky.tiles/preview.jpg" />

		<image type="CUBE" multires="true" tilesize="512" if="!webvr.isenabled">
			<level tiledimagewidth="6400" tiledimageheight="6400">
				<cube url="panos/monteville_120_sky.tiles/%s/l4/%v/l4_%s_%v_%h.jpg" />
			</level>
			<level tiledimagewidth="3200" tiledimageheight="3200">
				<cube url="panos/monteville_120_sky.tiles/%s/l3/%v/l3_%s_%v_%h.jpg" />
			</level>
			<level tiledimagewidth="1536" tiledimageheight="1536">
				<cube url="panos/monteville_120_sky.tiles/%s/l2/%v/l2_%s_%v_%h.jpg" />
			</level>
			<level tiledimagewidth="768" tiledimageheight="768">
				<cube url="panos/monteville_120_sky.tiles/%s/l1/%v/l1_%s_%v_%h.jpg" />
			</level>
		</image>

		<image if="webvr.isenabled">
			<cube url="panos/monteville_120_sky.tiles/vr/pano_%s.jpg" />
		</image>

		<!-- place your scene hotspots here -->

	</scene>

2

Thursday, May 24th 2018, 7:15pm

You have tried with?:

Source code

1
set(view.fovmax,"70");set(view.fovmin,"70")


You can make it happen by creating an if or with time as you want.
Comment if you have questions.