Jump to content

How to remove shadow after edited hair?


Recommended Posts

Posted (edited)

I want to show the ears of Nanami, so I made a mod to hide the side part of her hair. But I feel lost about how to deal with the shadows. 

can anyone give me some ideas? mod file attached for your information.

 

 1739256856_QQ20220807152627.png.94990f9d334f68bf841d211882a2d93f.png

Mod.ini

Edited by linrjun
Posted
4 hours ago, linrjun said:

I want to show the ears of Nanami, so I made a mod to hide the side part of her hair. But I feel lost about how to deal with the shadows. 

can anyone give me some ideas? mod file attached for your information.

 

 1739256856_QQ20220807152627.png.94990f9d334f68bf841d211882a2d93f.png

Mod.ini 785 B · 2 downloads

I gave similar answer here

822712328_DOAX_VV2022-08-0713-35-37.thumb.png.80e1b3557127f1252f835c8360c9aa36.png1738960519_DOAX_VV2022-08-0713-35-41.thumb.png.b6b5ef95e598606decb22c587887d473.png

 

[ShaderOverrideHair]
hash = 8248b340a94d1fe6

handling = skip

Posted
14 hours ago, Yorom said:

I gave similar answer here

822712328_DOAX_VV2022-08-0713-35-37.thumb.png.80e1b3557127f1252f835c8360c9aa36.png1738960519_DOAX_VV2022-08-0713-35-41.thumb.png.b6b5ef95e598606decb22c587887d473.png

 

[ShaderOverrideHair]
hash = 8248b340a94d1fe6

handling = skip

thanks a lot!

Posted (edited)
21 hours ago, Yorom said:

[ShaderOverrideHair]
hash = 8248b340a94d1fe6

handling = skip

This hash is a CS hash you generally don't want to skip these because it will disables hair shadows for all girls that use that hash.
A better way is to add the hair PS hash (1/2 in hunting mode) to your d3dx.ini then find the ib/vb0 hash of the hair shadow for the specific girl and skip that.
If you have the hair PS hash in your d3dx.ini, you can also dump the hair shadow mesh and edit it in blender.
The shadow mesh is also needed to give depth to the hair, without it the hair will have no depth and will become transparent when using high depth of field settings ingame or with reshade.

Edited by CeeZ_M
Posted
On 8/8/2022 at 6:38 PM, CeeZ_M said:

This hash is a CS hash you generally don't want to skip these because it will disables hair shadows for all girls that use that hash.
A better way is to add the hair PS hash (1/2 in hunting mode) to your d3dx.ini then find the ib/vb0 hash of the hair shadow for the specific girl and skip that.
If you have the hair PS hash in your d3dx.ini, you can also dump the hair shadow mesh and edit it in blender.
The shadow mesh is also needed to give depth to the hair, without it the hair will have no depth and will become transparent when using high depth of field settings ingame or with reshade.

I see, so hair editing is quite complex if I want to change only small part of it

Posted
On 2022/8/8 at PM5点38分, CeeZ_M said:

这个散列是一个 CS 散列,你通常不想跳过这些散列,因为它会禁用所有使用该散列的女孩的头发阴影。
更好的方法是将头发 PS 哈希(在狩猎模式下为 1/2)添加到您的 d3dx.ini,然后找到特定女孩的头发阴影的 ib/vb0 哈希并跳过它。
如果您的 d3dx.ini 中有头发 PS 哈希,您还可以转储头发阴影网格并在搅拌器中编辑它。
阴影网格也需要为头发提供深度,没有它,头发将没有深度,并且在使用游戏中的高景深设置或重新着色时会变得透明。

What is the function of adding hash in d3dx file?Can shadows be used to edit shapes like models?I don't know how to extract shadows with F8

Posted
Spoiler
On 8/8/2022 at 5:38 PM, CeeZ_M said:

