Introducing Pannellum - an HTML5 Panorama Viewer

9,597 views
Skip to first unread message

Matthew Petroff

unread,
May 28, 2012, 11:49:20 PM5/28/12
to hugin and other free panoramic software
After a year of on and off development, Pannellum, a free and open
source panorama viewer for the web, is ready for release. Built using
HTML5, CSS3, JavaScript, and WebGL, it is plug-in free. The
lightweight viewer, just 18kB gzipped, can be deployed using a single
file and displays full equirectangular panoramas. One can easily embed
panoramas in web pages as an <iframe>, using code generated by the
included configuration utility.

For more information and an example, see:
http://www.mpetroff.net/archives/2012/05/28/introducing-pannellum/

Or the project page:
https://bitbucket.org/mpetroff/pannellum/

I've tested it across a range of browsers, but I'd appreciate any
feedback or bug reports.


-Matthew

RizThon

unread,
May 29, 2012, 1:24:24 AM5/29/12
to hugi...@googlegroups.com
Nice! Your example works well for me in Firefox 12 on Win7 64 (pan,
zoom, full screen).
The only thing is that at first I was waiting for the panorama to
load, then after some time I thought I might have to click the "Load
Panorama". Maybe you could write "Click to load panorama" instead.

2012/5/29 Matthew Petroff <mat...@mpetroff.net>:
> --
> You received this message because you are subscribed to the Google Groups "Hugin and other free panoramic software" group.
> A list of frequently asked questions is available at: http://wiki.panotools.org/Hugin_FAQ
> To post to this group, send email to hugi...@googlegroups.com
> To unsubscribe from this group, send email to hugin-ptx+...@googlegroups.com
> For more options, visit this group at http://groups.google.com/group/hugin-ptx

Emad ud din Bhatt

unread,
May 29, 2012, 1:34:43 AM5/29/12
to hugi...@googlegroups.com


I have just tested it on my Opera 11.61 under windows

but getting this message.

"
A browser supporting WebGL (and the canvas element) is required to view this panorama.
"







-Matthew

--
You received this message because you are subscribed to the Google Groups "Hugin and other free panoramic software" group.
A list of frequently asked questions is available at: http://wiki.panotools.org/Hugin_FAQ
To post to this group, send email to hugi...@googlegroups.com
To unsubscribe from this group, send email to hugin-ptx+...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/hugin-ptx



--


Emaad
www.flickr.com/emaad

Greg 'groggy' Lehey

unread,
May 29, 2012, 1:40:33 AM5/29/12
to hugi...@googlegroups.com
On Monday, 28 May 2012 at 20:49:20 -0700, Matthew Petroff wrote:
> After a year of on and off development, Pannellum, a free and open
> source panorama viewer for the web, is ready for release. Built using
> HTML5, CSS3, JavaScript, and WebGL, it is plug-in free. The
> lightweight viewer, just 18kB gzipped, can be deployed using a single
> file and displays full equirectangular panoramas. One can easily embed
> panoramas in web pages as an <iframe>, using code generated by the
> included configuration utility.

