You are not logged in.

1

Friday, October 29th 2021, 11:53am

maketiles like I am 5yo

Hi Guys.

I have old project generated in panotour pro, but I lost all the input panoramic images.

My folder structure looks like this:

where virtualtour0 is pano 0
folders 0,1,2,3,4,5 are the faces of the cube.
inside each face there is 0,1 and 2 folders that contains the tiles with different levels - 0 - one tiles 1 - 4 tiles folder 2 - 16 tiles.

I would like to merge the 16 tiles into one image and then create a panorama. Can someone please explain it to me, like I am 5 year old?
I am aware that I might need to rename the 0 to _f 1 to _r etc

Edit, at the last folder tiles are named like this 0_0.jpg 0_1.jpg 0_2.jpg 0_3.jpg its first row, second row is 1_0.jpg 1_1.jpg etc

Thanks
Marcin

This post has been edited 1 times, last edit by "Coldmami" (Oct 29th 2021, 12:23pm)


2

Saturday, October 30th 2021, 2:04pm

Hi,

as first step you would also need the xml files related to these images.

And in the xml itself the <image> element is the important one - there the total-size, the tile-size and the filepath/url-template for the tile-images is defined.

That means to continue please post the <image> element code from the xml that relates to these images.

Best regards,
Klaus

3

Monday, November 1st 2021, 8:14am

It looks like this.

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
  <image type="CUBE" multires="true" tilesize="872" baseindex="0">
        <level tiledimagewidth="3487" tiledimageheight="3487">
            <left url="virtualtourdata/virtualtour0/3/2/%v_%u.jpg"/>
            <front url="virtualtourdata/virtualtour0/0/2/%v_%u.jpg"/>
            <right url="virtualtourdata/virtualtour0/1/2/%v_%u.jpg"/>
            <back url="virtualtourdata/virtualtour0/2/2/%v_%u.jpg"/>
            <up url="virtualtourdata/virtualtour0/4/2/%v_%u.jpg"/>
            <down url="virtualtourdata/virtualtour0/5/2/%v_%u.jpg"/>
        </level>
        <level tiledimagewidth="1743" tiledimageheight="1743">
            <left url="virtualtourdata/virtualtour0/3/1/%v_%u.jpg"/>
            <front url="virtualtourdata/virtualtour0/0/1/%v_%u.jpg"/>
            <right url="virtualtourdata/virtualtour0/1/1/%v_%u.jpg"/>
            <back url="virtualtourdata/virtualtour0/2/1/%v_%u.jpg"/>
            <up url="virtualtourdata/virtualtour0/4/1/%v_%u.jpg"/>
            <down url="virtualtourdata/virtualtour0/5/1/%v_%u.jpg"/>
        </level>
        <level tiledimagewidth="871" tiledimageheight="871">
            <left url="virtualtourdata/virtualtour0/3/0/%v_%u.jpg"/>
            <front url="virtualtourdata/virtualtour0/0/0/%v_%u.jpg"/>
            <right url="virtualtourdata/virtualtour0/1/0/%v_%u.jpg"/>
            <back url="virtualtourdata/virtualtour0/2/0/%v_%u.jpg"/>
            <up url="virtualtourdata/virtualtour0/4/0/%v_%u.jpg"/>
            <down url="virtualtourdata/virtualtour0/5/0/%v_%u.jpg"/>
        </level>
    </image>


I did manage to execute one line of code to create one cube using this

Source code

1
krpanotools64 kmaketiles F:\Lost\virtualtour1\_d\2\%%v_%%h.jpg _d.jpg 0 -insize=3487x3487 -intilesize=872 -inindexbase=


but this mean that I need to paste this command 6 times for each panorama, and change the _d to other faces of the cube. Thats about 3500 lines that i need to paste to restore this project...

4

Tuesday, November 2nd 2021, 9:48am

Problem solved.

Since my panoramas were made as max size in ptgui, each one had different size.
-insize=4436x4436 -intilesize=555 is different for each pano. Excel came in handy to read all xml files and list the values.

in notepad++ I could create list of commands and paste hundreds of lines to cmd.exe to merge tiles.