How do I stop the LIE preset from turning my red bra into a black bra?
Hi,
I'm in in the stage of correcting the LIE preset for distribution.
I have a few questions.
Are there any tutorials on how to create these LIE presets?
Also, the preset writes with Bree's skin.
It does not seem to bring the skin onto the character as
I have tested it with other character's skin and it works ok.
Will that be ok since the final presets will be for distribution?
PROBLEM
I have changed most of the absolute paths to relative.
Each time I change a path I re-render to to see if it is ok.
Here is what I happens:
1) When I change this line to relative path the hip changes to black. This is the main texture.
/Runtime/Textures/lululee/Sassy/1RedBra.jpg
2) when I change the mask paths the entire torso/hip turns solid black.
Here is the preset text with the absolute paths on the base image and mask left in.
{
"file_version" : "0.6.0.0",
"asset_info" : {
"id" : ":Presets:Materials:Layered-Images:lululee:Sassy:2SasBraSetB.duf",
"type" : "preset_layered_image",
"contributor" : {
"author" : "",
"email" : "",
"website" : ""
},
"revision" : "1.0",
"modified" : "2014-03-14T15:35:49Z"
},
"image_library" : [
{
"id" : "2SasBraSetHip",
"name" : "2SasBraSetHip",
"map_size" : [ 4096, 4096 ],
"map_gamma" : 0,
"map" : [
{
"url" : ":Runtime:textures:DAZ:Characters:Genesis2:BaseFemale:V5BreeTorsoM.jpg",
"label" : "V5BreeTorsoM.jpg",
"color" : [ 0, 0, 0 ],
"transparency" : 1,
"invert" : false,
"rotation" : 0,
"xmirror" : false,
"ymirror" : false,
"xscale" : 1,
"yscale" : 1,
"xoffset" : 0,
"yoffset" : 0,
"operation" : "alpha_blend"
},
{
"url" : "/Runtime/Textures/lululee/Sassy/1RedBra.jpg",
"label" : "Hip",
"color" : [ 0, 0, 0 ],
"transparency" : 1,
"invert" : false,
"rotation" : 0,
"xmirror" : false,
"ymirror" : false,
"xscale" : 1,
"yscale" : 1,
"xoffset" : 0,
"yoffset" : 0,
"operation" : "alpha_blend",
"mask" : {
"url" : "/Runtime/Textures/lululee/Sassy/1RedBraM.jpg",
"label" : "Mask",
"color" : [ 1, 1, 1 ],
"transparency" : 1,
"invert" : false,
"rotation" : 0,
"xmirror" : false,
"ymirror" : false,
"xscale" : 1,
"yscale" : 1,
"xoffset" : 0,
"yoffset" : 0
}
}
]
},
{
"id" : "2SasBraSetHipB",
"name" : "2SasBraSetHipB",
"map_size" : [ 4096, 4096 ],
"map_gamma" : 0,
"map" : [
{
"url" : ":Runtime:textures:DAZ:Characters:Genesis2:BaseFemale:V5BreeTorsoM.jpg",
"label" : "V5BreeTorsoM.jpg",
"color" : [ 0, 0, 0 ],
"transparency" : 1,
"invert" : false,
"rotation" : 0,
"xmirror" : false,
"ymirror" : false,
"xscale" : 1,
"yscale" : 1,
"xoffset" : 0,
"yoffset" : 0,
"operation" : "alpha_blend"
},
{
"url" : "/Runtime/Textures/lululee/Sassy/1RedBra.jpg",
"label" : "Hip",
"color" : [ 0, 0, 0 ],
"transparency" : 1,
"invert" : false,
"rotation" : 0,
"xmirror" : false,
"ymirror" : false,
"xscale" : 1,
"yscale" : 1,
"xoffset" : 0,
"yoffset" : 0,
"operation" : "alpha_blend",
"mask" : {
"url" : "/Runtime/Textures/lululee/Sassy/1RedBraM.jpg",
"label" : "Mask",
"color" : [ 1, 1, 1 ],
"transparency" : 1,
"invert" : false,
"rotation" : 0,
"xmirror" : false,
"ymirror" : false,
"xscale" : 1,
"yscale" : 1,
"xoffset" : 0,
"yoffset" : 0
}
},
{
"url" : "/Runtime/Textures/lululee/Sassy/1RedBraD.png",
"label" : "HipBump",
"color" : [ 0, 0, 0 ],
"transparency" : 1,
"invert" : false,
"rotation" : 0,
"xmirror" : false,
"ymirror" : false,
"xscale" : 1,
"yscale" : 1,
"xoffset" : 0,
"yoffset" : 0,
"operation" : "alpha_blend",
"mask" : {
"url" : "/Runtime/Textures/lululee/Sassy/1RedBraD.png",
"label" : "Mask",
"color" : [ 1, 1, 1 ],
"transparency" : 1,
"invert" : false,
"rotation" : 0,
"xmirror" : false,
"ymirror" : false,
"xscale" : 1,
"yscale" : 1,
"xoffset" : 0,
"yoffset" : 0
}
}
]
},
{
"id" : "2SasBraSetTorso 2",
"name" : "2SasBraSetTorso 2",
"map_size" : [ 4096, 4096 ],
"map_gamma" : 0,
"map" : [
{
"url" : ":Runtime:textures:DAZ:Characters:Genesis2:BaseFemale:V5BreeTorsoM.jpg",
"label" : "V5BreeTorsoM.jpg",
"color" : [ 0, 0, 0 ],
"transparency" : 1,
"invert" : false,
"rotation" : 0,
"xmirror" : false,
"ymirror" : false,
"xscale" : 1,
"yscale" : 1,
"xoffset" : 0,
"yoffset" : 0,
"operation" : "alpha_blend"
},
{
"url" : "/Runtime/Textures/lululee/Sassy/1RedBra.jpg",
"label" : "Torso",
"color" : [ 0, 0, 0 ],
"transparency" : 1,
"invert" : false,
"rotation" : 0,
"xmirror" : false,
"ymirror" : false,
"xscale" : 1,
"yscale" : 1,
"xoffset" : 0,
"yoffset" : 0,
"operation" : "alpha_blend",
"mask" : {
"url" : "/Runtime/Textures/lululee/Sassy/1RedBraM.jpg",
"label" : "Mask",
"color" : [ 1, 1, 1 ],
"transparency" : 1,
"invert" : false,
"rotation" : 0,
"xmirror" : false,
"ymirror" : false,
"xscale" : 1,
"yscale" : 1,
"xoffset" : 0,
"yoffset" : 0
}
}
]
},
{
"id" : "2SasBraSetB",
"name" : "2SasBraSetB",
"map_size" : [ 4096, 4096 ],
"map_gamma" : 1,
"map" : [
{
"url" : ":Runtime:textures:DAZ:Characters:Genesis2:BaseFemale:V5BreeTorsoB.jpg",
"label" : "V5BreeTorsoB.jpg",
"color" : [ 0, 0, 0 ],
"transparency" : 1,
"invert" : false,
"rotation" : 0,
"xmirror" : false,
"ymirror" : false,
"xscale" : 1,
"yscale" : 1,
"xoffset" : 0,
"yoffset" : 0,
"operation" : "alpha_blend"
},
{
"url" : "/Runtime/Textures/lululee/Sassy/1RedBraD.png",
"label" : "NipBump",
"color" : [ 0, 0, 0 ],
"transparency" : 1,
"invert" : false,
"rotation" : 0,
"xmirror" : false,
"ymirror" : false,
"xscale" : 1,
"yscale" : 1,
"xoffset" : 0,
"yoffset" : 0,
"operation" : "alpha_blend",
"mask" : {
"url" : "/Runtime/Textures/lululee/Sassy/TripleBraM.jpg",
"label" : "Mask",
"color" : [ 1, 1, 1 ],
"transparency" : 1,
"invert" : false,
"rotation" : 0,
"xmirror" : false,
"ymirror" : false,
"xscale" : 1,
"yscale" : 1,
"xoffset" : 0,
"yoffset" : 0
}
}
]
},
{
"id" : "2BraSetTorso",
"name" : "2BraSetTorso",
"map_size" : [ 4096, 4096 ],
"map_gamma" : 0,
"map" : [
{
"url" : ":Runtime:textures:DAZ:Characters:Genesis2:BaseFemale:V5BreeTorsoM.jpg",
"label" : "V5BreeTorsoM.jpg",
"color" : [ 0, 0, 0 ],
"transparency" : 1,
"invert" : false,
"rotation" : 0,
"xmirror" : false,
"ymirror" : false,
"xscale" : 1,
"yscale" : 1,
"xoffset" : 0,
"yoffset" : 0,
"operation" : "alpha_blend"
},
{
"url" : "/Runtime/Textures/lululee/Sassy/1RedBra.jpg",
"label" : "Torso",
"color" : [ 0, 0, 0 ],
"transparency" : 1,
"invert" : false,
"rotation" : 0,
"xmirror" : false,
"ymirror" : false,
"xscale" : 1,
"yscale" : 1,
"xoffset" : 0,
"yoffset" : 0,
"operation" : "alpha_blend",
"mask" : {
"url" : "/Runtime/Textures/lululee/Sassy/1RedBraM.jpg",
"label" : "Mask",
"color" : [ 1, 1, 1 ],
"transparency" : 1,
"invert" : false,
"rotation" : 0,
"xmirror" : false,
"ymirror" : false,
"xscale" : 1,
"yscale" : 1,
"xoffset" : 0,
"yoffset" : 0
}
}
]
},
{
"id" : "2SasBraSeTorsotB",
"name" : "2SasBraSeTorsotB",
"map_size" : [ 4096, 4096 ],
"map_gamma" : 1,
"map" : [
{
"url" : ":Runtime:textures:DAZ:Characters:Genesis2:BaseFemale:V5BreeTorsoB.jpg",
"label" : "V5BreeTorsoB.jpg",
"color" : [ 0, 0, 0 ],
"transparency" : 1,
"invert" : false,
"rotation" : 0,
"xmirror" : false,
"ymirror" : false,
"xscale" : 1,
"yscale" : 1,
"xoffset" : 0,
"yoffset" : 0,
"operation" : "alpha_blend"
},
{
"label" : "TorsoB",
"color" : [ 0, 0, 0 ],
"transparency" : 1,
"invert" : false,
"rotation" : 0,
"xmirror" : false,
"ymirror" : false,
"xscale" : 1,
"yscale" : 1,
"xoffset" : 0,
"yoffset" : 0,
"operation" : "alpha_blend",
"mask" : {
"url" : "/Runtime/Textures/lululee/Sassy/1RedBraD.png",
"label" : "Mask",
"color" : [ 1, 1, 1 ],
"transparency" : 1,
"invert" : false,
"rotation" : 0,
"xmirror" : false,
"ymirror" : false,
"xscale" : 1,
"yscale" : 1,
"xoffset" : 0,
"yoffset" : 0
}
}
]
}
],
"scene" : {
"animations" : [
{
"url" : "name://@selection#materials/Hips:?diffuse/image",
"keys" : [ [ 0, "#2SasBraSetHip" ] ]
},
{
"url" : "name://@selection#materials/Hips:?extra/studio_material_channels/channels/Bump Strength/image",
"keys" : [ [ 0, "#2SasBraSetHipB" ] ]
},
{
"url" : "name://@selection#materials/Nipples:?diffuse/image",
"keys" : [ [ 0, "#2SasBraSetTorso 2" ] ]
},
{
"url" : "name://@selection#materials/Nipples:?extra/studio_material_channels/channels/Bump Strength/image",
"keys" : [ [ 0, "#2SasBraSetB" ] ]
},
{
"url" : "name://@selection#materials/Torso:?diffuse/image",
"keys" : [ [ 0, "#2BraSetTorso" ] ]
},
{
"url" : "name://@selection#materials/Torso:?extra/studio_material_channels/channels/Bump Strength/image",
"keys" : [ [ 0, "#2SasBraSeTorsotB" ] ]
}
]
}
}
Comments
This taught me all I needed to know http://daz.tall-tales-racing.com/resources/creating_lie_presets.pdf
Hi Zevo,
I do have that tutorial. I believe I am following it. The only difference is I am saving the preset to the preset folder
instead of the character folder.
I have no clue why simply changing the absolute path to a relative path would cause the color change and with
the mask actually remove the mask.
Do you see my error?
cheerio
lululee
Lemme bring in the re-enforcements...
Try using a colon ( : ), instead of the slash ( / ) in the path.
Example from your previous post.
“url” : “:Runtime:textures:DAZ:Characters:Genesis2:BaseFemale:V5BreeTorsoB.jpg”,
“url” : “/Runtime/Textures/lululee/Sassy/1RedBraD.png”,
That's the one big difference I see.
For the coding, I concur with DraagonStorm.
However, the LIE PDF is not a tutorial, but a functionality fact sheet.
As long as I have been using LIE, I have always followed the working directives you will find under 1.2.1, and 1.3 of that PDF. You need an "Alpha-ed" PNG to work with LIE, and not a texture base with an alpha map (mask) for the cutout.
I believe this is the crux of your issue above the DUF coding. Not sure if anyone has been using LIE with alpha maps, and have been successful at it. I could be wrong, but you might want to consider dropping your alpha map (mask) and utilizing only an alpha-ed PNG.
Maybe then, it will save and reload correctly as expected before distribution.
Both would work.
png overlay is much easier to work with (and in this case, yes I would have created a .png file and not mess with masks) But I use mask overlays all the time. My most recent MM product Burnish and Bright uses masked overlays. Also Dental Bling, Velvety Goodness, Sheer Greatness!, Instant Rainbow of Makeup..... on others.
Hi DragonStorm andDaremok3,
Everything works fine with the slashes.
It works fine when I change the slashes to colon :on the Bree texture.
When I change this one
“url” : “/Runtime/Textures/lululee/Sassy/1RedBraM.png”,
Everything goes black.
Very frustrating. I just tried it with transparent png and the same thing happened.
Renders fine with the slashes.
It seems that anything with Runtime is going black.
I really appreciate any help you can give me.
Cheerio
lululee
I'm not a real expert on the .duf format... I can make conjecture of how it works, and from what I've seen the LIE preset .duf file will ignore the base texture file and assign the LIE only.
My work with LIE is always with .dsa script files.
If your Runtime/Texture/... folders are in a properly mapped Poser Formats library in the DS's Content Directory Manager you should not be getting absolute paths.
Hi jestmart,
I am totally new to DS.
Could you tell me what the proper mapping is. I have tried to figure this out
but I have tno clue what it is supposed to be.
I believe I have the directories mapped in the "Ds content manager"
I have attached a screenshot of the directories and the mapped directories.
I've attached a screen shot of the directory it is installed in.
Does DS 4.6 write relative paths now?
All my paths from the mapped directories are absolute.
Your help is greatly appreciated.
Cheerio
lululee
Show a screenshot of the Content Directory Manager...click on the little arrow in the upper right corner and bring up the Content Directory Manager dialog box.
Hi mjc1016,
Thanks you for helping me.
Here are the screenshots of the Content Directory manager
and the content library
Cheerio
lululee
You need to have those content folders listed under Poser formats as well -- even for DS-format items, the textures are in the Poser-format runtime.
Hi fixmypcmike,
I just linked them and tried it again.
The same thing happened.
All is well until I change my bra texture from absolut path to relative the it renders black.
It still came in black as soon as I changed the absolute paths to relative on my bra texture.
Here is another screen shot of my new content manager with the linked folders
I'm back now.
cheerio
lululee
You shouldn't have "Data/DAZ 3D/Studio" listed, it should be "Data/DAZ 3D/Studio/My Library" in both DS and Poser formats.
Hi fixmypcmike,
Thanks so much for your help.
I really appreciate it.
cheerio
lululee