Great stuff! And that after I've spent a day and a half getting
SaladoPlayer to work :-(

> I've tested it across a range of browsers, but I'd appreciate any
> feedback or bug reports.

It looks good, but it seems relatively slow compared to Salado, and it
caused X to crash both for me and for a friend. This may be related
to the quality of the HTML5 implementation in our firefoxes. I'll
take a more detailed look when I have time.

Greg
--
Sent from my desktop computer
Finger gr...@FreeBSD.org for PGP public key.
See complete headers for address and phone numbers.
This message is digitally signed. If your Microsoft MUA reports
problems, please read http://tinyurl.com/broken-mua

Jan Martin

unread,
May 29, 2012, 1:51:58 AM5/29/12
to hugi...@googlegroups.com
Works with
Firefox 12.0 and
Chromium 18.0.1025.151 (Developer Build 130497 Linux) Ubuntu 10.04

on Ubuntu 10.04, 64 bit.


Harry van der Wolf

unread,
May 29, 2012, 3:11:15 AM5/29/12
to hugi...@googlegroups.com
You example works fine in Safari 5.1.7 and Firefox 12.0 on Mac OS X, also in full screen.
Further tests will follow.

Harry

Ian Tindale

unread,
May 29, 2012, 3:56:08 AM5/29/12
to hugi...@googlegroups.com
I get a message saying “A browser supporting webgl (and the canvas element) is required to view this panorama.” on my iPad. I was hopeful that there would be a way of presenting panoramas on the ipad but this isn’t it, it seems.


--
You received this message because you are subscribed to the Google Groups "Hugin and other free panoramic software" group.
A list of frequently asked questions is available at: http://wiki.panotools.org/Hugin_FAQ
To post to this group, send email to hugi...@googlegroups.com
To unsubscribe from this group, send email to hugin-ptx+...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/hugin-ptx



--
Ian Tindale

Thomas Pryds

unread,
May 29, 2012, 4:47:11 AM5/29/12
to hugi...@googlegroups.com


Den 29/05/2012 05.49 skrev "Matthew Petroff" <mat...@mpetroff.net>:
>
> After a year of on and off development, Pannellum, a free and open
> source panorama viewer for the web, is ready for release. Built using
> HTML5, CSS3, JavaScript, and WebGL, it is plug-in free.

This sounds like a very interesting project. I haven't been able to test it on my computer yet, but on Android I had no luck in getting your example to work, unfortunately.

With the built-in browser (Android 2.2.2 Froyo), the viewer reports missing WebGL support, which is probably true for that browser.

With Firefox 10.0.4 for Android, downloaded from Google Play just now, after I tap the Load Panorams button, it says Loading for a while, and then two thirds of the pano area turns black, and then nothing happens. I googled for Webgl support in Firefox for Android, and it seems some users have to turn it on (set webgl.force-enabled to true in about:config) before it works. However, this didn't change anything for me.

After also enabling webgl.force_osmesa as suggested by e.g. http://goo.gl/x1zEg it didn't work, but now I get the no webgl support message like with the built-in browser.

I'll try testing on my computer later.

Btw, if you plan on translating the viewer into other languages, I'll be able to do a Danish translation, for what it's worth :-)

Thomas

Gnome Nomad

unread,
May 29, 2012, 5:32:24 AM5/29/12
to hugi...@googlegroups.com
FF 10.0.4 on 32-bit Linux: Says I need a "browser supporting WebGL (and
the canvas element)".

On 05/28/2012 07:24 PM, RizThon wrote:
> Nice! Your example works well for me in Firefox 12 on Win7 64 (pan,
> zoom, full screen).
> The only thing is that at first I was waiting for the panorama to
> load, then after some time I thought I might have to click the "Load
> Panorama". Maybe you could write "Click to load panorama" instead.
>
> 2012/5/29 Matthew Petroff<mat...@mpetroff.net>:
>> After a year of on and off development, Pannellum, a free and open
>> source panorama viewer for the web, is ready for release. Built using
>> HTML5, CSS3, JavaScript, and WebGL, it is plug-in free. The
>> lightweight viewer, just 18kB gzipped, can be deployed using a single
>> file and displays full equirectangular panoramas. One can easily embed
>> panoramas in web pages as an<iframe>, using code generated by the
>> included configuration utility.
>>
>> For more information and an example, see:
>> http://www.mpetroff.net/archives/2012/05/28/introducing-pannellum/
>>
>> Or the project page:
>> https://bitbucket.org/mpetroff/pannellum/
>>
>> I've tested it across a range of browsers, but I'd appreciate any
>> feedback or bug reports.


--
Gnome Nomad
gnome...@gmail.com
wandering the landscape of god
http://www.clanjones.org/david/
http://dancing-treefrog.deviantart.com/
http://www.cafepress.com/otherend/

Gnome Nomad

