Recommended panorama viewer? Hints for using pannellum?

3,755 views
Skip to first unread message

Michael Below

unread,
Nov 16, 2013, 1:55:03 PM11/16/13
to hugi...@googlegroups.com
Hi,

I just created my first panorama using hugin (2013-0-0, on Debian testing). It's a 298 by 22 degree partial panorama, a view from a mountaintop, about 48 MPix (22 MB jpeg/320 MB TIFF).

Now I would like to show this to my friends. What is your recommendation for a web based panorama viewer?

Opensource panorama viewers for partial panoramas seem to be rare: For some flash viewers listed here: http://wiki.panotools.org/Panorama_Viewers I found broken websites that had not been updated in years. The pannellum HTML5 viewer looks good, but I couldn't get it to work:

I have tried the current master branch from github, with the partial option, and I have tried the stable branch from github as well. In both
cases, pannellum says it is working for a short time (the waiting symbol is shown), but then just black is displayed instead of my image.

Also, it doesn't make a difference if I use cylindrical or equirectangular projection.

Any hints?

If it helps, I'd be glad to send you a link to my image, I just don't want to put the link into a public web archive.

Cheers

Michael

Michael Below

unread,
Nov 16, 2013, 3:57:51 PM11/16/13
to hugi...@googlegroups.com

Am Samstag, den 16.11.2013, 10:55 -0800 schrieb Michael Below:

> I have tried the current master branch from github, with the partial option,
> and I have tried the stable branch from github as well. In both
> cases, pannellum says it is working for a short time (the waiting symbol is
> shown), but then just black is displayed instead of my image.
> Also, it doesn't make a difference if I use cylindrical or equirectangular
> projection.

I got a quick reply from the pannellum author: Pannellum loads the image
as one WebGL texture. Textures have a maximum size of 4096 or 8192
pixels, my image exceeded this, so it couldn't work. With a downscaled
version, I get to see an image -- but it seems to be shown as 360*180
degrees, not my 298*22 degrees. Now I just have to find out how to get
the scaling right.



Matthew Petroff

unread,
Nov 17, 2013, 1:03:39 PM11/17/13
to hugi...@googlegroups.com
I'm posting a copy of what I sent off list in case it helps anyone else:

> Since Pannellum currently loads the image as one texture, the WebGL texture
> size limits limit the maximum image resolution. I recommend a maximum image
> dimension of 4096 pixels on the largest side, as it is supported by >90% of
> WebGL enabled browsers. If you need higher resolution, a maximum image
> dimension of 8192 pixels is supported by >60% of WebGL enabled browsers. A
> maximum image dimension of 16384 pixels is supported by ~14% of WebGL enabled
> browsers, and anything larger, e.g. your image dimension of 29542 pixels,
> isn't supported by any browsers.
>
> I'm currently working on adding support for larger images using a
> multiresolution, image pyramid based scheme, but it's currently in an alpha
> state. Once done, it will allow for arbitrarily large images, but for now one
> is in practice limited to a maximum image dimension of 4096 pixels, a
> resolution of about 8 megapixels for a full equirectangular panorama.

-Matthew

Carlos Eduardo G. Carvalho (Cartola)

unread,
Nov 18, 2013, 6:51:33 AM11/18/13
to hugi...@googlegroups.com
Hi Michael,

among free solutions I used to use Salado Player (flash) and VR5 (HTML5), but the easiest way to share, IMHO, is to create a free account at 360cities.net and upload your equirectangular. TourWrist is another option. Take a look at this article, where I mention this and other tips:

http://www.cartola.org/cartola/index.php?title=Immersive_360x180%C2%B0_panoramic_photography_in_BSD

Cheers,




2013/11/16 Michael Below <be...@judiz.de>

--
A list of frequently asked questions is available at: http://wiki.panotools.org/Hugin_FAQ
---
You received this message because you are subscribed to the Google Groups "hugin and other free panoramic software" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hugin-ptx+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/hugin-ptx/857889c3-4fbe-4126-855a-f62e3561ad42%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Michael Below

unread,
Nov 18, 2013, 2:28:48 PM11/18/13
to hugi...@googlegroups.com

Hi Carlos,

Am Montag, den 18.11.2013, 09:51 -0200 schrieb Carlos Eduardo G.
Carvalho (Cartola):

> among free solutions I used to use Salado Player (flash) and VR5 (HTML5),
> but the easiest way to share, IMHO, is to create a free account at
> 360cities.net and upload your equirectangular. TourWrist is another option.
> Take a look at this article, where I mention this and other tips:

Thanks. Your article got me to try & build panini. This didn't work out:
The SVN repository mentioned in the wiki is no longer there, the
alternate link offered in the sf.net error message doesn't seem to work
either. When I downloaded the ZIP from sf.net, qmake complained that I
am not using subversion 1.5 (instead I use a current version), and when
I ran make, it stopped with this error:

/usr/bin/ld: build/pvQt_QTVR.o: undefined reference to symbol 'inflate'
/lib/x86_64-linux-gnu/libz.so.1: error adding symbols: DSO missing from
command line
collect2: error: ld returned 1 exit status

