How to create a virtual tour with hugin?

1,353 views
Skip to first unread message

Gabriele Caldari

unread,
Apr 7, 2015, 7:39:48 AM4/7/15
to hugi...@googlegroups.com
Hello friends...I have some problems to create a 360 enfused panorama with the last version of hugin. I just checked a video tutorial on Hugin web site but i'm not able to create one. I think that the problem is on the crop tab but i don't know how set it. I have a peleng 8 mm with a nikon full frame and i just take 4 pictures to obtain a 360 panorama
Could help me with right hugin settings?
Thank you in advance
Gabriele

Carlos Eduardo G. Carvalho (Cartola)

unread,
Apr 8, 2015, 8:47:39 PM4/8/15
to hugi...@googlegroups.com
Well, this is a quite broad question... you could check the many tutorials at hugin site.

Until where did you go?

Any error messages?

Any bad output example? Any project file to be analyzed?

And, in case of errors, report also your operational system and exactly version of Hugin used.

Bests,

--
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/ffcf7a03-b055-4755-9bfa-1adf3c0f5dfd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Terry Duell

unread,
Apr 8, 2015, 10:50:05 PM4/8/15
to hugi...@googlegroups.com
Hello Gabriele,

> 2015-04-07 7:38 GMT-03:00 Gabriele Caldari <alcas...@alice.it>:
>
>> Hello friends...I have some problems to create a 360 enfused panorama
>> with
>> the last version of hugin. I just checked a video tutorial on Hugin web
>> site but i'm not able to create one. I think that the problem is on the
>> crop tab but i don't know how set it. I have a peleng 8 mm with a nikon
>> full frame and i just take 4 pictures to obtain a 360 panorama
>> Could help me with right hugin settings?

I assume you mean the tutorial at
<http://hugin.sourceforge.net/tutorials/enfuse-360/en.shtml>.
I can see where there might be some confusion.
The description of how to set the crop in the version of hugin used for
the tutorial isn't readily translated to the new gui...well not on first
glance.
I don't have access to a set of overlapping circular fisheye images to see
how one might do this with the current version of hugin. In the tutorial a
crop circle is set prior to generating control points to eliminate lens
flare. Perhaps you can bypass this, or use masks instead.
As Carlos has said, please tell us what progress you have made and what
results or errors you are seeing.

Cheers,
--
Regards,
Terry Duell

Terry Duell

unread,
Apr 9, 2015, 2:16:34 AM4/9/15
to hugi...@googlegroups.com
On Thu, 09 Apr 2015 12:50:00 +1000, Terry Duell <tdu...@iinet.net.au>
wrote:


>
> I assume you mean the tutorial at
> <http://hugin.sourceforge.net/tutorials/enfuse-360/en.shtml>.
> I can see where there might be some confusion.
> The description of how to set the crop in the version of hugin used for
> the tutorial isn't readily translated to the new gui...well not on first
> glance.

OK, I think I've finally figured this out...not had to do this before.
To set a crop as per the tutorial, load your images as circular fisheye,
open the Masks tab and select all the images,
Select the 'Crop' tab , select or deselect "Always center Crop on d,e" and
place your mouse on the edge of the image and with right mouse drag to set
the crop boundary. With "Always center Crop on d,e" deselected you can
also drag the centre of the crop circle.
See how that works for you.
The rest of the process should be pretty much as per the tutorial (with
appropriate changes to account for the new gui) and you should be able to
use CPFind to auto generate control points rather than have to do it
manually.

Gabriele Caldari

unread,
Apr 9, 2015, 9:25:38 AM4/9/15
to hugi...@googlegroups.com

I just tried to follow yor suggestions.I have this situation. I think that i must crop not like a rectangle but like a circle...and i don't understand how fix it.

David Benes

unread,
Apr 9, 2015, 9:34:29 AM4/9/15
to hugi...@googlegroups.com
Hi Gabriele,
I you need to set your lens type to circular fisheye (on Photos tab) to be able to do a circular crop.

Regards
David

--
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.

Gabriele Caldari

unread,
Apr 9, 2015, 9:57:52 AM4/9/15
to hugi...@googlegroups.com

Inserisci qui il codice...
Maybe i understand but i doesn't work...I tried to put add mask and after with mouse select an area with  option including area and obtain the results on image but when i go to create control points I obtain this results...really strange

Carl von Einem

unread,
Apr 9, 2015, 10:31:22 AM4/9/15
to hugi...@googlegroups.com
Ciao Gabriele,

