Author : jdvi


Reply
Reply
 
Thread Tools Display Modes
CT007's Avatar
Old (#1)
So, maybe everyone already knows this, maybe not...

Straightening you UVs = clean (baked) lightmaps

UDK > Baked lightmap > 128x128: (see attachment)
Attached Images
File Type: jpg Lightmap_UV_Tip.jpg (160.9 KB, 345 views)
Offline , vertex, 37 Posts, Join Date Jan 2009,  
   Reply With Quote

Oniram's Avatar
Old (#2)
neat. i didnt know that. glad i do now though. typically if i had an issue with lightmaps id just create a new one within the mesh editor, but this is still something good to know. thx
Offline , card carrying polycounter, 2,039 Posts, Join Date Apr 2007, Location Belmont, CA Send a message via Skype™ to Oniram  
   Reply With Quote

karera's Avatar
Old (#3)
Woah! I think my lightmaps are straightened... But thats sick. There is too much of a difference in quality for such a small change. Need to make sure tonight ;)
Offline , spline, 164 Posts, Join Date Jan 2008, Location School of future entertainment, Karlshamn Sweden  
   Reply With Quote

Ben Apuna's Avatar
Old (#4)
If you haven't already seen it, you guys might like this tutorial.

It's a little dated though as it was made for Unreal3 so some things are a little different. For example you don't need padding around the outer edge of 0-1 UV space for lightmap UVs anymore, you only need padding between the individual shells to avoid bleeding.
Ye Olde Portfolio | Google+ | #1GAM | Aspiring indie developer.
Offline , veteran polycounter, 2,522 Posts, Join Date Feb 2009, Location Hawaii Send a message via Yahoo to Ben Apuna  
   Reply With Quote

JordanW's Avatar
Old (#5)
The edges certainly are cleaner, I would say you have too much padding. You should see how this affects a shadow casting across the flat surface because I feel like by straightening the UVs you just moved the problem from the edges to the center and you don't notice it because there isn't a shadow casting across the surface.
Jordan Walker
ART BLOG
CGHUB
Twitter
Offline , dedicated polycounter, 1,438 Posts, Join Date Oct 2004, Location Cary, NC Send a message via ICQ to JordanW  
   Reply With Quote

Gilgamesh's Avatar
Old (#6)
Well because it's like a RTT the resolution might slightly be affected by the stretching but the accuracy wont be, it seems a pretty decent way to cure the problem he has/had.
Offline , triangle, 303 Posts, Join Date Jun 2009, Location London, UK  
   Reply With Quote

CT007's Avatar
Old (#7)
Quote:
Originally Posted by JordanW View Post
I feel like by straightening the UVs you just moved the problem from the edges to the center and you don't notice it because there isn't a shadow casting across the surface.
Is there (currently)no perfect UV solution then, for less simplistic meshes like this? Does it all come down to how the mesh is lit in the final level, rather than general lighting?

Straight UVs seem to fix the most noticeable LM problem areas, so it seems they would be best in general lighting cases.

Last edited by CT007; 11-02-2010 at 11:55 AM..
Offline , vertex, 37 Posts, Join Date Jan 2009,  
   Reply With Quote

kdm3d's Avatar
Old (#8)
The reason this works is that pixels are square, the same thing happens with normal maps. if your UV edge falls diagonally across a number of pixels, it has to take every pixel it falls across and interpolate it to find the closest match. If your UV edge is straight, the software has a clean edge to fall across and there is no interpolation.

So, anywhere uv edges are not perfectly horizontal or vertical you're going to get this effect, with ANY map, just the nature of the beast. You just dont notice it int he center of islands because it has more to interpolate rather than the edges.

You WILL notice it with normal maps int he center of islands though, with any normal edge that cuts across pixels.

Ah... the challenges of game art

Last edited by kdm3d; 11-07-2010 at 09:57 AM..
Offline , spline, 216 Posts, Join Date Oct 2009, Location Federal Way, Wa  
   Reply With Quote

Reply

Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Copyright 1998-2012 A. Risch