- Site Map >
- Modding and Creation >
- Sims 4 Creation >
- Tutorials >
- Other - Multi-channel image editing (RLES, shadows etc) with Paint.net and friends
- > Share your modding know-how here
Replies: 0 (Who?), Viewed: 4478 times.
Pettifogging Legalist!retired moderator
#1 16th Jul 2015 at 12:20 AM Last edited by justJones : 6th May 2018 at 11:19 PM.
Thanks: 419454 in 1115 Posts
Multi-channel image editing (RLES, shadows etc) with Paint.net and friendsSome of the image formats for CC creation require editing channels individually (like the alpha); sadly Paint.net does not have the ability to view individual channels out of the box.* But it is not very difficult to work around that limitation: you can use a separate tool to split out the alpha channel so you can edit it separately, and then merge it back into your DDS when you're done.
I'm going to use dxtbmp for this purpose; there are probably other, similar utilities as well.
For this example I'm going to copy and edit the specular of a Maxis full body CAS part and make it fit a custom top that I made from that full body -- but you can use the same basic principle to edit self shadows, speculars for objects, basically anything where you need direct control over the alpha channel.
1. Clone the CAS part you want to use the specular of: in CASTools, go to "Cloning Tool", select the item you want (it doesn't matter which colour variant) and hit "Clone!"
2. Open the package you just cloned, in the General tab click on the little “Specular” thumbnail and in the window that opens, hit “Export”
3. Open the exported DDS in dxtbmp (this shows the DDS without alpha in the main view, hence why it’s all green) and doubleclick on the alpha preview (top right), or use the icons below it to open the alpha in paint.net â€’ you may need to explain dxtbmp first what editor you want to use (top menu > Prefs > Select editor, or click on the editor icon on the right-hand side, where my screenshot shows the Paint.net icon)
RLES-specific excourse: note that RLES speculars for CAS actually have five channels:
- Red = cube map blur
- Green = cube map strength
- Blue = specular falloff
- Alpha = specular strength (overall modulation)
- Mask = where to apply the whole thing
At present (version 22.214.171.124 and 7), CASTools drops the mask channel upon export to DDS (since a DDS only has four channels) and generates it from the alpha when it converts the DDS back to RLES upon import. See here and here for more info.
4. Now you can edit the alpha like you want (in my case, I'm going to lighten it very slightly in the area where I want the specular to actually be applied â€’ so that the mask generated from it will fit my top and not the original full body â€’, and edit the RGB a bit), and save as new file (DXT5) ..
5. .. then open the new RGB in dxtbmp and import the new alpha. I recommend opening and importing, rather than using the “Refresh” buttons â€’ for me it sometimes acts rather confused when I do the latter, showing a preview of the edited version but not actually saving it.
Save the result as a new file (DXT5 with mipmaps), and import it into your package. (The same way you exported it; you can also use s4pe 0.3a â€’ I don’t know about 0.3b, but don’t use 0.3c since that’ll break the mipmaps.)
* There seems to be one plugin that apparently kind of does that, but it's hosted on a site that seems really rather questionable .. so I'm not going to link to that here.
Stuff for TS2 · TS3 · TS4 | Please do not PM me with technical questions – we have Create forums for that.
In the kingdom of the blind, do as the Romans do.