This hash is a CS hash you generally don't want to skip these because it will disables hair shadows for all girls that use that hash.
A better way is to add the hair PS hash (1/2 in hunting mode) to your d3dx.ini then find the ib/vb0 hash of the hair shadow for the specific girl and skip that.
If you have the hair PS hash in your d3dx.ini, you can also dump the hair shadow mesh and edit it in blender.
The shadow mesh is also needed to give depth to the hair, without it the hair will have no depth and will become transparent when using high depth of field settings ingame or with reshade.

 

On 8/7/2022 at 7:39 PM, Yorom said:

I gave similar answer here

822712328_DOAX_VV2022-08-0713-35-37.thumb.png.80e1b3557127f1252f835c8360c9aa36.png1738960519_DOAX_VV2022-08-0713-35-41.thumb.png.b6b5ef95e598606decb22c587887d473.png

 

[ShaderOverrideHair]
hash = 8248b340a94d1fe6

handling = skip

 

I noticed that 【Momiji Bob】 would also have this shadow on his forehead, both hash= b73d40ea09223f43,

so I deleted 

Bytecode hash: 2a353ee8
;hash = 096e8de77c05a141
;allow_duplicate_hash = overrule
;run = CommandListHair

add  In D3DX.ini 

[ShaderOverrideSkinPSShadow2022-8-12]
; Remove hair shadows in reshade
hash = b73d40ea09223f43
run = CommandListShadowMap

Only the hair seems to disappear, the other scenes have no effect, I wonder if it is correct?

Posted
On 8/11/2022 at 7:58 AM, Tychedy said:

What is the function of adding hash in d3dx file?Can shadows be used to edit shapes like models?I don't know how to extract shadows with F8

I set the hair shadow as "CommandListHair", that way when i dump the the hair it will include the shadow.

 

On 8/12/2022 at 5:08 AM, Tychedy said:

I noticed that 【Momiji Bob】 would also have this shadow on his forehead, both hash= b73d40ea09223f43,

im not sure about this one, some of the hashes need to be updated after the 4.5 anniversary update.

 

On 8/11/2022 at 4:03 AM, linrjun said:

I see, so hair editing is quite complex if I want to change only small part of it

It's similar to mesh replacent you just need to pay attention the "Stride" when you create the ini file.

Posted
Spoiler
On 2022/8/14 at PM9点11分, CeeZ_M said:

我将头发阴影设置为“CommandListHair”,这样当我倾倒头发时它会包含阴影。

 

我不确定这个,一些哈希值需要在 4.5 周年更新后更新。

 

它类似于网格替换,您只需要在创建 ini 文件时注意“步幅”。

 

If I want to change the color of the hair specular-texture(T2texture),
How should the code be edited?Is this code okay?

[TextureOverrideH1]

hash = fbc6f83c(hash of T0 texture)
match_priority = -1
ps-t0 = ResourceColor1t0
ps-t2 = ResourceColor1t2

 

AND:Will any of the following affect T2?

[ShaderOverrideHairFiona]
hash = 2d6fa97beffe2f18
allow_duplicate_hash = overrule
if $costume_mods
    checktextureoverride = ps-t0
    checktextureoverride = ps-t2
endif

Posted (edited)
剧透
2022/8/14 PM9点11分,CeeZ_M 说道:

我将头发抱设置为CommandListHair”,这样当我倾倒头发的时候“它会包含抱。

 

我很喜欢这个,一些哈希值需要在 4.5 周年更新后更新。

 

它的宽度相似替换,您只需要在创建ini文件时注意“步”。

 

如果我想改变头发specular-texture(T2texture)的颜色,
应该怎么编辑代码?

[纹理覆盖H1]

hash = fbc6f83c(T0纹理的hash)
match_priority = -1
ps-t0 = ResourceColor1t0
ps-t2 = ResourceColor1t2

 

AND:以下有什么影响T2的吗?

[ShaderOverrideHairFiona]
hash = 2d6fa97beffe2f18 allow_duplicate_hash = overrule
if
$costume_mods
    checktextureoverride = ps-t0
    checktextureoverride = ps-t2
endif

QQ截图20220818102109.jpg

Edited by Tychedy
lose

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...