unread,
May 29, 2012, 5:38:16 AM5/29/12
to hugi...@googlegroups.com
Actually, Flash and Java work just fine in FF10. I personally think the
real reason behind the "plug-in free" push is Apple and Microsoft trying
to wound thorns in their side called Adobe and Oracle/Sun. Javascript is
a clumsy replacement. And everybody seems to have passed on supporting
SVG in browsers.

So I guess implementing this one means sites have to provide it PLUS
another panorama viewer, or rudely lock people out.

On 05/28/2012 07:24 PM, RizThon wrote:

Benjamin Schnieders

unread,
May 29, 2012, 5:50:21 AM5/29/12
to hugi...@googlegroups.com
Hi Matthew,

great work! :) Linux, Ubuntu 64 and SeaMonkey (some kind of Firefox)
2.9.1 - no problems.

I wonder, however - how large may the panoramas become, before it gets
laggy (or browsers crash)? For example, I don't know a browser
displaying a half-a-gigapixel image directly, so that'd be at least one
limitation...

Benjamin

Carlos Eduardo G. Carvalho (Cartola)

unread,
May 29, 2012, 7:01:07 AM5/29/12
to hugi...@googlegroups.com
Hi, didn't work here on a firefox 11 on windows XP. Got a black screen after clicking to load the panorama. No error messages.

Some ideas would be implementing cube faces, maybe with multi-resolution and a way to detect HTML5 browsers and redirect to another place in case it doesn't support it. I have done like this in many panoramas with VR 5 pano viewer. It detects iPad and iPhone and jumps to another link in negative cases, where I put a Salado Player.

The VR5 pano viewer uses 2 cubes with 2 different resolutions, one with 1024 pixels size and another with 480.

Tks,

Carlos E G Carvalho (Cartola)
http://cartola.org/360
http://cartola.org/panoforum



2012/5/29 Benjamin Schnieders <benjamin....@gmail.com>

Robert Krawitz

unread,
May 29, 2012, 8:00:04 AM5/29/12
to hugi...@googlegroups.com, hugi...@googlegroups.com
On Mon, 28 May 2012 23:38:16 -1000, Gnome Nomad wrote:
> Actually, Flash and Java work just fine in FF10. I personally think the real reason behind the "plug-in free" push is Apple and Microsoft trying to wound thorns in their side called Adobe and Oracle/Sun. Javascript is a clumsy replacement. And everybody seems to have passed on supporting SVG in browsers.
>
> So I guess implementing this one means sites have to provide it PLUS another panorama viewer, or rudely lock people out.

WebGL has its own problems. For one, it doesn't seem to work for me at
all running Firefox 12 on Linux. It also has the problem of giving
external content direct access to the graphics hardware.

> On 05/28/2012 07:24 PM, RizThon wrote:
>> Nice! Your example works well for me in Firefox 12 on Win7 64 (pan,
>> zoom, full screen).
>> The only thing is that at first I was waiting for the panorama to
>> load, then after some time I thought I might have to click the "Load
>> Panorama". Maybe you could write "Click to load panorama" instead.
>>
>> 2012/5/29 Matthew Petroff<mat...@mpetroff.net>:
>>> After a year of on and off development, Pannellum, a free and open
>>> source panorama viewer for the web, is ready for release. Built using
>>> HTML5, CSS3, JavaScript, and WebGL, it is plug-in free. The
>>> lightweight viewer, just 18kB gzipped, can be deployed using a single
>>> file and displays full equirectangular panoramas. One can easily embed
>>> panoramas in web pages as an<iframe>, using code generated by the
>>> included configuration utility.
>>>
>>> For more information and an example, see:
>>> http://www.mpetroff.net/archives/2012/05/28/introducing-pannellum/
>>>
>>> Or the project page:
>>> https://bitbucket.org/mpetroff/pannellum/
>>>
>>> I've tested it across a range of browsers, but I'd appreciate any
>>> feedback or bug reports.

--
Robert Krawitz <r...@alum.mit.edu>

MIT VI-3 1987 - Congratulations MIT Engineers men's hoops Final Four!
Tall Clubs International -- http://www.tall.org/ or 1-888-IM-TALL-2
Member of the League for Programming Freedom -- http://ProgFree.org
Project lead for Gutenprint -- http://gimp-print.sourceforge.net

