someday -- mcjDecal

mCasualmCasual Posts: 4,604
edited June 2013 in Freebies

Figure 1 : although the image below was photoshoped

what i'll try to do tonight

( taking a short break from the Aiko3 crop-top )

is to write a script

which lets you stamp an image on a figure, in a WYSIWYG fashion

--

Figure 2,

create a Primitive plane
create a camera
parent the plane to the camera
zero the plane's transforms
so it's now "in my face"
moved the plane away along the Z axis
it's now in front of the camera
textured the plane with an image
made the surface slightly transparent
aimed the plane/picture at Aiko's shoulder
selected the shoulder's material

--

i'll leave the complicated but high-performance solutions for later

for tonight's trick, i just need to map the 4 corners of the stamp

so it wont be a distortion-free solution

--

figure 3, first experimental results with a 1000x1000 pixels map

we can see one of the issues for this low-processing-cost solution
the decals cant be applied across skin texture seams

--

figure 4

this time, we avoid crossing a texture seam
we use a 2000x2730 pixels map
but we can see the other issue with
this low-processing-cost solution
we use a 4 UV coordinate map and apply it to a thousands UV coordinates map
so we get very visible distortion

renme.jpg
772 x 999 - 296K
acro.jpg
480 x 314 - 15K
pomm.jpg
538 x 686 - 99K
stamp1sit.jpg
538 x 686 - 54K
abpic.jpg
1280 x 720 - 148K
Post edited by mCasual on

Comments

  • mCasualmCasual Posts: 4,604
    edited June 2013

    Figure 1 - my first ever script-applied decal

    for now i set this project aside

    and i'll complete the crop-top for Aiko3

    i'll be back in this thread in July or August

    ---

    technical details
    the decal was 200x200 pixels
    the source/destination texture was 2048x2730
    the script used the mcjCollider 4 times
    the processing time was ...16 seconds
    as a plugin it would be 1 second i guess
    , most of it for disk access

    ---

    Figure 2
    decal was sampled 1000x1000 times ( unfortunately the decal was just 200x100 )
    the source/destination texture was 4096x5460
    the script used the mcjCollider 4 times
    the processing time was ...6 minutes

    tttatttoo.jpg
    556 x 720 - 85K
    decal.jpg
    772 x 999 - 175K
    Post edited by mCasual on
  • DisparateDreamerDisparateDreamer Posts: 2,491
    edited December 1969

    amazing as always from you! watching with great interest!

  • Eustace ScrubbEustace Scrubb Posts: 2,687
    edited December 1969

    Make that at least two of us!

  • KeryaKerya Posts: 10,943
    edited December 1969

    Subscribing ...

  • siocsioc Posts: 299
    edited December 1969

    Could you finish than script, it would be so awesome :) please, please

Sign In or Register to comment.