headus 3D tools headus 3D tools / 3D scans
Support Forums
 
 FAQFAQ   SearchSearch    UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
headus 3D scans

Flatten sphere for equirectangular panorama hdr image

 
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
madno



Posts: 5
Joined: 23 Mar 2013

PostPosted: Sat Mar 23, 2013 11:55 pm    Post subject: Flatten sphere for equirectangular panorama hdr image Reply with quote

Hi,
I am new to UV Layout (and UV in general).
I like to make an environment sphere onto which I want to project an equirectangular hdr image. The geometry is all quads. To do that I replaced the tris at the top and bottom of the sphere with quads (as a result there are very tiny holes at the poles now).

I put that obj into UV Layout and tried to get a rectangular UV map. But because of lack of know how I can't get the desired result.

Thanks for any help in advance.

(For testing I let the normals facing to the outside of the sphere, but I know I need to flip them later on. Does this effect the UV?).
Back to top
View user's profile Send private message
headus
Site Admin


Posts: 2902
Joined: 24 Mar 2005
Location: Perth, Australia

PostPosted: Sun Mar 24, 2013 5:38 pm    Post subject: Reply with quote

The reason for the rounded shape after flattening is that by default, UVLayout is trying to make each quad the same shape and size in UV space as it is in 3D space. Because your quads at the poles are smaller than those at the equator, the top and bottom of the flattened shape is pulled in.

To get the shape you are after, use the Shift-R hotkey. This will make all the quads rectangular, and if you flatten some more after that, it will try to still even things out while retaining the rectangular shapes.

Phil
Back to top
View user's profile Send private message Send e-mail Visit poster's website
madno



Posts: 5
Joined: 23 Mar 2013

PostPosted: Sun Mar 24, 2013 11:29 pm    Post subject: Reply with quote

I tried shift+R which gave me a red circle that altered the UV somehow. But in the end I get a similar result like before.
Is there anything else I need to take care of before using shift+R (some settings etc.)?
Back to top
View user's profile Send private message
headus
Site Admin


Posts: 2902
Joined: 24 Mar 2005
Location: Perth, Australia

PostPosted: Sun Mar 24, 2013 11:48 pm    Post subject: Reply with quote

Which version are you running? Click on the "About UVLayout" button at the top of the GUI to find out.

Since v2.07.02 (released in Feb last year) Shift-R has been used to square up UVs, but the "red circle" thing you describe is a superseded tool from earlier releases.

Phil
Back to top
View user's profile Send private message Send e-mail Visit poster's website
madno



Posts: 5
Joined: 23 Mar 2013

PostPosted: Mon Mar 25, 2013 9:25 am    Post subject: Reply with quote

It says v2.08.00 Prof.
from 2012/05/02.

I think I had a trial installed before that.
Maybe some old configs somewhere?
Back to top
View user's profile Send private message
headus
Site Admin


Posts: 2902
Joined: 24 Mar 2005
Location: Perth, Australia

PostPosted: Mon Mar 25, 2013 4:48 pm    Post subject: Reply with quote

Oops, sorry, I forgot about the R key function select in the Edit settings. See image below for where to select the rectangle functionality.

Phil
Back to top
View user's profile Send private message Send e-mail Visit poster's website
madno



Posts: 5
Joined: 23 Mar 2013

PostPosted: Mon Mar 25, 2013 10:45 pm    Post subject: Reply with quote

Before I ask more questions, I like to say thanks for taking the time to help.

I noticed that shift+R does not do the trick (puts everything to one single line).
But reading the hotkey part of the manual I found shift+I and shift+K. That worked better.
But now I have another issue with the final outcome.
As you can see in the screenshots of the harbor, I get distotion at the edge of the map if I use the UVLayout map, but it is ok with the spherical map I made with Lightwave. Could this be related to the difference in left and right border after packing in UVLayout?
Back to top
View user's profile Send private message
headus
Site Admin


Posts: 2902
Joined: 24 Mar 2005
Location: Perth, Australia

PostPosted: Tue Mar 26, 2013 12:28 am    Post subject: Reply with quote

Weird that Shift-R doesn't work! Anyway, its basically doing the same thing as Shift-I anyway, so at least you got the results you were after.

And yes, packing normally leaves a gap around the edge. If you want the shell locked tight to the UV square, then use "Fit To Sqr" tool under the Move/Scale/Rotate panel. If you click the "&" button, it should scale and move the shell so its completely fills the UV square with no padding.

Phil
Back to top
View user's profile Send private message Send e-mail Visit poster's website
madno



Posts: 5
Joined: 23 Mar 2013

PostPosted: Tue Mar 26, 2013 10:46 pm    Post subject: Reply with quote

Thanks,

now I got the result I needed.
And I start to understand the concept of UVLayout mapping Smile
Back to top
View user's profile Send private message
headus
Site Admin


Posts: 2902
Joined: 24 Mar 2005
Location: Perth, Australia

PostPosted: Tue Mar 26, 2013 11:07 pm    Post subject: Reply with quote

Excellent, and thanks for the update!

Phil
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group