Reply
Reply
 
Thread Tools Display Modes
pior's Avatar
Old (#1)
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 :



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).


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


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)


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


Open the diffuse bake in PS.


Select the brightest parts


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.


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


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.


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


Put that in product mode to simulate dirty areas.


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



... and a bump map.


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


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.


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.


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!
Offline , veteran polycounter, 4,936 Posts, Join Date Oct 2004, Location Irvine CA  
   Reply With Quote

MoP's Avatar
Old (#2)
Great info Pior, and perfect timing too, I think I'm gonna try this on my current model!
Offline , MoP, 11,603 Posts, Join Date Oct 2004, Location London, UK  
   Reply With Quote

Josh_Singh's Avatar
Old (#3)
damn dude, where do you come up with this stuff? I too need to try this.
Josh Singh 3d Artist
Joshsingh.net
My Art Dump
Offline , card carrying polycounter, 2,179 Posts, Join Date Oct 2004, Location Irvine Ca  
   Reply With Quote

cholden's Avatar
Old (#4)
Great work, poir. This will help a lot of people.
Offline , veteran polycounter, 3,303 Posts, Join Date Oct 2004, Location Denver, CO Send a message via ICQ to cholden  
   Reply With Quote

qubism's Avatar
Old (#5)
yup good stuff pior
i have to try out the script
Offline , triangle, 458 Posts, Join Date Oct 2004, Location germany Send a message via ICQ to qubism Send a message via MSN to qubism  
   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