Then I tried building panoglview instead. I got as far as running
the ./bootstrap, which complained I had no automake -- in fact, it ist
checking for automake 1.7 to 1.11, and I have 1.14 installed.

Is there a panorama viewer that can be built on a current Linux system?

Cheers

Michael


Thomas Pryds

unread,
Nov 18, 2013, 2:53:42 PM11/18/13
to hugin-ptx


Den 18/11/2013 20.29 skrev "Michael Below" <be...@judiz.de>:
> Is there a panorama viewer that can be built on a current Linux system?

I would say panini is, although I didn't try to build it myself. Panini is available (as a binary deb package) for and is running great on Ubuntu through the Hugin PPA, so I'd guess something similar is for Debian.

If not, maybe you can use the Ubuntu deb on Debian? At least, I was able to install panini that was built for Ubuntu 12.10 "Quantal" (i.e. two Ubuntu releases old) on my system running Ubuntu 13.10 "Saucy" without any problems, simply by downloading the deb file and running dpkg -i on it, having taken care of iys dependencies. Debian and Ubuntu being quite similar, perhaps you can, too? Anyone having any experience with that?

Hugin PPA:
https://launchpad.net/~hugin/+archive/hugin-builds

Thomas P.

Kornel Benko

unread,
Nov 18, 2013, 2:54:58 PM11/18/13
to hugi...@googlegroups.com
Am Montag, 18. November 2013 um 20:28:48, schrieb Michael Below <be...@judiz.de>
>
> Hi Carlos,
>
> Am Montag, den 18.11.2013, 09:51 -0200 schrieb Carlos Eduardo G.
> Carvalho (Cartola):
>
> > among free solutions I used to use Salado Player (flash) and VR5 (HTML5),
> > but the easiest way to share, IMHO, is to create a free account at
> > 360cities.net and upload your equirectangular. TourWrist is another option.
> > Take a look at this article, where I mention this and other tips:
>
> Thanks. Your article got me to try & build panini. This didn't work out:
> The SVN repository mentioned in the wiki is no longer there, the
> alternate link offered in the sf.net error message doesn't seem to work
> either. When I downloaded the ZIP from sf.net, qmake complained that I
> am not using subversion 1.5 (instead I use a current version), and when
> I ran make, it stopped with this error:
>
> /usr/bin/ld: build/pvQt_QTVR.o: undefined reference to symbol 'inflate'
> /lib/x86_64-linux-gnu/libz.so.1: error adding symbols: DSO missing from
> command line
> collect2: error: ld returned 1 exit status

I had no problems on ubuntu (12.04).

This are the last showed commands:

g++ -c -m64 -pipe -O2 -Wall -W -D_REENTRANT -DQT_WEBKIT -DQT_NO_DEBUG -DQT_OPENGL_LIB \
-DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++-64 -I. \
-I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtOpenGL \
-I/usr/include/qt4 -I/usr/X11R6/include -Ibuild -Ibuild -o build/About.o src/About.cpp

g++ -m64 -Wl,-O1 -o Panini build/main.o build/pvQtPic.o build/pvQtView.o build/MainWindow.o \
build/GLwindow.o build/pvQt_QTVR.o build/picTypeDialog.o build/pictureTypes.o build/panosurface.o \
build/panosphere.o build/panocylinder.o build/TurnDialog.o build/About.o build/moc_pvQtPic.o \
build/moc_CubeLimit_dialog.o build/moc_pvQtView.o build/moc_MainWindow.o build/moc_GLwindow.o \
build/moc_picTypeDialog.o build/moc_About.o build/moc_pvQtMouseModes.o build/moc_TurnDialog.o \
build/qrc_PaniniIcon.o -lGLU -L/usr/lib/x86_64-linux-gnu -L/usr/X11R6/lib64 -lQtOpenGL \
-lQtGui -lQtCore -lGL -lpthread

The created 'Panini' works here.

> Then I tried building panoglview instead. I got as far as running
> the ./bootstrap, which complained I had no automake -- in fact, it ist
> checking for automake 1.7 to 1.11, and I have 1.14 installed.

You could patch bootstrap to accept 1.14
I didn't try, I have only version 1.11.3.

> Is there a panorama viewer that can be built on a current Linux system?
>
> Cheers
>
> Michael
>
Kornel
signature.asc

Michael Below

unread,
Nov 18, 2013, 3:36:52 PM11/18/13
to hugi...@googlegroups.com
Hi,

Am Montag, den 18.11.2013, 20:54 +0100 schrieb Kornel Benko:

> I had no problems on ubuntu (12.04).

Probably my QT version is too new, or something like that. I am running
Debian testing, with QT 4.8.5, while Ubuntu 12.04 seems to include QT
4.7.4.

In full, the error message looks like this:

