|
created Hacky Normal Map Correction
on 04-11-2012 03:07 PM
I was baking out some normal maps for some stones I made for a scene and discovered a nifty little trick. I'm sure it doesn't fix everything but hopefully it helps some people in a pinch.
Sometimes I just can't get a good bake on objects so I'm glad I stumbled upon this. I'd love to see how this can be used on other models and situations.
|
, polygon,
722 Posts,
Join Date Dec 2008,
Location Montreal,Quebec
|
I don't understand, you're killing the gradient, which with a proper smooth-group setup should give the same results?
Unless I missed something, because it looks like your Normals are one group as opposed to split by UV cuts.
There's a very good chance that I experienced MORE problems, then all the internet put together in the area of 3D. Talk about being original for once...
|
, veteran polycounter,
4,501 Posts,
Join Date Apr 2011,
Location Canada
|
Maya doesn't use Smoothing groups per say, It's just defining hard and soft edges. The closest way to mimic them would be going through and hardening the outside edges of the shell/UV island and softening the interior ones.
Last edited by Gannon; 04-11-2012 at 04:15 PM..
|
, polygon,
722 Posts,
Join Date Dec 2008,
Location Montreal,Quebec
|
@Gannon the same thing still applies to getting a clean normal map bake, if you would like i can post a mel script i use that automatcally hardens the edges of UV islands for you?
|
, card carrying polycounter,
2,239 Posts,
Join Date Nov 2010,
Location Halifax, NS, Canada
|
I know, this just a hacky trick is all.
A script would be fantastic. I've been doing it manually for a while and sometimes that's pretty tedious.
|
, polygon,
722 Posts,
Join Date Dec 2008,
Location Montreal,Quebec
|
just toss this on a shelf, and run it on a object, after you do your UV's
Code:
string $objList[] = `ls -sl -o`;
string $uvBorder[];
string $edgeUVs[];
string $finalBorder[];
for ($subObj in $objList) {
select -r $subObj;
polyNormalPerVertex -ufn true;
polySoftEdge -a 180 -ch 1 $subObj;
select -r $subObj.map["*"];
polySelectBorderShell 1;
$uvBorder = `polyListComponentConversion -te -in`;
$uvBorder = `ls -fl $uvBorder`;
clear( $finalBorder );
for( $curEdge in $uvBorder ) {
$edgeUVs = `polyListComponentConversion -tuv $curEdge`;
$edgeUVs = `ls -fl $edgeUVs`;
if( size( $edgeUVs ) > 2 ) {
$finalBorder[ size( $finalBorder ) ] = $curEdge;
}
}
polySoftEdge -a 0 -ch 1 $finalBorder;
}
select -r $objList;
Last edited by passerby; 04-12-2012 at 04:02 AM..
|
, card carrying polycounter,
2,239 Posts,
Join Date Nov 2010,
Location Halifax, NS, Canada
|
sweet, Thanks!
|
, polygon,
722 Posts,
Join Date Dec 2008,
Location Montreal,Quebec
|
pretty nice trick for removing unwanted normal map shading!
thanks for sharing this 
|
, line,
80 Posts,
Join Date Jan 2011,
Location Toronto Canada
|
Okay, nice hack but you might as well cut out whole baking process and generate your normal from diffuse. Because resulting map doesn't have any big or medium surface definition left, just surface dents and noise.
|
, polygon,
617 Posts,
Join Date Aug 2009,
Location Tbilisi, Georgia
|
why not just fix your models smoothing? like sandro says, your totally loosing the advantage of baking a high to low normal map.
|
, veteran polycounter,
2,970 Posts,
Join Date Feb 2010,
Location Ireland
|
This process doesn't make any sense at all.
If the gradients are there after your bake, it's that they are supposed to be there to compensate for the lowpoly shading, or you did something wrong. You shouldn't have to hack around in Photoshop like this.
And your final image still looks wrong, there are some weird inner bevel type effects on all the edges.
|
, polycounter,
1,011 Posts,
Join Date Jun 2006,
Location Paris / France
|
This has come up in other normal map threads but yeah, what they said above me. If you have to hand tweak the normal map afterwards, that means you're going to have to do that every time you update the normal map. That will add up to a lot of busy work over the course of a project. A LOT of busy work.
Better to fix your model and get a clean bake.
|
, polycounter,
1,225 Posts,
Join Date Aug 2010,
|
@ sandro - Baking a diffuse to normal isn't going to give you the right results at all. The information is usually not what you want most of the time. You usually want a height map but then you lose out on edge quality so you compensate through extra geo on edges.
Yeah, just changing the smoothing groups can help but it doesn't always. Sometimes it come down to the geo, so without retopoing the entire thing this is just a quick hacky fix.
Last edited by Gannon; 04-12-2012 at 08:43 AM..
|
, polygon,
722 Posts,
Join Date Dec 2008,
Location Montreal,Quebec
|
oh god, terrible terrible idea, just fix your model!
|
, Moderator,
8,633 Posts,
Join Date Oct 2004,
Location Iowa City, IA
|
Quote:
Originally Posted by EarthQuake
oh god, terrible terrible idea, just fix your model!
|
This!
You can't polish a turd.
|
, dedicated polycounter,
1,827 Posts,
Join Date Aug 2007,
Location derp land
|
rofl, fiiiiiiiiine.
|
, polygon,
722 Posts,
Join Date Dec 2008,
Location Montreal,Quebec
|
Btw Gannon, we (I guess I can speak for us all here) are not dissing on you, or the fact that you created this thread.
You went ahead and created a thread, even wrote a guide, and show people this. That's more than 95% of us ever do for this community, so we all learned here, not only you!
Don't feel reluctant next time you wanna share possible new discoveries of workflows, etc.
|
, dedicated polycounter,
1,827 Posts,
Join Date Aug 2007,
Location derp land
|
Quote:
Originally Posted by [HP]
Btw Gannon, we (I guess I can speak for us all here) are not dissing on you, or the fact that you created this thread.
You went ahead and created a thread, even wrote a guide, and show people this. That's more than 95% of us ever do for this community, so we all learned here, not only you!
Don't feel reluctant next time you wanna share possible new discoveries of workflows, etc.
|
^ This.
Hopefully we werent over zealous. There just so much of this stuff going about that it gets frustrating.
Last edited by r_fletch_r; 04-12-2012 at 05:06 PM..
|
, veteran polycounter,
2,970 Posts,
Join Date Feb 2010,
Location Ireland
|
I don't know why everyone is making a huge issue. It's a good trick if you do have unwanted normal map shading. Of course you should always make sure you have the best possible bake but we all know normal maps are not always perfect, and this could be useful at some point.
i think the only problem with this thread is the title and it's approach. like many of your mention, this is the intention of normals from the bake and this isn't a general problem.
|
, line,
80 Posts,
Join Date Jan 2011,
Location Toronto Canada
|
Quote:
Originally Posted by unstoppablex
I don't know why everyone is making a huge issue. It's a good trick if you do have unwanted normal map shading. Of course you should always make sure you have the best possible bake but we all know normal maps are not always perfect, and this could be useful at some point.
|
Its not a good trick, its a hack that tries to make up for incorrect execution.
If you model the base correctly you wont get this issue. No one should ever recommend visually editing normal map gradients.
take a little look at Earthquakes work and you will see what can be achieved with correct normal map workflow.
Last edited by r_fletch_r; 04-13-2012 at 04:46 AM..
|
, veteran polycounter,
2,970 Posts,
Join Date Feb 2010,
Location Ireland
|
Here my technique, may be it isn't perfect !!

