On Tue 18-Nov-2014 at 18:44 -0800, Nicolas Pelletier wrote:
>
> My tests were inconclusive.
>
> To be sure I express what I'm trying to do, I have a spherical
> panorama, 6 around, and one up (zenith). They stich flawless. I
> tool a shot of the nadir from my tripod, but with about a 45
> degree angle (exactly as they would do here:
>
http://www.ptgui.com/examples/vptutorial.html )
>
> I "removed" the fisheye and made it into a recilinear before
> adding (and set the lens info accordingly).
This shouldn't be necessary, Hugin can map a fisheye image to a
plane.
> And I was trying to achieve the same effect as the viewpoint
> correction you see in the link to stich the nadir.
>
> I tried with the tpy parameter at both 90 and -90. I saw no effect
> on the opengl viewer. But I don't know if I should. I tried to
> optimize those values (tpy and tpp) but nothing moved there. Only
> when I let the optimizer also work on TrX, TrY and TrZ did this
> value change (it went from 90 to 68). But the match was not better
> (it was actuall worse then when I tried using the lens parameter d
> and e to compensate).
Again this is untested, but this is what I would do:
Align your equirectangular panorama using just your 'normal' photos,
leaving a hole for the nadir shot.
None of these photos want to move any further, so you need to set
'custom parameters' and in the Optimiser tab turn off all
optimisation for _all_ your existing pictures.
Add your nadir photo to the project, and create some control points
linking it to the existing photos.
Set 'plane pitch' for this photo to -90 (I said 'plane yaw' before,
oops!), nothing will appear to change, since this is just
positioning the virtual plane that the photo will be mapped-to.
For just this photo, optimise roll, pitch, yaw, X, Y, Z - You don't
need to optimise lens parameters as this photo has been taken with
the same lens as all your other photos (and you didn't convert it to
rectilinear).
If this doesn't align the nadir shot, it could be because there are
too many parameters being optimised, try and drag it to the
approximate position and optimise again. Also you may have better
luck setting 'plane pitch' to 90 instead of -90, though I'm not sure
it makes any difference.
If the floor isn't perfectly level, you can try optimising
'plane yaw' and 'plane pitch' to see if this gets better results,
but only do this if it almost good enough already.
> On Tuesday, November 18, 2014 12:36:34 PM UTC-5, Bruno Postle wrote:
> > On Mon 17-Nov-2014 at 17:14 -0800, Nicolas Pelletier wrote:
> > > So when adding this Nadir with a different viewpoint, you
> > > would optimize for Yaw Pitch and Roll, and also Tpy and Tpp
> > > and this should do the trick. Correct? Or am I missing
> > > something?
> >
> > I wouldn't optimise them, at least at first, you might have to
> > do this eventually if the floor isn't level enough.
> >
> > Try setting 'plane yaw' to '-90' for all your nadir photos and
> > see if this lets you assemble the nadir as a mosaic (untested,
> > you may have to use '90' instead of '-90', let us know).
> > > > The Hugin mosaic mode fits images to a flat plane, usually
> > > > in the middle of the output panorama. So if your mosaic is
> > > > a floor rather than a wall, you need to arrange your output
> > > > panorama so the nadir is in the centre of the canvas - This
> > > > is probably not what you want a spherical panorama to look
> > > > like.
> > > >
> > > > Hugin 2014.0 has Tpy and Tpp parameters to tilt this plane
> > > > and put it anywhere you like - This is what you need.
--
Bruno