you were actually masking your images, not cropping them. In the tab
"Maschere" you see two areas on the left: the list of your images and a
combined area where you can switch between "Maschere" and "Ritaglio".

In "Maschere" you can define individual areas in each image that you
want to have included (or excluded) from the panorama (e.g. make sure
the legs of your tripod don't make it into the final panorama).

In "Ritaglio" you can define a crop mask that is specific to your
camera/lens combination so only those parts of the frame are used that
actually include image information. That's where you define a circular
mask for your fisheye.

Carl

ps.
To the developers following this thread:
I think this combined tab should be renamed to "Masks/Crop" and both sub
tabs should be renamed to something like
Masks -> Masks (image details)
Crop -> Crop (frame)


Gabriele Caldari wrote on 09.04.15 15:57:
> <https://lh3.googleusercontent.com/-OLraj8quuX0/VSaEOY57zeI/AAAAAAAAAxk/4NOBM8L9Gx8/s1600/Senza%2Btitolo%2B2.jpg><https://lh3.googleusercontent.com/-xo44H47KjJw/VSaFHmkLv7I/AAAAAAAAAxw/1DHLy_Ju4fg/s1600/Senza%2Btitolo%2B3.jpg>

Gabriele Caldari

unread,
Apr 9, 2015, 10:56:38 AM4/9/15
to hugi...@googlegroups.com, ei...@gmx.de

I just found the problem...no with Mask but with crop...Now the problem is how to create an equirectangular panorama. This is the assembly video but im not able to activate "Enfuse" so i obtain 4 single images

Terry Duell

unread,
Apr 9, 2015, 9:23:47 PM4/9/15
to hugi...@googlegroups.com
Hello Gabriele,

On Fri, 10 Apr 2015 00:56:37 +1000, Gabriele Caldari <alcas...@alice.it>
wrote:

>
>
> <https://lh3.googleusercontent.com/-T2ZOzF_2CRM/VSaTA3_cpuI/AAAAAAAAAyA/G9bkg4pfSNU/s1600/Senza%2Btitolo%2B4.jpg>
> I just found the problem...no with Mask but with crop...

Good, glad you now know how to do that.

> Now the problem is how to create an equirectangular panorama. This is
> the assembly video

This confuses me. What do you mean by "assembly video"?

> but im not able to activate "Enfuse" so i obtain 4 single images

If you want single images you need to choose "Remapped images".
You can get a stitched equirectangular panorama by setting the Projection,
and choosing "exposure fused from stacks", but I'm not really sure if
that's what you want.
We might be able to be more helpful if you are able to explain more
clearly, exactly what you are trying to achieve.

Terry Duell

unread,
Apr 10, 2015, 1:59:49 AM4/10/15
to hugi...@googlegroups.com
> I just found the problem...no with Mask but with crop...Now the problem
> is how to create an equirectangular panorama. This is the assembly video
> but
> im not able to activate "Enfuse" so i obtain 4 single images
>

Thinking a bit more about this, I'm now guessing that you want to make an
enfused equirectangular panorama, and then convert that into a video for a
virtual tour. I will assume that's the aim.
So, if you have aligned your images, and are satisfied with the view in
the Fast Panorama preview window, with projection set to
"equirectangular", you can select "Exposure fused from stacks" for the
Panorama Output in the Stitcher tab.
To make a virtual tour video you then need to convert the equirectangular
panorama output, which is a jpeg or tiff image, into a quicktime video.
Hugin doesn't do this conversion, you need other software for this.
You could use "erect2qtvr" which is part of the Perl Panotools Script,
which are open source tools available at
<http://search.cpan.org/dist/Panotools-Script/>. These are command line
tools. There may also be other tools available to do the panorama to video
conversion but I don't know what they are, you will have to do a search.

Does this help you solve your problem?

Gabriele Caldari

unread,
Apr 11, 2015, 7:54:09 AM4/11/15
to hugi...@googlegroups.com

Thank you very much for your help Terry but something is wrong and I don't understand where. I just created a video with my steps. Can i send you it on your email?

Terry Duell

unread,
Apr 11, 2015, 7:28:17 PM4/11/15
to hugi...@googlegroups.com
Hello Gabriele,

On Sat, 11 Apr 2015 21:54:09 +1000, Gabriele Caldari <alcas...@alice.it>
wrote:

>
> Thank you very much for your help Terry but something is wrong and I
> don't understand where. I just created a video with my steps. Can i send
> you it
> on your email?

Seeing the video may not help find where things have gone wrong without
additional information, so could you explain what it is that you think is
wrong, and describe your steps?
I assume that the 360 degree equirectangular stitch is OK, otherwise why
proceed to convert to video?
Did you use erect2qtvr to generate a .mov file from your equirectangular
panorama?
I have just been through the process here with some sample fisheye images
off the web, to see what problems there may be in creating a video, using
erect2qtvr.
The .mov file is created, but when played using Totem movie player it
appears to be grossly out of focus. The subject is recognisable, but only
just. Firefox complains that the file is corrupt. Is your problem similar?
The problem I'm seeing here is something I haven't seen before, and I've
only just started to look into it, and not sure what success I'll have.
In the meantime, let's hear a bit more about what you have done and what
you're seeing, and maybe others who know a bit more about this will chip
in with some help that will solve it.

Terry Duell

unread,
Apr 11, 2015, 10:43:33 PM4/11/15
to hugi...@googlegroups.com
Hello Gabriele,

On Sun, 12 Apr 2015 09:28:11 +1000, Terry Duell <tdu...@iinet.net.au>
wrote:


> The problem I'm seeing here is something I haven't seen before, and I've
> only just started to look into it, and not sure what success I'll have.

I have had some success using other tools in the Panotools:: Script.

The process is as follows...
1. generate an equirectangular pano using hugin, let's call it
"equipano.tif"
2. run erect2cubic to generate a .pto file to allow extraction of the cube
faces, as follows...
erect2cubic --erect=equipano.tif --filespec=jpg --ptofile=cubic.pto
3. run nona to extract the cube faces, as follows...
nona -o cubic_ -m JPEG_m cubic.pto

Note we are using the previously generated cubic.pto and using a prefix
"cubic_" for the 6 files that will be generated.
4. run jpeg2qtvr to generate the .mov file. Note that the cube facefiles
will be named in the manner "cubic_0000.jpg", "cubic_0001.jpg" etc, but
the version of jpeg2qtvr that I have here expects filenames in the form
"cubic_0.jpg", "cubic_1.jpg" etc, so you need to edit/rename your cube
face files to suit, then run jpeg2qtvr as follows...

jpeg2qtvr --prefix=cubic_ --outfile=tour.mov

which will generate the quicktime file tour.mov

The resulting video is OK here but the players I have here run throught it
very quickly, as expected.
I think a it would be better to be able to view the equirectangular pano
in a viewer that allows you to manually move/pan through the image, but I
don't know whether such viewers exist.

It isn't necessarily a complete solution to your original question, and
there may (probably are!) be better ways of achieving what you want. Let's
how you get on.

Bruno Postle

unread,
Apr 12, 2015, 3:32:21 AM4/12/15
to hugi...@googlegroups.com


On 12 April 2015 00:28:11 BST, Terry Duell wrote:
>
>I assume that the 360 degree equirectangular stitch is OK, otherwise
>why proceed to convert to video?
>Did you use erect2qtvr to generate a .mov file from your
>equirectangular panorama?

erect2qtvr creates QTVR files, which were once the only way to deliver interactive panoramas over the internet, but you needed Apple's Quicktime player to view them (Pablo also wrote a nice Linux viewer called Freepv). But Apple dropped all these 'multimedia' bits from Quicktime, so QTVR is pretty much useless at this point.

You can load a panorama into a 3d animation tool, such as Blender, turn and zoom the camera, and generate a normal video, but you need Hugin to stitch a proper panorama first.

Usually 'virtual tour' refers to a series of immersive panoramas linked together. There are lots of solutions for doing this, but Hugin only creates the individual panoramas, it doesn't link them together.

--
Bruno

Carlos Eduardo G. Carvalho (Cartola)

unread,
Apr 12, 2015, 8:31:12 AM4/12/15
to hugi...@googlegroups.com
The free softwares I know that can be used to publish an equirrectangular panorama or a tour made with many of them are the Salado Player, which usually I use toguether with #VR5 to make it compatible with iThing devices, and PanoVisu, a GUI tool to publish using HTML5. This last one is much easyer to work with, but I haven't publish with it yet. I don't know how compatible with different devices and browsers it is.

http://panovisu.fr/

Hope it helps. I can help with Salado also, but it is more difficult to work with it.

Cheers,
--
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.
Reply all
Reply to author
Forward
0 new messages