https://www.mauvemorn.net/post/190813573099/tanlineseng

( turn on English subtitles )

Hi. In this tutorial, I will show how to fix tan / burn lines a sim gets after sunbathing in your CC.

WRITTEN TUTORIAL:

PLEASE DO NOT REPOST

According to SimGuruMorgan, a tan is applied according to the alpha channel of the clothing worn during sunbathing. For it to look right, either map your garment’s UVs over the appropriate area of the body’s UVs like Maxis does ( 1 ) or just make the area opaque, the whole area ( 2 ), not just where UV islands are ( 3 ).

Start by baking ambient occlusion like you would for a shadow map. For this, the garment and the body should be separated. If they are not yet, select the joined meshgroup, enter Edit mode, enable sync in UV Editor ( 1 ), press B to activate Box selection or hold Ctrl for Lasso selection, LMB-click and drag to select all UV islands ( 2 ). In 3d view click P and choose Selection ( 3 ) to separate. Do not forget to Restrict rendering ( 5 ) for all body parts in the rig ( 4 ) that overlap with your body mesh.

Select the body, switch to World tab and make sure Ambient Occlusion and Environment Lighting are enabled. Change the later to 2,500 ( 6 ). Leave Samples at 15 ( 7 ). Switch to Render tab, but before baking, enter Edit mode, select everything with A, add a new 1024 x 2048 texture ( 8 ). Set Bake Mode to Ambient Occlusion ( 9 ) and hit Bake button ( 10 ). Once the loading bar on top disappears, save the result with Image – Save as Image as .png ( 11 ).

Open the image in the image editing software of your choice. Remove unwanted parts by selecting and deleting them and using contrast-altering tools like Levels ( 1 ) in Photoshop. Then select the rest of the area covered by clothing and fill it with Black ( RMB-click - Fill – Black ( 2 ) ). Optionally smooth the outline with filters like Median ( 3 ) and Gaussian Blur ( 4 ).

Once done, invert the colors ( Ctrl I ) and fill the background with black ( 1 ). Merge the layers, select everything ( Ctrl A ) and copy ( Ctrl C ). Open your diffuse texture, create a new fill layer, Alt-LMB-click on the mask to edit it, paste ( Ctrl V ) the copied texture.

If there is a significant gap between the garment and the body, you may encounter this issue ( 2 ). It can be fixed by editing the texture or the mesh.

Enable Proportional Editing ( 3 ), press G, scroll up the mouse wheel until you can see the radius.