Sie sind nicht angemeldet.

VVZen

Anfänger

  • »VVZen« ist der Autor dieses Themas

Beiträge: 26

Beruf: Freelance 2d-3d Artist

  • Nachricht senden

1

Montag, 21. September 2015, 10:18

Create original multires from tile

Hi,

I'm trying to get the original multires image back from a series of tiles created with Panotour.
My script is something like this:

Quellcode

1
./krpanotools maketiles /myPath/%h_%v.jpg recombined.tif 0 -insize=10540x10540 -intilesize=512x512 -inindexbase=1


My tiles go from 0_0.jpg all the way up to 20_20.jpg .
The first things that the terminal says is:

Quellcode

1
unable to open inputimage /myPath/21_1.jpg

But it processes the image, which in the end has some errors (see pic).


The problem is that the not all of the tiles are quads, so I've got also 512x300 or 300x512.

Is there any way to get the multires back?
What am I missing?

Thanks.

Namastè.
VVZen - 3d generalist getting into the VR world

yaskebasi.it

VVZen

Anfänger

  • »VVZen« ist der Autor dieses Themas

Beiträge: 26

Beruf: Freelance 2d-3d Artist

  • Nachricht senden

2

Montag, 21. September 2015, 11:02

Ok, one of my errors was that I was reversing the order of the %h and %v.
I checked the xml and saw what was wrong.

Quellcode

1
2
3
4
5
6
7
8
<level tiledimagewidth="10540" tiledimageheight="10540">
          <front url=“my_name/0/4/%v_%u.jpg"/>
          <right url=“my_name/1/4/%v_%u.jpg"/>
          <back  url=“my_name/2/4/%v_%u.jpg"/>
          <left  url=“my_name/3/4/%v_%u.jpg"/>
          <up    url=“my_name/4/4/%v_%u.jpg"/>
          <down  url=“my_name/5/4/%v_%u.jpg"/>
      </level>


Now, my face comes out quite well, but as you can see there's a glitch in the last row and column
(obviously the center is simply censored by me).
Here's a screenshot:



What could be wrong here?

Namastè.
VVZen - 3d generalist getting into the VR world

yaskebasi.it

VVZen

Anfänger

  • »VVZen« ist der Autor dieses Themas

Beiträge: 26

Beruf: Freelance 2d-3d Artist

  • Nachricht senden

3

Montag, 21. September 2015, 11:07

Ok, figured it out.

I hope that this thread can be useful for somebody else. :)
Don't forget to look also at the baseindex command flag.

From my xml:

Quellcode

1
<image type="CUBE" multires="true" baseindex="0" tilesize="512" devices="!androidstock|webgl">


So the script becomes:

Quellcode

1
./krpanotools maketiles /myPath/%v_%h.jpg recombined.tif 0 -insize=10540x10540 -intilesize=512x512 -inindexbase=0



Namasté.

*thumbup*
VVZen - 3d generalist getting into the VR world

yaskebasi.it