"Linux doesn't dictate how I work, I dictate how Linux works."
--Eric Crampton

Axel

unread,
May 29, 2012, 8:11:34 AM5/29/12
to hugin and other free panoramic software
Hi Matthew,

I like your initiative to do something about the state of the
available web panorama viewers. If it weren't for those poor IE users,
it would be dead obvious, that WebGL is the way to go (and I have a
tendency trying to ignore those whenever I can ;)). I did some
experiments regarding WebGL and panorama viewing myself some time ago:

http://lizardq.com/posts/experimental-webgl-panorama-viewer/

Although, my focus was primarily on getting some HDR panorama viewing
feature onto our website.

You seemed to be interested in a low a footprint script. I have about
400 lines of js and another 120 GLSL code (but admittedly using jquery
for convenience). The geometrical approach I used is different: there
is no textured 3D structure approximating a sphere and then looking at
it from the inside. I render a simple viewport sized quad and use a
fragment shader to find the proper pixel position in the source
texture for each pixel in the viewport.

You or anyone who is interested should be able to get a look at the
(uncompressed) code if you know your browser web debugging facilities.
If you think replacing tree.js with some GLSL code might be
interesting, let me know.

- Axel

Marius Loots

unread,
May 29, 2012, 8:35:11 AM5/29/12
to Robert Krawitz

System:
Seamonkey 2.9.1
Win XP SP3
NVidia GeForce 8400 GS driver version 196.21

Works well, no glitches I could see. I had to enable WebGL support in
the browser first, using the following steps:
1. Type about:config in address bar
2. In the search box type webgl.
3. To enable WebGL, set webgl.force-enabled to true.

