Auto planar mapping

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

Thread Tools Search this Thread Display Modes
  10 October 2012
Auto planar mapping

Hi guys

I need to create a tool that will automatically planar map object that are selected. The tool needs to work even if the objects are rotated or translated or even has freeze transformation on them. I how would you guys approach this?

  10 October 2012
please be more specific, what is the outcome you are looking for?
  10 October 2012
say that I have 5 boxes in my scene and they are all rotate differently and positioned randomly. The boxes also has freeze transformation on them. I want the tool to be able to correctly planar map all the sides of each object in the scene.
  10 October 2012
boxes are one thing, complex models are another - once the mesh has been frozen, it is no longer a "box" in the sense that automatic mapping no longer has a frame of reference along which to operate. similarly, planar projections along the X, Y, Z become meaningless and since the object space is lost because of the frozen transform, you can't really get clean projections without a lot of math.

for boxes it's pretty easy, just:
1. planar map each face (loop through each face and apply a "best plane" planar projection)
2. run unfold (or use the Keep Image Ratio flag on the planar projection)
3. use layout with pre-scale to correct any scale issues between the uv shells.

Freezing position and scale isn't too deterimental, but freezing rotation is a bad idea - object space is a very useful thing to keep around.
  10 October 2012
If they are just boxes and you want each face 0-1. All you need to do is to run unitize.
  10 October 2012
You could also take a look at planar mapping "fit projection to: best plane".
What it does is that it places the planar projection at an angle that is the average of the normals of the selected faces. So you could combine that with a script that say, assigns a group of faces to selections. So it can be like:
Face 1 to 10 gets assigned to selection $selection1
Face 11 to 20 gets assigned to selection $selection2
Then each selection is projected with planar mapping "best plane".
And then you could do an unfold on each created UV shell to reduce distortion.

Would that be what you are looking for?
Nightshade UV Editor (script for Maya) - Extends Maya's default UV Texture Editor with additional tools.
  10 October 2012
Thread automatically closed

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
Thread Closed share thread

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Society of Digital Artists

Powered by vBulletin
Copyright ©2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump

All times are GMT. The time now is 02:25 AM.

Powered by vBulletin
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.