mcjskinlikethis



Introduction

Using this script you can obtain in your renders the precise skin tone ( or clothes color ) as the one in an image of your choice




History


March 15th 2015 8PM  - Release version for DS4  
March 15th 2015 10:30PM  - Added version for DS1, Ds2




Installation



The zip package is found at the bottom of this page

unzip it in your daz content folder, typically 


C:\Program Files\DAZ\Studio\content\ 
or

C:\Program Files (x86)\DAZ\Studio\content\


once installed, it will appear in your content library, under Studio / Scripts / mcasual 


or


C:\Users\Public\Documents\My DAZ 3D Library\


once installed, it will appear in your content library, under My DAZ 3D Library / Scripts / mcasual
 





Use



Using the Daz Studio's material selection tool, select the surface you want to match with the photo

for example i select Aiko3's SkinTorso material

This also selected the Aiko figure . Note that the root node and only the root node of the figure needs to be selected.

Move your view camera until the skin surface completely fills the viewport

Try to have bright and dark skin tones in your view.



Launch the script

Unless you did it previously, use the "Select reference image" button to select your reference skin-tone image

Note that this image should contain only skin tones.

If for example there was a green earring in your reference image youu could end up with green skin !

Once that's done, click the "fix" button and watch the script make extra efforts to make the skin color match the reference image skin

If the script misses the target you can try one of the following

- adjust the scene lighting, avoid using tinted lights
- adjust the mcjskinlikethis Diffuse color setting to something darker or lighter
- turn off the skin's specular ( glossy shiny ) effect
- adjust mcjskinlikethis's ambient strength to something higher or lower
- if your surface has an image map applied to it and this image is very dark, mcjskinlikethis's will have trouble making it bright white


Example of reference images i used succesfully



What the script does, i mean, really


the script will make up to 40 ( but often less ) tiny ( 256x256 ) software or hardware renders 
until your rendered material looks like the one in the reference photo

what it does actually is to 
- find pixels with the median  lightness  in the reference image
- notes the average color of those pixels, 
- then finds a median-lightness pixel in your rendered image
- notes its location. 
- tweaks of your surface diffuse strength
- renders 
- it does up to 10 tweak/render cycles until the rendered pixel lightness is the same as the reference image pixels
- for the red, green and blue components of the diffuse color, it does up to 10 tweak/render cycles until the color is just right



License

// by mCasual/Jacques 
//
// You can use this script freely for personal or commercial use.
//
// You may not sell, resell, sub-license or rent this script in any way./
//
// you may credit this script  to mCasual/Jacques
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
// PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
// ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

ċ
mcjSkinLikeThis.zip
(27k)
mCasual Jacques,
Mar 16, 2015, 2:22 PM
Comments