/usr/lib/x86_64-linux-gnu/qt4/bin/rcc -name PaniniIcon ui/PaniniIcon.qrc
-o release/qrc_PaniniIcon.cpp
g++ -c -m64 -pipe -O2 -Wall -W -D_REENTRANT -DQT_WEBKIT -DQT_NO_DEBUG
-DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED
-I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtCore
-I/usr/include/qt4/QtGui -I/usr/include/qt4/QtOpenGL -I/usr/include/qt4
-I/usr/X11R6/include -Ibuild -Ibuild -o build/qrc_PaniniIcon.o
release/qrc_PaniniIcon.cpp
g++ -m64 -Wl,-O1 -o Panini build/main.o build/pvQtPic.o build/pvQtView.o
build/MainWindow.o build/GLwindow.o build/pvQt_QTVR.o
build/picTypeDialog.o build/pictureTypes.o build/panosurface.o
build/panosphere.o build/panocylinder.o build/TurnDialog.o build/About.o
build/moc_pvQtPic.o build/moc_CubeLimit_dialog.o build/moc_pvQtView.o
build/moc_MainWindow.o build/moc_GLwindow.o build/moc_picTypeDialog.o
build/moc_About.o build/moc_pvQtMouseModes.o build/moc_TurnDialog.o
build/qrc_PaniniIcon.o -L/usr/lib/x86_64-linux-gnu -L/usr/X11R6/lib64
-lQtOpenGL -lQtGui -lQtCore -lGL -lpthread
/usr/bin/ld: build/pvQt_QTVR.o: undefined reference to symbol 'inflate'
/lib/x86_64-linux-gnu/libz.so.1: error adding symbols: DSO missing from
command line
collect2: error: ld returned 1 exit status
make[1]: *** [Panini] Fehler 1
make[1]: Leaving directory `/home/mbelow/src/pvqt/Panini-0.71.104-src'
make: *** [release] Fehler 2



Kornel Benko

unread,
Nov 18, 2013, 3:47:47 PM11/18/13
to hugi...@googlegroups.com
Am Montag, 18. November 2013 um 21:36:52, schrieb Michael Below <be...@judiz.de>
The best candidate looks lite it were some broken lib (namely /lib/x86_64-linux-gnu/libz.so.1)

Here, the symbol inflate _is_ defined in libz.
Don't know better, sorry.

Kornel
signature.asc

Lukas Jirkovsky

unread,
Nov 19, 2013, 3:53:25 AM11/19/13
to hugi...@googlegroups.com
On Mon, Nov 18, 2013 at 8:28 PM, Michael Below <be...@judiz.de> wrote:
> Thanks. Your article got me to try & build panini. This didn't work out:
> The SVN repository mentioned in the wiki is no longer there, the
> alternate link offered in the sf.net error message doesn't seem to work
> either. When I downloaded the ZIP from sf.net, qmake complained that I
> am not using subversion 1.5 (instead I use a current version), and when
> I ran make, it stopped with this error:
>
> /usr/bin/ld: build/pvQt_QTVR.o: undefined reference to symbol 'inflate'
> /lib/x86_64-linux-gnu/libz.so.1: error adding symbols: DSO missing from
> command line
> collect2: error: ld returned 1 exit status

Hi,
Panini is missing some of the libraries on the linker command line. To
fix it, open the panini.pro file and add

LIBS += -lGLU -lz

Preferably somewhere in the beginning, because I don't know if it
would work otherwise.

Lukas

Carlos Eduardo G. Carvalho (Cartola)

unread,
Nov 19, 2013, 6:45:00 AM11/19/13
to hugi...@googlegroups.com
Oh, yes, I guess that what Lukas said might solve, as I've written here in my wiki:

http://www.cartola.org/cartola/index.php?title=Installing_Panini

The Portuguese version is a little more up to date, including a package installation how to. Maybe you can translate it with google:

http://www.cartola.org/cartola/index.php?title=Instalando_o_Panini

Cheers,

2013/11/19 Lukas Jirkovsky <l.jir...@gmail.com>
--
A list of frequently asked questions is available at: http://wiki.panotools.org/Hugin_FAQ
---
You received this message because you are subscribed to the Google Groups "hugin and other free panoramic software" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hugin-ptx+...@googlegroups.com.

Carlos Eduardo G. Carvalho (Cartola)

unread,
Nov 19, 2013, 6:46:22 AM11/19/13
to hugi...@googlegroups.com
Oh, I've put it in panotools wiki also:

http://wiki.panotools.org/Build_Panini_on_Other_Unixes

Cheers,
2013/11/19 Carlos Eduardo G. Carvalho (Cartola) <cart...@gmail.com>

Michael Below

unread,
Nov 23, 2013, 7:44:03 AM11/23/13
to hugi...@googlegroups.com

Am Dienstag, den 19.11.2013, 09:53 +0100 schrieb Lukas Jirkovsky:

> Panini is missing some of the libraries on the linker command line. To
> fix it, open the panini.pro file and add
>
> LIBS += -lGLU -lz
>
> Preferably somewhere in the beginning, because I don't know if it
> would work otherwise.

Thanks, that helps.

Cheers

Michael



Reply all
Reply to author
Forward
0 new messages