mcjTailorsChalk - helps create opacity maps and textures for your posed figures (Updated apr 2017)

mCasualmCasual Posts: 4,601
edited April 2017 in Freebies

DS 4.5+ version ( DS 4.6 etc )

https://sites.google.com/site/mcasualsdazscripts4/mcjtailorschalk

===========================
===========================

in another thread i posted a 4K x 4K transparency map which can be applied to the (free) mcjA3Maillot (

this was created with the help of the mcjTailorsChalk

you place a sphere or a plane across a figure

and the script outputs an image map with "chalk lines" where the sphere(s) / plane(s) crossed the garment

Using this you can create gread opacity cutouts and very precisely position decorative elements

when its ready the link will be right here

--------

Figure 2 the squashed and rotated sphere that was used

Figure 3 The opacity map created in paintshop but based on the mcjTailorsChal's chalk lines

Figure 4 - adding finns using planes

figure 5 - opacity map with finns - note how the lines need to be curves in the opacity map to obtain straight lines in the posed model
this would be near impossible to guestimate

Post edited by mCasual on
«1

Comments

  • mCasualmCasual Posts: 4,601
    edited July 2014

    elsewhere in this forum you can find the 4k x 4k opacity map to transform the mcjA3Maillot

    fig 1 - mcjA3Maillot with the new opacity map

    fig2 - 2 spheres and 2 planes were used to generate the tailor's chalk line

    fig 3 - the original mcjA3Maillot

    fig 4 - with finns !

    Figure 5 .... encountered a problem .... too many chalk lines in mcjTailorsChalk's output image ... maybe its jpeg artifacts?

    ds4tailortestsphere3cosm.jpg
    2000 x 2000 - 307K
    yourfinns.jpg
    1600 x 900 - 350K
    swim4.jpg
    960 x 800 - 167K
    images_(1).jpg
    960 x 720 - 540K
    swim1_(1).jpg
    960 x 800 - 153K
    Post edited by mCasual on
  • mCasualmCasual Posts: 4,601
    edited July 2014

    Triangles ! that's what, i forgot to add proper handling of triangles

    easy to fix

    i also want to give you "chalk lines" wider than 1 pixel , cause i always have to thicken them in paintshop

    ... nope it's not the triangles

    ... maybe corrupt facets?

    ah HA the unexpected lines are all 10 segments long and the planes i used are 10x10

    ------

    figure 2 - issue resolved ! - the part of the script that sorts the planes the spheres and the clothes was confused


    note: in this version at least, all planes are deemed infinite

    figure 3 - un-retouched output of mcjTailorsChalk, the "pen" is a cross, which gives us a line thickness around 2.5

    fig 4 - applied

    ---

    i may add a color option so the line color would match the color of the plane/sphere

    seetheplanes.jpg
    1600 x 1600 - 1M
    fourlinesz.jpg
    1600 x 1600 - 1M
    ds4tailortesttoomanylines.png
    2000 x 2000 - 21K
    solved.jpg
    1600 x 1600 - 1M
    gettinthere2.jpg
    1600 x 1600 - 1M
    Post edited by mCasual on
  • mCasualmCasual Posts: 4,601
    edited July 2014

    added the User Interface and the functions that let you chose the output image name and location
    and some help, namely, this text

    Before launching this script, select the target object or figure.
    The name of the target object must not include the words 'sphere' or 'plane'
    Also select the planes or spheres that will be used to create the chalk lines
    The names of the spheres and planes must include the words 'sphere' or 'plane'

    -------

    Figure 2 - Now in Color ! in case you have a color monitor or something

    incolor.jpg
    1068 x 658 - 407K
    cominalong.jpg
    1084 x 486 - 346K
    Post edited by mCasual on
  • siocsioc Posts: 299
    edited December 1969

    Looking better and better !! I want it ;) and soon we will be able to send the result of this script to blender :p

    Thanks again Casual

  • MorganRLewisMorganRLewis Posts: 233
    edited December 1969

    This is going to be tremendously helpful for people who make their own textures & transparency maps. Thanks for the hard work, Jacques.

  • Miss BMiss B Posts: 3,071
    edited December 1969

    WOOT!!! This is going to be verrrrry useful. :coolsmile:

  • mCasualmCasual Posts: 4,601
    edited July 2014

    i'll add the ability to select which materials and which bones of a figure to process

    because presently the script evaluates all faces and all materials of a figure

    this can be a lengthy process if the figure is a person, not a swimsuit

    also, the result may be confusing if the figure is made of many materials with unrelated UV maps

    i'll also add "turbo modes" which will randomly process only 10% 25% or 50% of the facets

    the test subject will be new shorts!

    ----

    i'll probably post the high waist shorts on my site
    but they wont be full fledged figure with all the morphs
    they will just be for Aiko3's basic anime'ish body ( Aiko3LE also )

    cone.jpg
    1600 x 1600 - 1M
    Post edited by mCasual on
  • cwichuracwichura Posts: 1,042
    edited December 1969

    This is very cool. Can't wait to try it out.

  • mCasualmCasual Posts: 4,601
    edited December 1969

    cwichura said:
    This is very cool. Can't wait to try it out.

    i'm seriously thinking i'll post it tonight, seriously

    ( the DS4.6 version later the DS1,2,3 version)

    cone2.jpg
    1600 x 1600 - 1M
  • mCasualmCasual Posts: 4,601
    edited December 1969

    This is going to be tremendously helpful for people who make their own textures & transparency maps. Thanks for the hard work, Jacques.

    someday there will also be a plugin to project images (stamps) on figures

    coneisland.jpg
    1600 x 900 - 208K
  • mCasualmCasual Posts: 4,601
    edited July 2014

    Fig 1, only the hip node of the mcjA3Maillot was selected and 2 planes.
    So processing was very quick

    Fig 2 a new optional mode lets you process only selected materials
    in this case, i selected the swimsuit's lCollar, rCollar and chest bones, then i selected the straps material
    then i selected the pink-red plane

    Fig 3 an intensive test - i selected only the head, selected the "SkinHead" material, selected 2 planes
    it did take 2 minutes to complete ( dammit Jim i'm a script not a plugin ) since A3's head is 30000 polygons i think

    Fig 4 you can see that creating this kind of curve "manually" without the help of this script would be very difficult

    Zorra.jpg
    800 x 800 - 444K
    aikobandeau.jpg
    1024 x 1024 - 27K
    partial2.jpg
    800 x 800 - 447K
    partial.jpg
    800 x 800 - 423K
    maillothipvs2planesshow.jpg
    800 x 800 - 471K
    Post edited by mCasual on
  • mCasualmCasual Posts: 4,601
    edited July 2014

    Fig 1.

    added a progress indicator

    which lets you interrupt the script

    always nice to have brakes on a vehicle

    Fig 2:

    after i figure if this result is normal

    i selected the whole figure and there's 5 materials .... yeah i guess that's normal

    in a situation like this you'd want to create 1 chalk-lines image per material

    and mcjTailorsChalk lets you do that !

    ....

    actually i tried it and the type of UV maps for this hair prop just doesn't work

    it would work if many hair strands did NOT share the same piece of the texture map

    Fig 3 - The logo !

    Fig 4 - good thing i decided to test the spheres generated chalk lines, they were "broken" ( in programming i mean )

    . . . . . . . . . . . . . . . . i m p e n d i n g r e l e a s e . . . . . .

    Zorrago2.jpg
    800 x 800 - 530K
    midlogo.jpg
    273 x 273 - 42K
    Zorrago.jpg
    800 x 800 - 448K
    brakes.jpg
    1160 x 478 - 307K
    Post edited by mCasual on
  • SemicharmSemicharm Posts: 373
    edited December 1969

    WOW! This would have saved me a LOT of time in my Summer Sun set. lol

    BTW, is it possible to print an object onto another object's surface? Basically, a "tanline" tool.

  • mCasualmCasual Posts: 4,601
    edited December 1969

    semicharm said:
    WOW! This would have saved me a LOT of time in my Summer Sun set. lol

    BTW, is it possible to print an object onto another object's surface? Basically, a "tanline" tool.

    this script only allows spheres and planes as the outline shapes

    - a while ago i did some tests for a script or plugin that could decal an image onto a figure, tattoos !

    someday when i have time i'll finish it

    http://www.daz3d.com/forums/discussion/24838/

    tttoo.jpg
    556 x 720 - 141K
  • mCasualmCasual Posts: 4,601
    edited December 1969

    ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! !
    Middle of the night Release DS 4.6 Middle of the night Release DS 4.6
    ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! !

    then again if you're in Australia it's daytime and probably september

    ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! !

    https://sites.google.com/site/mcasualsdazscripts4/mcjtailorschalk

    ( ok ok i'll stop the exclamation marquees )

    midlogo.jpg
    273 x 273 - 42K
  • MorganRLewisMorganRLewis Posts: 233
    edited December 1969

    Casual said:

    actually i tried it and the type of UV maps for this hair prop just doesn't work

    it would work if many hair strands did NOT share the same piece of the texture map


    Sometimes there's only so much you can do when working with someone else's creation. :)

    It'll still be more than useful enough on the things that are sensibly-mapped. Thank you again for it. Downloading now...

  • sjfryer_a638239a69sjfryer_a638239a69 Posts: 19
    edited December 1969

    Looks great! Hoping that the DAZ 3 version is released soon!

  • mCasualmCasual Posts: 4,601
    edited July 2014

    Wyvern said:
    Looks great! Hoping that the DAZ 3 version is released soon!

    soon as in very very soon :)

    i think it's ... nah still got something to check and a few tests

    i'd say in the next hour ! i'll post it

    the image below was made with the help of mcjTailorsChalkDS3

    ( the exact same code will be used for DS1 and DS2 )

    aioia.jpg
    1024 x 1024 - 361K
    testds3tx.jpg
    1024 x 1024 - 32K
    a1234.gif
    600 x 600 - 101K
    Post edited by mCasual on
  • mCasualmCasual Posts: 4,601
    edited July 2014

    problem.

    4 spheres and the lButtock, rButtock and hip bones of the dress were selected

    maybe because the squashed/rotated spheres were parented to a null node

    ... investigating ...

    ==========

    Fig 2 - well actually it works if i select only the hip bone
    this bodycon dress happens to have no buttock geometry, it's all hip geometry

    still not sure what went on earlier ... the case continues ( https://www.youtube.com/watch?v=f2gNV5l_seY )

    =========
    oh !!!! i get it, i selected the spheres and ...... Aiko's hips ! instead of the dress
    so the image would've worked as Aiko bodypaint

    publishing time !!


    ========

    making it work for DS1 want trivial but it seems to work

    just got to check DS2 and then ...

    ======

    fig 5 - DS2 test : notice that you must expect little defects here and there , when a line crosses the UV borders, it's a flat-earth thing ( yeah that makes sense ) ( sort of )

    ds2test.jpg
    1600 x 719 - 192K
    iodah.jpg
    1600 x 720 - 158K
    tcbig3.jpg
    512 x 512 - 87K
    doeswork.jpg
    900 x 900 - 129K
    oopsie.jpg
    900 x 900 - 161K
    Post edited by mCasual on
  • mCasualmCasual Posts: 4,601
    edited July 2014

    *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
    ***** mcjTailorsChalk **** Full Release - For DS 1, DS2, Ds3 and DS4.5+ ( 4.6 etc ) *****
    *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***

    https://sites.google.com/site/mcasualsdazscripts4/mcjtailorschalk

    tip - if the target object is very low poly, very few lines will be traced

    in my examples, the primitive-Cone was tessellated at 32x16 for this reason

    =======

    Figure 3 - that's an incentivizing ( nah its not a word ) picture showing that cutout dresses are something to behold !

    Figure 4 is totally irrelevant and it's titled Amy and Professor Numann do the Tesla dance

    tesladancin.gif
    600 x 337 - 580K
    mjr085-l-610x610-dress-red-dress-red-christmas-dress-christmas-dresses-cute-skater-dress-red-skater-dress-skater-cutout-dress-cutouts-ask-grace.jpg
    610 x 610 - 73K
    shoou.png
    273 x 273 - 11K
    aop.jpg
    800 x 800 - 91K
    Post edited by mCasual on
  • GlennFGlennF Posts: 141
    edited December 1969

    Thank You

    Casual said:
    *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
    ***** mcjTailorsChalk **** Full Release - For DS 1, DS2, Ds3 and DS4.5+ ( 4.6 etc ) *****
    *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***

    https://sites.google.com/site/mcasualsdazscripts4/mcjtailorschalk

    tip - if the target object is very low poly, very few lines will be traced

    in my examples, the primitive-Cone was tessellated at 32x16 for this reason

    =======

    Figure 3 - that's an incentivizing ( nah its not a word ) picture showing that cutout dresses are something to behold !

    Figure 4 is totally irrelevant and it's titled Amy and Professor Numann do the Tesla dance

  • mCasualmCasual Posts: 4,601
    edited April 2017

    UPDATE UPDATE UPDATE UPDATE UPDATE

    https://sites.google.com/site/mcasualsdazscripts4/mcjtailorschalk

    April 11th 2017 8:00am - some facegroups ( Gen3/Aiko7's head ) are not named like the corresponding node.name but like the node.getLabel()

    April 11th 2017 6:30am - used the modulo function for UV coordinates not in the usual [0..1] range ( ex: Aiko7 )

    the scene where i  mcjTailorsChalk saved the day

    mcjArlequinette2.jpg
    756 x 1000 - 143K
    Post edited by mCasual on
  • marcoiomarcoio Posts: 45

    Hi, mCasual, thanks for your very useful scripts. Among scripts there is one named "mcjTailorChalkDS123.dsa" without icon, that seems doing nothing... what is its purpose?

  • mCasualmCasual Posts: 4,601
    edited April 2017
    marcoio said:

    Hi, mCasual, thanks for your very useful scripts. Among scripts there is one named "mcjTailorChalkDS123.dsa" without icon, that seems doing nothing... what is its purpose?

    it's possibly a leftover, and contains the same code as the version for DS1/DS2 and DS3, 

    even if DS4 accepts to load it, you should use the DS4 version with DS4

    Note that i may update the DS4 version soon because i encountered problems with some Genesis3 figures

    ( so i saved the figure as an obj, reloaded it and created my chalk lines on that )

    it helped me make this bunny swimsuit

    smHappyEaster2017.jpg
    800 x 1232 - 100K
    Post edited by mCasual on
  • marcoiomarcoio Posts: 45

    Ah ok... thanks

  • Eustace ScrubbEustace Scrubb Posts: 2,686

    Any chance of coordinating this with the mcjBump and/or mcjPath to make a live-brush for 3D painting of any sort?

    Please?

  • mCasualmCasual Posts: 4,601

    maybe but what's more likely to happen is a plugin based on my mcjWarp plugin, but before that i'll probably get back to bullet phusics and kinect interface ( i bought a used kinect One (V2) for Windows ! )

    i'll also support the old Kinect 360

     http://www.daz3d.com/forums/discussion/21044/mcjwarp-sculpting-plugin-for-ds-4-5-pc-win-x32-x64-version-available

     

    i also once did some tests with 3D tattoos or stickers

     image

     

     

    Any chance of coordinating this with the mcjBump and/or mcjPath to make a live-brush for 3D painting of any sort?

    Please?

     

  • TryhardTryhard Posts: 166

    I cant get your script to work.

    When I select both the surface and the cutting object I get the "Your selection is not valid" error.

    Please tell me what am I doing wrong?

    http://imgur.com/a/Ewrdp

  • mCasualmCasual Posts: 4,601
    edited August 2017

     it's objects or figures you have to select, not material/surfaces and not figure-body-parts

    so if you want to make a line across a bikini-top, in the scene tab, you select the bikinitop figure (root node of the figure ) and you select the plane

    make sure you are using mcjTailorsChalk for Daz Studio 4.5

    note that just now during my test i had problems using the script on the bikini top

    only the "chest upper" part of the top got the lines

    i will see if i can fix this, and post the update right here in this thread if/when i do

    but if you wanted a workaround, you could hide or delete everything in the scene, except the bikini top, then export the scene as an .obj, reimport the bikini top

    and use mcjTailor's chalk on that obj. because tailor's chalk works well on objects compared with clothes/figures

     

     

     

     

     

     

    I cant get your script to work.

    When I select both the surface and the cutting object I get the "Your selection is not valid" error.

    Please tell me what am I doing wrong?

    http://imgur.com/a/Ewrdp

     

    alkjalkj.jpg
    927 x 927 - 173K
    Post edited by mCasual on
  • mCasualmCasual Posts: 4,601

    oh i checked your image just now and you were using a Cube as the chalk object? it's only plane and sphere objects that work for that role

    in other news, i found the source of the problem   i had for the bikini top ( uppercase/lowercase issues in the figure's facegroup names )

    so in the next hour i will have an update and will announce it in this forum thread 

     

     

    I cant get your script to work.

    When I select both the surface and the cutting object I get the "Your selection is not valid" error.

    Please tell me what am I doing wrong?

    http://imgur.com/a/Ewrdp

     

Sign In or Register to comment.