You are not logged in.

publicitarios360

Intermediate

  • "publicitarios360" started this thread

Posts: 330

Location: Habana, Cuba

Occupation: Architect, Photographer.

  • Send private message

1

Wednesday, April 5th 2017, 4:53pm

[SOLVED] Making multiple scenes from the only one panorama

I used "MAKE VTOUR MULTIRES DROPLET" to create a panorama from the top of the building in the city.
In order to make links to city zones (similar to gigapan.com) I created scenes manually with thumnails for the bottom menu incluided in the tour from the droplet.

The problem was to retype the same code for define it the same panorama, changing only the hlookat / vlookat / fov for set the ubication of zone inside the panorama.

The solution is:

1) Action with the repeat elements for all scenes:

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
<action name="comun_escena">

set(view.fovtype,MFOV);
set(view.maxpixelzoom,1.0);
set(view.fovmin,70);
set(view.fovmax,140);
set(view.limitview,auto);

set(preview.url,panos/vista.tiles/preview.jpg);

set(image.type,SPHERE);
set(image.hfov,238.74);
set(image.vfov,30.170792);
set(image.voffset,13.85);
set(image.multires,true);
set(image.tilesize,512);
set(image.progressive,true);

set(image.level[2].tiledimagewidth,26112);
set(image.level[2].tiledimageheight,3300);
set(image.level[2].sphere.url,panos/vista.tiles/l3/%v/l3_%v_%h.jpg);

set(image.level[1].tiledimagewidth,13056);
set(image.level[1].tiledimageheight,1650);
set(image.level[1].sphere.url,panos/vista.tiles/l2/%v/l2_%v_%h.jpg);

set(image.level[0].tiledimagewidth,6400);
set(image.level[0].tiledimageheight,810);
set(image.level[0].sphere.url,panos/vista.tiles/l1/%v/l1_%v_%h.jpg);

</action>


2) Now, define the changes in each scene (avoid to repeat the same code):

Source code

1
2
3
4
5
6
7
<scene name="scene_1" title="Wide View" onstart="comun_escena();" thumburl="panos/vista.tiles/thumb1.jpg">
<view hlookat="0" vlookat="0" fov="120"/>
</scene>
	
<scene name="scene_2" title="Any Site Detail" onstart="comun_escena();" thumburl="panos/vista.tiles/thumb2.jpg">
<view hlookat="-78.04" vlookat="20.70" fov="22.89"/>
</scene>


Now the thumbnails links to details as gigapan.com

It is not a great solution, but work fine. The ideal is a plugin...

Greet!

This post has been edited 2 times, last edit by "publicitarios360" (Apr 6th 2017, 7:15am)