On the WebGL page (http://get.webgl.org/) is says:
Your browser supports WebGL
However, it indicates that support is experimental; you might see issues with some content.

Did not go further than the panorama though.



Groetnis
Marius
mailto:mlo...@medic.up.ac.za
--
add some chaos to your life and put the world in order
http://www.mapungubwe.co.za/
http://www.chaos.co.za/
skype: marius_loots

Hierdie boodskap en aanhangsels is aan 'n vrywaringsklousule
onderhewig. Volledige besonderhede is by
www.it.up.ac.za/documentation/governance/disclaimer/
beskikbaar.

Geoff G8DHE

unread,
May 29, 2012, 9:05:51 AM5/29/12
to hugi...@googlegroups.com
Hi, didn't work here on a firefox 12 on windows XP. Got a black screen after clicking to load the panorama. No error messages.  Visiting the WebGL site says that it is supported but experimental, but there simple cube rotated.

Jan Martin

unread,
May 29, 2012, 9:10:14 AM5/29/12
to hugi...@googlegroups.com
While we are at it listing interesting players, I like to remember PTViewerNG by Prof. Dr. Dersch:

Working Player:
http://www.diy-streetview.com/webgl/PTViewerNG/index.html
His Website:
http://webuser.hs-furtwangen.de/~dersch/

Does anyone know what Mr. Dersch is up to right now pano-wise?
My communication attempts have all been unsuccessful.

What I really would like to see is adding support for multi-resolution tiles.
I am hoping for a kind of drop-in replacement for the Google player.

Thanks,
Jan

Thomas Pryds

unread,
May 29, 2012, 9:11:33 AM5/29/12
to hugi...@googlegroups.com
I wrote:
> I'll try testing on my computer later.

On Ubuntu 11.10, 64 bit:

Chromium 18.0.1025.151, installed from the Ubuntu repositories: The viewer tells me: "A browser supporting WebGL (and the canvas element) is required to view this panorama". In about:gpu Chromium reports:

> Canvas: Software only, hardware acceleration unavailable
> HTML Rendering: Hardware accelerated
> 3D CSS: Hardware accelerated
> WebGL: Hardware accelerated
> WebGL multisampling: Hardware accelerated

Chrome 19.0.1084.52, downloaded from the Chrome website: Works nicely! Also in full-screen (which seems to be faster than I expected on my aging computer). However, I notice, that if you drag to rotate the panorama, but you then release the mouse button out off the panorama area, the viewer still thinks the mouse button is pressed when moving the mouse over the panorama again. Not a big deal, but I thought I'd let you know.

Firefox 12.0, installed from the Ubuntu repositories: Works nicely! Also in full-screen. Doesn't have the drag-out-off-the-pano-area problem described above.

Thomas

Uwe Koch Kronberg

unread,
May 29, 2012, 11:21:18 AM5/29/12
to hugi...@googlegroups.com
On Ubuntu 12.04; 64 bit:

- FF12.0, works nicely
- Chrome Versión 19.0.1084.52 says:

    Graphics Feature Status

Canvas: Software only, hardware acceleration unavailable
Compositing: Hardware accelerated
3D CSS: Hardware accelerated
CSS Animation: Accelerated

WebGL: Hardware accelerated
WebGL multisampling: Hardware accelerated
Problems Detected
Accelerated 2d canvas is unstable in Linux at the moment.
Version Information
Data exported    Tue May 29 2012 11:10:41 GMT-0400 (CLT)
Chrome version    19.0.1084.52 (Build oficial 138391)
Operating system    Linux 3.2.0-25-generic
Software rendering list version    1.29
ANGLE revision    1022
2D graphics backend    Skia

Anyways, nice work.


El 28/05/12 23:49, Matthew Petroff escribió:
--
Uwe Koch Kronberg
Enrique Koch y Cía. Ltda.
Fono: + 56 32 2543464
Fax: + 56 32 2543465
Cel: + 56 9 87177837
E-mail: uwe....@opticakoch.cl

La información contenida en este mensaje puede ser privada, confidencial y estar protegida contra la divulgación. Si el lector de este mensaje no es el receptor que se intentó contactar o un trabajador o interlocutor responsable de entregar este mensaje al receptor que se intentó contactar, usted está siendo notificado que cualquier propagación, distribución o copia de esta comunicación está estrictamente prohibida. Si ha recibido esta comunicación por error, por favor, notifíquenos de inmediato respondiendo este mensaje y eliminándolo de su computador.

Michal Bulik

unread,
May 29, 2012, 4:48:13 PM5/29/12
to hugi...@googlegroups.com
Hi Matthew,

Very nice. I've tested it on Linux 64 bit (Debian testing, Nvidia
graphics card with drivers 295.49-1) ans the results are the
following :
1. Iceweasel (Firefox) 12.0 : works perfectly (fullscreen too)
2. Google Chrome 19.0.1084.52 : works perfectly (fullscreen
too)
3. Opera 11.64.1403 : I get the message "A browser supporting
WebGL (and the canvas element) is required to view this panorama."

I'll test it it on some heavier panoramas and keep you informed.
Michal

Matthew Petroff

unread,
May 30, 2012, 12:03:45 AM5/30/12
to hugin and other free panoramic software
Thanks for the reports! It should work in recent desktop versions of
Firefox and Chrome with proper driver support. Safari needs WebGL to
be manually enabled, and Opera won't support it until Opera 12. Mobile
support is much more spotty. As for the reports of a black screen, I
think it is due to buggy WebGL implementations; when I first started
working on this last year, I got the occasional black screen, but with
more recent browser updates, this is no longer the case for me.

I can certainly change the text from "Load Panorama" to "Click to Load
Panorama." As for translations, there is no client side way for
detecting language that I know of, so it's a bit of a moot point; if
one wants to host it on a page in a different language, one can just
change the strings in the hosted copy. I might consider changing the
base implementation and adding some sort of image pyramid support in
the future, but I don't plan on adding new feature or developing it
much more until WebGL support matures more.

-Matthew

Gnome Nomad

