marzipano tool as command line tool?

1,066 views
Skip to first unread message

Tinh Truong

unread,
Mar 2, 2016, 7:23:23 PM3/2/16
to marzipano
Hi,
It would be great if the marzipano tool is available as command line tool. We have a large number of virtual tours to created so it's not feasible for us to use the Marzipano tool as a web application.
Right now we are using krpanotools (a part of the krpano) to automate the virtual tour creation. 
Marzipano looks much better and we want to switch to it.

Tinh

Manuel Cabral

unread,
Mar 2, 2016, 7:40:58 PM3/2/16
to marzipano
Hi,

It might be possible to make the tool's processing code run on the command line using Node.js. However, I am pretty sure it would be relatively slow.

I would recommend to just keep using the krpanotools. They are quite good and it is possible to use tiles generated by the krpanotools with Marzipano. One just needs to make sure that the tiles respect Marzipano's size restrictions (e.g. the level size must be a multiple of the tile size) and correctly setup the ImageUrlSource.

Manuel

Tinh Truong

unread,
Mar 6, 2016, 7:53:17 AM3/6/16
to marzipano
Hi Manuel,

Thanks for your quick reply. I took a look at the output of krpanotools and found out that: MOST of the images generated have size 512x512, but few of them are not which would fail the size restrictions you mentioned before.
krpanotools is a good tool for generating panos but their aging API (the mix of XML and JS) is worrying me. That's why I am quite serious switch to Marzipano.
I will take some time to take a look at the Marzipano Tool code to see if I can convert it to a node.js application.

Cheers,
Tinh

Vào 11:40:58 UTC+11 Thứ Năm, ngày 03 tháng 3 năm 2016, Manuel Cabral đã viết:

Manuel Cabral

unread,
Mar 7, 2016, 12:19:18 PM3/7/16
to Tinh Truong, marzipano
Hi Tinh,

You have to pass some parameters to the krpano tools to make them generate the correct size tiles. See http://krpano.com/tools/kmaketiles/.

All the best,
Manuel

--
You received this message because you are subscribed to the Google Groups "marzipano" group.
To unsubscribe from this group and stop receiving emails from it, send an email to marzipano+...@googlegroups.com.
To post to this group, send email to marz...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/marzipano/60ca2eb7-68ff-4573-b460-983f6f3e847e%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Vishwas B

unread,
Jun 13, 2016, 11:29:30 PM6/13/16
to marzipano
Hi Tinh,

Am also looking at a similar requirement. Unfortunately I don't have much idea on how to build node.js tools.

Were you able to do it? Any tips/best practices you can share would be highly appreciated.

Thanks & Regards,

Vishwas

Jan Greth

unread,
May 24, 2017, 10:21:24 AM5/24/17
to marzipano
Hey Manuel,

could you find out which params to pass? 

Regards,
Jan

Jan Greth

unread,
May 24, 2017, 10:49:56 AM5/24/17
to marzipano
PS: Perhaps Tiago Quelhas can help. In one of his examples at https://github.com/google/marzipano/blob/master/demos/cube-multi-res/index.js#L22 i found:

//Create source.
//The tiles were generated with the krpano tools, which indexes the tiles
//from 1 instead of 0. Hence, we cannot use ImageUrlSource.fromString()
//and must write a custom function to convert tiles into URLs.

Perhaps he still knows which command he used. Would be interested, too. :)

Regards,
Jan

Manuel Cabral

unread,
May 31, 2017, 10:37:00 AM5/31/17
to Jan Greth, marzipano
In krpanotools maketiles, you can use the `-resize` parameter to resize the original image. Marzipano only supports image sizes that are a multiple of the tile size. For instance, if you are using a tile size of 512, each cube face image should be resized to a multiple of it, like 1024, 2048 or 4096.

There are more details about the size restrictions for Marzipano images in the CubeGeometry docs:
  • All tiles in a level must be square and form a rectangular grid;
  • The size of a level must be a multiple of the tile size;
  • The size of a level must be a multiple of the parent level size;
  • The number of tiles in a level must be a multiple of the number of tiles in the parent level.


To unsubscribe from this group and stop receiving emails from it, send an email to marzipano+unsubscribe@googlegroups.com.

To post to this group, send email to marz...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages