← Back to team overview

hugin-devs team mailing list archive

[Bug 1031914] Re: No SkyBox projection

 

OK - Thanks, that workaround works for me.  It generates this sky.pto
file to process my erect.tif file:

p E0 R0 f0 h3968 n"TIFF_m" u0 v90 w3968
i a0 b0 c0 d0 e0 f4 h6233 n"erect.tif" p0 r0 v360 w12466 y0
i a0 b0 c0 d0 e0 f4 h6233 n"erect.tif" p0 r0 v360 w12466 y-90
i a0 b0 c0 d0 e0 f4 h6233 n"erect.tif" p0 r0 v360 w12466 y180
i a0 b0 c0 d0 e0 f4 h6233 n"erect.tif" p0 r0 v360 w12466 y90
i a0 b0 c0 d0 e0 f4 h6233 n"erect.tif" p-90 r0 v360 w12466 y0
i a0 b0 c0 d0 e0 f4 h6233 n"erect.tif" p90 r0 v360 w12466 y0

then it calls nona -o side sky.pto

to produce files side0.tif, side1.dif, side2.tif, side3.tif, side4.tif, side5.tif
h6233 is the original height
w12466 is the original width
h3968 is the original height times 2/pi
w3968 is the original width times 1/pi
(The original image was twice as wide as high - seems to be the default for rectilinear output)

There's a few other lines that don't seem to affect anything when left
out. Is that difficult t o add as a script to Hugin?  It looks like nona
(comes with Hugin) does all the hard work for you.  It would be a nice
convenience if it would do the two step process of creating a
rectilinear projection as intermediate format and then process this pto
to create these images.

Thanks.

-- 
You received this bug notification because you are a member of Hugin
Developers, which is subscribed to Hugin.
https://bugs.launchpad.net/bugs/1031914

Title:
  No SkyBox projection

Status in Hugin - Panorama Tools GUI:
  Triaged

Bug description:
  3D SkyBox (cubic) projection should be offered as one of the
  projection options in Hugin.

  It is a commonly required 3D background format for 3D rendering.

  According to http://www.ptgrey.com/support/downloads/documents/ladybugSDK/ProjectionTypes.html
  the formulas needed are: U=X/Z,  V=Y/Z

  It seems this may be similar like a set of six square rectilinear
  projections (Front, Right, Top, Left, Bottom, Back) designed to fit
  together to make a cube.

  (platform independent feature request)

To manage notifications about this bug go to:
https://bugs.launchpad.net/hugin/+bug/1031914/+subscriptions


References