unread,
May 30, 2012, 4:16:53 AM5/30/12
to hugi...@googlegroups.com
On 05/29/2012 02:00 AM, Robert Krawitz wrote:
> On Mon, 28 May 2012 23:38:16 -1000, Gnome Nomad wrote:
>> Actually, Flash and Java work just fine in FF10. I personally think the real reason behind the "plug-in free" push is Apple and Microsoft trying to wound thorns in their side called Adobe and Oracle/Sun. Javascript is a clumsy replacement. And everybody seems to have passed on supporting SVG in browsers.
>>
>> So I guess implementing this one means sites have to provide it PLUS another panorama viewer, or rudely lock people out.
>
> WebGL has its own problems. For one, it doesn't seem to work for me at
> all running Firefox 12 on Linux. It also has the problem of giving
> external content direct access to the graphics hardware.

I understand WebGL is very dependent on the particular graphics driver
and hardware involved. I doubt very much that the old Intel video
hardware on my good old reliable Toshiba laptop will ever have WebGL
support.

Michal Bulik

unread,
May 30, 2012, 4:44:14 PM5/30/12
to hugi...@googlegroups.com
Hi Matthew,

I've played a little bit with Panellum and I've two questions :
- it seems to me that you suppose that the panoramas are
always 360�x180�. When I load a panorama which is 360�
but narrower that 180� the effect is strange. Is there a method
to indicate that the panorama is narrower ?
- peformance : I've tried to load a 50 Mpix panorama and after
some time I gave up. Have you tested it on panoramas of that
size ?

Thanks, Michal

JohnPW

unread,
Jun 2, 2012, 5:05:30 PM6/2/12
to hugin and other free panoramic software
Nice Job, Matthew. And thanks.
It seems to work fine on my Intel C2D MacBook Pro running Safari on
10.7.4.
No go on my iPod touch though as (surprising to me) Safari on iOS does
not support WebGL (I guess it's still fairly beta on Safari though.)

It would be nice to be able to use the cursor arrows to control the
panning (but I have no idea if that is technically likely. Possibly in
the full screen mode?)

Hopefully I'll be able to figure out how to use it for my own
panoramas. I hope it can to partial panoramas (as that is mostly what
I shoot.)
I look forward to experimenting with it and appreciate your hard work.

Matthew Petroff

unread,
Jun 3, 2012, 9:07:34 PM6/3/12
to hugin and other free panoramic software
Currently, partial panoramas are not supported; images are assumed to
be 360x180 degrees. I have not tested it with large panoramas; the
minimum field of view is currently hard-coded (and somewhat
arbitrary), so even if a large panorama works, you won't be able to
see the full detail. Adding keyboard controls for panning is a good
idea and is something I might add in the future.

-Matthew

On May 28, 11:49 pm, Matthew Petroff <matt...@mpetroff.net> wrote:

Brian Sullivan

unread,
Jun 3, 2012, 9:47:22 PM6/3/12
to hugi...@googlegroups.com
Hmm -- I get this message from Chrome:

Warning: Something's Not Right Here!
www.mpetroff.net contains content from 89.149.226.216, a site known to
distribute malware. Your computer might catch a virus if you visit
this site.

kfj

unread,
Jun 5, 2012, 7:44:53 AM6/5/12
to hugin and other free panoramic software
On 29 Mai, 07:51, Jan Martin <janmar...@diy-streetview.org> wrote:

(panellum)
> Works with Firefox 12.0 ... on Ubuntu 10.04, 64 bit.

Here on my Kubuntu 11.4 32 bit with Firefox 12 it dowsn't work (no
webGL). Probably my ageing laptop... or is there a way to somehow get
webGL?

Kay

David Haberthür

unread,
Jun 13, 2012, 4:50:49 PM6/13/12
to hugi...@googlegroups.com
Ciao Matthew

On 29.05.2012, at 05:49, Matthew Petroff wrote:

> After a year of on and off development, Pannellum, a free and open
> source panorama viewer for the web, is ready for release. Built using
> HTML5, CSS3, JavaScript, and WebGL, it is plug-in free. The
> lightweight viewer, just 18kB gzipped, can be deployed using a single
> file and displays full equirectangular panoramas. One can easily embed
> panoramas in web pages as an <iframe>, using code generated by the
> included configuration utility.
>
> For more information and an example, see:
> http://www.mpetroff.net/archives/2012/05/28/introducing-pannellum/
>
> Or the project page:
> https://bitbucket.org/mpetroff/pannellum/

