PTGui] Cube Faces

1,497 views
Skip to first unread message

Bill Mumford

unread,
Dec 23, 2014, 5:42:00 PM12/23/14
to pt...@googlegroups.com

Bill Mumford

Wow! this is getting complicated! My brain is worn out for today-I am going to start on this again tomorrow. Thanks a lot for you time and help. You to Keith and Erik. The other thing I was looking for was how to put cube faces back together.
Bill Mumford


Sorry - Clarification:  At step 5, I should have made it clear that the panorama image is added before the edited nadir image. Or you can simply do as Erik's instructions say and keep the original PTGui project open and add the edited nadir into that. 

John

On Tuesday, December 23, 2014 9:10:54 PM UTC, John Houghton wrote:
On Tuesday, December 23, 2014 8:19:52 PM UTC, Bill Mumford wrote:
Hi John, I am getting different results now, by selecting the 2 images, and creating the pandora. I am getting an equirect, that has the floor image all over it. Could you give me some instruction on how to merge the 2100 x 2100 floor image with the 8400x4200 equirect in CS5.1, or should PTGui be doing this when I click on create panorama?

The sequence of operations is this:

1. Open PTGui and add the equirectangular panorama image.
2. Apply the template extract_floor 
3. Set the output image size to maximum size and generate the nadir image.
4. Edit the nadir image (avoid changing the edge areas so that the image will merge back seamlessly).
5. Start a new project and add the equirectangular panorama and the nadir image.
6. Apply the template insert_floor
7. Set output size to maximum size and generate the remapped nadir image in equirectangular tif format.
8. Open Photoshop and add the original equirectangular panorama image together with the remapped nadir image.
9. Ctrl+a and copy/paste the nadir image into the panorama image (or shift+drag the nadir image into the panorama window). 
10. Do Layer->Flatten Image and then save the file in tiff format..

An alternative way to proceed at step 7 is to do:
7. Set output size to maximum size on the Create Panorama tab.
8. Check both images in the Include Images list.
9. Set the output file format to PSD and Individual Layers only.
10. Generate the output PSD file.
11. Open the PSD file in Photoshop, then flatten and save the file in tiff format.

John 

--
--
You received this message because you are subscribed to the Google Groups "PTGui" group.
To post to this group, send email to pt...@googlegroups.com
To unsubscribe from this group, send email to ptgui+un...@googlegroups.com
Please do not add attachments to your posts; instead upload your files at a file sharing site (for example http://ge.tt/ ) and include a link in your message.
For more options, visit this group at http://groups.google.com/group/ptgui

---
You received this message because you are subscribed to the Google Groups "PTGui Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ptgui+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


John Houghton

unread,
Dec 24, 2014, 7:53:41 AM12/24/14
to pt...@googlegroups.com
On Tuesday, December 23, 2014 10:42:00 PM UTC, gravityimage wrote:

Bill Mumford

Wow! this is getting complicated! My brain is worn out for today-I am going to start on this again tomorrow. Thanks a lot for you time and help. You to Keith and Erik. The other thing I was looking for was how to put cube faces back together.
In principle, assembling cube faces into an equirectangular image with PTGui is quite straightforward:

Load the 6 files output by PTGui's conversion tool into PTGui.
Set the lens parameters to type Rectilinear with fov 90 degrees.
Set the yaw and pitch angles on the Image Parameters tab to match the virtual shooting angles: front = yaw 0 and pitch 0..
Set the output file size (to maximum) and generate a PSD file with individual layers.
Load the PSD file into Photoshop and flatten the image, then save.

Most of this can be automated by applying this template file after loading in the image files: http://ge.tt/71OwZO72/v/0?c .

HOWEVER, there's a snag.  This doesn't work for all file sizes, as there can be visible glitches at the tile joins in the final flattened image.  I discovered this using a panorama file that somebody else generated which happened to have an "untidy" size - i.e. pixel dimensions not a multiple of one of the higher powers of 2.  I tried keeping the input and output equirectangular file widths to a multiple of 16 (e.g. 12240 in my test instead of  the original 12236) and that cured the problem.  I don't know if that workaround always works but it may well do so.

John


 

Keith Martin

unread,
Dec 24, 2014, 10:58:59 AM12/24/14
to pt...@googlegroups.com
PTGui is amazing – I love it. But this is why I re-assemble cubefaces
and do post-stitch patching in Pano2VR. :)

