Home 3D Art Showcase & Critiques

normalmap material weathering tut

grand marshal polycounter
Offline / Send Message
pior grand marshal polycounter
Hi

I've been really impressed by ambiant occlusion tecniques to generate a dirtmap but I've been wondering if it was possible to get a 'wornmask' in a similar way. By wornmask I mean a map showing were the object is likely to be exposed, hence wheathered.

pits&peaks is a nice max utility that generates vertexcolors based on the object geometry, quickly finding height and lows points and applying them a color according to these factor.

You can easily isolate exposed parts this way, hence you'll know where paint is supposed to be weathering for example. Its a nice, free and easy alternative to complex dirt generators.

Here's how one can use it for normalmapped objects :


pnptut_01.jpg
Start with a highpoly object you wan't to weather (middle). Be sure to have access to the smooth algorythm switch in order to be able to work on the proxy object (right). Also built a lowpoly realtime object that will be used for texture baking (left).

pnptut_02.jpg
Convert the proxy cage to editmesh as it is required by pitsnpeaks. Run the utility.

pnptut_03.jpg
Convert your proxy mesh back to editpoly, and switch on the smoothing.

Put the vertexcolor info of the detailled model in its diffuse materialslot. Check if everything reders correctly (detailled mesh with pitsnpeaks info renderable)

pnptut_04.jpg
Then setup the rendertotexture utility so that it outputs a diffuse bake based on the realtime model's UVs.

pnptut_05.jpg
Open the diffuse bake in PS.

pnptut_06.jpg
Select the brightest parts

pnptut_07.jpg
Open a nice dirty texture, BW it, adjust contrast to get a sharp separation between paint and underlying material. Put it ontop of the baked diffuse render.

pnptut_08.jpg
Use the selection as a mask to isolate the texture on the 'peaks' areas.

pnptut_09.jpg
Use the result as a mask to fill create paint and wornout paint areas. Add an inner light layerstyle on the wornout parts, using black, small distance, and normal mode at 50% opacity or so.

pnptut_10.jpg
Make a copy of the original pitsnpeaks render and adjust levels to get white instead of grey (if this ever makes sense!)

pnptut_11.jpg
Put that in product mode to simulate dirty areas.

pnptut_12.jpg
You can easily use the weatherpaint mask as a base to create a specmap...


pnptut_13.jpg
... and a bump map.

pnptut_14.jpg
The gamerez model with normal, diffuse, and spec maps applied.

pnptut_15.jpg
You can take the technique a step further and use the pitsnpeaks information as a vertexcolor mask in a blend material.
This allows the blending of two procedural or bitmap materials on the highpoly object based on the location where dirt may accumulate, taken from the proy model topology.

pnptut_16.jpg
The results can be baked down to the lowpoly's UVs using rendertotexture, giving you a fully textured normalmapped object with no pain and no image editing! Sharp weathered paints bits would still asks for photoshop love in order to avoid the gradient nature of the pitsnpeaks map.

pnptut_17.jpg
Another weathered object example with procedural dirt layers blended according to the raw pitsnpeaks vertexcolor information from the unsmoothed proxy model.

Hope it was clear enough!

Replies

Sign In or Register to comment.