I've downloaded a version of pannellum_0.1 from somewhere in March, but never came around to test it. Your mail here finally persuaded me to test it. After some hiccups (involving the IDN domain davidhaberthür.ch) i managed to correctly embed a panorama in a recent blog post: http://wp.me/p4u1r-J8

Awesome work, thanks!

Habi

Gnome Nomad

unread,
Jul 14, 2012, 4:37:29 PM7/14/12
to hugi...@googlegroups.com
I believe that WebGL's ability to use GPU acceleration is dependent on
the video driver and OS platform involved. IIRC, WebGL on Linux only
uses GPU acceleration with a few proprietary (binary) drivers. WebGL's
use of GPUs is much more available on Windows.

Of course, if you're running Windows on your laptop, none of that helps.

On 07/13/2012 03:17 PM, Nate wrote:
> Hey Alex,
>
> Thanks for making your code available. I had a look at it and I am
> impressed. I imagine it is very efficient because, as you said, it maps
> the correct texture pixel data to the viewport. I assume this means the
> texture pixel data that is not in the viewport is not being
> unnecessarily rendered. I can't as yet fully understand the GLSL code
> (reading up on it is on my to-do list) so I can't be too sure of what
> I'm looking at. So it has left me wondering why the frame rate is quite
> jumpy on my laptop when compared to the flash panorama implementation.
> Can webGL not take advantage of GPU acceleration?
>
> Thanks again,
> -Nate

Nate

unread,
Jul 15, 2012, 11:47:31 AM7/15/12
to hugi...@googlegroups.com
Yep I'm running on Windows. I wonder what the problem could be? Its a shame because I think its great that panoramas (all graphical web apps for that matter) can be developed without needing to rely on bulky proprietary software.

Gnome Nomad

unread,
Jul 15, 2012, 10:55:06 PM7/15/12
to hugi...@googlegroups.com
It might be a problem with your video driver maybe not allowing WebGL to
use GPU acceleration. I'd think the vendor's docs about the driver would
say. I supposed it's also possible you need to update the driver - in
case they enabled GPU acceleration support in a newer version.

Of course, if I recall correctly, Microsoft considers any kind of GL
graphics "alien ware" and would much rather have applications use
DirectX instead. At least it did in the many years back that I used Windows!

Thomas Pryds

unread,
Jul 16, 2012, 1:52:14 AM7/16/12
to hugi...@googlegroups.com
Hi Matthew