k
--
Keith Martin
Technical Editor, MacUser magazine
Senior Lecturer, LCC (University of the Arts London)
+44 (0)7909541365

Bill and Jean Mumford

unread,
Dec 24, 2014, 2:52:34 PM12/24/14
to pt...@googlegroups.com
When CubicConverter was working, it could take apart a spherical or cubic panorama into cube faces, you could export the face (typically the nadir), edit it, drop it back onto the original face, and re-assemble using CubicConverter. Does Pano2VR work like that? I guess I should get the trial version and take it for a test drive.
Bill and Jean Mumford



Bill Mumford

unread,
Dec 24, 2014, 4:00:03 PM12/24/14
to pt...@googlegroups.com
OK, it’s Pano2VR for me-quick clean and easy. I did it in 5 minutes, and it seems fine. I will have to learn how to get the best quality output, but PTGui built the spherical easily and with no fuss. Thanks again for all the input guys, and Happy Holidays.
Bill Mumford


When CubicConverter was working, it could take apart a spherical or cubic panorama into cube faces, you could export the face (typically the nadir), edit it, drop it back onto the original face, and re-assemble using CubicConverter. Does Pano2VR work like that? I guess I should get the trial version and take it for a test drive.
Bill Mumford


John Houghton

unread,
Dec 24, 2014, 6:00:18 PM12/24/14
to pt...@googlegroups.com
On Wednesday, December 24, 2014 9:00:03 PM UTC, gravityimage wrote:
OK, it’s Pano2VR for me-quick clean and easy. I did it in 5 minutes, and it seems fine. I will have to learn how to get the best quality output, ....

Bill, Check which interpolator is selected in the Pano2VR settings.  Mitchell may be the default, which can give rather soft results.  Better to choose Lanczos3.

John

Erik Krause

unread,
Dec 25, 2014, 9:22:58 AM12/25/14
to pt...@googlegroups.com
Am 24.12.2014 um 13:53 schrieb John Houghton:
> Set the output file size (to maximum) and generate a PSD file with
> individual layers.
> Load the PSD file into Photoshop and flatten the image, then save.

I discovered a photoshop-free variant last week: Multiblend is a fast
Enblend replacement with the additional ability to blend images without
overlap: http://horman.net/multiblend/

Put it in a folder of your choice, point PTGui to it via
Tools->Options->Plugins->Enblend and add Command line parameter -l 0 so
it won't do any blending at all. Choose Enblend as a blender.

happy holidays
Erik

John Houghton

unread,
Dec 26, 2014, 7:17:16 AM12/26/14
to pt...@googlegroups.com
Very good!  It's probably a good idea to add the parameter --nocrop too, to disable automatic cropping.  Otherwise PTGui can fail with the error: "The dimensions of this image are different from the image dimensions recorded in the project file".  I discovered this when converting a set of cubic tile images just generated by PTGui's tool, but this shouldn't happen when nadir and zenith holes have been filled in.

John

John Law

unread,
Dec 26, 2014, 10:29:31 AM12/26/14
to pt...@googlegroups.com
Seasonal greetings from Bath UK:

http://john-law.net/projects/cupola/

http://john-law.net/projects/pt14/

Re cube faces etc’ Not sure if anyone recommended the KRPano solution. The download includes several droplets which convert an equirect to cube faces for cleaning up and back again and another to convert the equirect for to a web viewable set of files. The two examples above were taken with a nikon 10.5 lens on a full-frame camera using a monopod and a 360 precision atome head. 4 round to capture the whole sphere.

And here is  top cube shot from Granada

JL

Erik Krause

unread,
Dec 27, 2014, 9:08:28 AM12/27/14
to pt...@googlegroups.com


Am 26.12.2014 um 13:17 schrieb John Houghton:
> It's probably a good idea to add the parameter --nocrop too, to
> disable automatic cropping. Otherwise PTGui can fail with the error: "The
> dimensions of this image are different from the image dimensions recorded
> in the project file". I discovered this when converting a set of cubic
> tile images just generated by PTGui's tool, but this shouldn't happen when
> nadir and zenith holes have been filled in.

Correct! I ran into this shortly after posting the last message...

Erik Krause

harun yağdı

unread,
Jul 13, 2017, 5:16:46 AM7/13/17
to PTGui Support
Thank you so much for the template! Does a perfect job after flattening layers on psd. Saved me a lot of time, cheers!
Reply all
Reply to author
Forward
0 new messages