|
, null,
21 Posts,
Join Date Sep 2009,
Location Barcelona
|
Right, the biggest problem with this sort of things is they have this horrible tendency to snowball. You post some seemingly harmless bit info about something you've done, and all of a sudden we'll see countless people who don't really understand what or why you've done it repeating it because they think "gradients in normal maps are bad". Even worse, these people start popping in to other threads in tech talk and telling them to follow the advice in this thread, instead of taking the time to learn and understand WHY smoothing errors occur in the first place.
Its a constant battle of miss-information.
|
, Moderator,
8,633 Posts,
Join Date Oct 2004,
Location Iowa City, IA
|
Poor gradients, so misunderstood : /
|
, dedicated polycounter,
1,659 Posts,
Join Date Oct 2009,
Location Charlottetown
|
Quote:
Originally Posted by cryrid
Poor gradients, so misunderstood : /
|
Gradient are the tool of the Witch! Burn the unclean edges! Melt the abomination of the baker!
There's a very good chance that I experienced MORE problems, then all the internet put together in the area of 3D. Talk about being original for once...
|
, veteran polycounter,
4,501 Posts,
Join Date Apr 2011,
Location Canada
|
Mods please rename this thread "Bad Normal Map Tips ITT", thx
|
, spline,
246 Posts,
Join Date Jan 2010,
| Thread Tools |
|
|
| Display Modes |
Hybrid Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Copyright 1998-2012 A. Risch
|