I finally had a chance to try out pannellum from my own site, and I
find it to work very well, and it's very easy to set up. I was
slightly confused when I read the "How to use" at
https://bitbucket.org/mpetroff/pannellum/ , though, since it tells me
to upload the pannellum.htm file to a webserver, and then the next
step tells me to use configuration.htm, i.e. another file. I quickly
found out that I had to load this file into a browser while still
locally on my computer, so this is no big deal (or, in fact it
probably wouldn't matter if this file, too, was uploaded, right?).

I did find something that looks like a bug, though:
When I use configuration.htm to set up the panorama, and I use an
absolute path for the pannellum.htm file (I would need this for
showing a pano from a website on a blog or similar), the path is html
encoded, i.e.
http://example.com/pannellum.htm
becomes
http%3A//example.com/pannellum.htm

This results in a 404 on my setup (Ubuntu with Chrome and Firefox):
"The requested URL /http://example.com/pannellum.htm was not found on
this server."

However, if I change "%3A" into ":" in the generated <iframe> code,
everything works fine.

Thomas

Thomas Pryds

unread,
Jul 16, 2012, 9:33:11 AM7/16/12
to hugin-ptx

Hi Roger

Den 16/07/2012 11.44 skrev "Rogier Wolff" <R.E....@bitwizard.nl>:
> There is an extra "/" in front of the "http" here. isn't there
> an extra / in there somewhere?

Yes, I noticed that, too. The extra slash isn't there in the generated code, though.

The thing that made me think it was something else is the fact that it works fine if I use a real colon instead in the code. My guess is that the %3A part makes either pannellum, the webserver, or the browser think that the path is relative instead of absolute and hence add the extra / to the error message.

Thomas

Matthew Petroff

unread,
Oct 8, 2012, 11:23:50 AM10/8/12
to hugi...@googlegroups.com
The most likely cause is the texture size being to large for your graphics card / driver. Does an error get printed to Chome's JavaScript Console?

-Matthew

On Sunday, October 7, 2012 11:20:43 PM UTC-4, Rasmus Schultz wrote:
All I see is a black screen - using Chrome 22.0.1229.79 m.

I've had no other problems with WebGL-based applications on this machine...

Emad ud din Bhatt

unread,
Oct 9, 2012, 2:55:49 AM10/9/12
to hugi...@googlegroups.com
Is there any way we can add animated objects in panorama using Pannellum?


--
You received this message because you are subscribed to the Google Groups "Hugin and other free panoramic software" group.
A list of frequently asked questions is available at: http://wiki.panotools.org/Hugin_FAQ
To post to this group, send email to hugi...@googlegroups.com
To unsubscribe from this group, send email to hugin-ptx+...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/hugin-ptx



--


Emaad
www.flickr.com/emaad

Matthew Petroff

unread,
Oct 9, 2012, 3:02:37 PM10/9/12
to hugi...@googlegroups.com
No, there isn't.

-Matthew

Emad ud din Bhatt

unread,
Oct 12, 2012, 12:35:20 AM10/12/12
to hugi...@googlegroups.com
Mathew is it possible that Pannellum can support Gif file format? Basically I want to animate only one of image cubes. For example I edit Nadir image cube, convert it to gif format and make some animated effects over it. Now If Pannelum support gif format than animated object will be working.

You are doing very nice work. Pannelum is a very good platform. Please! Consider standards set by Spi-V shockwave player. ADR is a Spiv feature, which has not be replicated in any flash or html5 based viewers. Please! See if it can be done. Spi-V also supported animated objects.

Matthew Petroff

unread,
Oct 12, 2012, 11:18:24 AM10/12/12
to hugi...@googlegroups.com
Pannellum might support GIF files, although I've never tested it. I would not recommend using it though, as it is uncompressed and limited to an 8-bit color space. Just because a proprietary piece of software does something some way does not make it a standard, although adaptive dynamic range looks quite interesting. I might add it in the future, but the image pyramid support I'm currently working on is a higher priority in my opinion. Animated objects are a very low priority for me (I think they're gaudy).

-Matthew

Gnome Nomad

unread,
Oct 13, 2012, 1:50:13 AM10/13/12
to hugi...@googlegroups.com
Small correction to the below: GIF files ARE compressed, using the
lossless LZW compression method:

http://en.wikipedia.org/wiki/Graphics_Interchange_Format

It is limited to 8-bit color space, though.

Unlike the PNG format, it supports animation.
> <http://groups.google.com/group/hugin-ptx>
>
>
>
>
> --
>
>
> *Emaad*
> www.flickr.com/emaad <http://www.flickr.com/emaad>
>
> --
> You received this message because you are subscribed to the
> Google Groups "Hugin and other free panoramic software" group.
> A list of frequently asked questions is available at:
> http://wiki.panotools.org/Hugin_FAQ
> <http://wiki.panotools.org/Hugin_FAQ>
> To post to this group, send email to hugi...@googlegroups.com
> To unsubscribe from this group, send email to
> hugin-ptx+...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/hugin-ptx
> <http://groups.google.com/group/hugin-ptx>

Naked Robot

unread,
Nov 9, 2012, 2:52:17 PM11/9/12
to hugi...@googlegroups.com

I also get a black screen on my 2008 white macbook.

By the way, can you use the Krpano xml specification for this player? It is good, and you would get more uptake probably because it would allow more people to easily use your player with their existing data.
Reply all
Reply to author
Forward
0 new messages