13 個の投稿 / 0 new
最終投稿
#1 2020-01-17 05:54

Need help with Raycast shading - MMD.

Hello guys and girls. So basically I downloaded some DoA 6 models (https://www.deviantart.com/mukoj-in/art/Bass-C10-Seaside-Eden-Swimsuit-8...) but I figured out they didnt look the same when loading on MMD. So as I saw a file called "Bass Raycast Swimsuit.fx" inside the folder, I assumed Raycast should be used.

So I downloaded Raycast version 1.5.0, only because it was the newer.
And I followed the next steps:
>load ray.x
>load raycontroller.pmd
>loaded Time of Night.pmx skybox (comes with raycast)
>loaded Bass model.
This is how it looks for now:
https://imgur.com/AKYzqVU
>open MMEffect. Apply main.fx to Bass under "Main" tab. It looks darker now
>Click subsect-extract under MaterialMap. Replace each thing with what I think its adequate. Not using "Bass Raycast Swimsuit.fx" at all.
>Clck EnvLightMap tab. Load TimeofLigthing.fx
I have a pretty better result
https://imgur.com/Gompl8V
However it feels like some things are still undone. For example I dont know what kind of texture to use on his eyes and eye related parts. His clothes look kinda weird. I used "Bass Raycast Swimsuit.fx" here. However the default cloth textures looked even worse.
Adittionally there is this bug with his hair and beard (on the chin). This bug looks way worse when I try to do the same with a long haired model, but that is another case because I am not sure those models were prepared to raycast, because they are ripped from XPS.
https://imgur.com/0mQz9JO

So my questions are: Should him look like this or did I forgot to do something? How to solve those hair problems? What textures should I use for eyes and clothes? Am I using the right raycast version? Is there anything else you want to point out about this?

Thank you very much for spending your time reading this post in advance.

2020-01-17 07:03

Look at the Readme file in the Time of night folder. You clearly skipped a few steps.

2020-01-17 07:32

Raycast has some issues with semi-transparent materials. You may need to edit the model in PMXEditor. Make sure the opaque setting is a solid 1 for all material parts. Even if it is 0.99 it can cause Raycast to have issues. It must be a solid 1.

Raycast does not have a problem with semi-transparent png images, so you can use those.

2020-01-17 08:32

Wow, I did all the skybox steps, and indeed it looks better. Thank you a lot!
However, I had trouble with another similar model, same creator. I've checked (for both models) that opaque was set on 1 for every material, and indeed it was. However when I do all the steps, I get this:
https://imgur.com/Myp65KX

Do you have any idea on why could that be?

Edit: It seems the author itself said the model will give trouble
https://www.deviantart.com/mukoj-in/art/Hitomi-C19-Seaside-Eden-Swimsuit...
you have any idea on how to fix this without using photoshop or some sort of post edit? I dont know anything about it

2020-01-18 08:33

The problem with her hair has nothing to do with Raycast Shader. It is a problem with MMD in general. The hair textures are partially transparent, and if that material part comes before the material part underneath it, the transparent section will mask whatever is underneath. To fix this, open the model in PMXEditor and go to the Material tab. Find the material parts for her hair, and move them down to the bottom of the list. That way the hair will be loaded last into MMD.

If that does not solve the problem, then you may need to edit the hair texture file in Photoshop or Gimp to remove the transparent (alpha) section. Make it a solid texture.

2020-01-24 05:23

Thank you for the advise. Also sorry for the late answer.
Well, I checked the model on PmxEditor and the problematic hair files were already at the bottom.
However, I didnt do any research yet on how to edit the hair texture files on Photoshop.
If I send you the png file, can you tell if there is alpha section on it by looking at it?

2020-01-25 17:12

Sure, I will take a look at it.

2020-01-27 00:21

Alright, thank u again.
Here are all the parts that contain some kind of head hair:
https://imgur.com/S0xKa3c
https://imgur.com/spfsq9h
https://imgur.com/GctkbPV
https://imgur.com/1vTGi1k

2020-01-29 01:30

There was no need to edit the face texture file. Here are the hair texture files with the transparent sections removed.


2020-01-29 06:29

Ooh, I tried to use the new textures (and btw really appreciate u did it) however it seems they are still bugged, but on a different way:

https://imgur.com/rkK40HE
It seems that there are 3 specific hair files causing this, and I made sure to put them on the last of the Materials list on PMDE, and also to set their opacity to 1.

2020-01-30 01:32
2020-02-01 11:19

Thank you, and those are really pretty hair models (If i recall, once I used one from the same creator) I did consider changing the hair, but since it is a rip off from a videogame, if I put her another hair people woudlnt feel it is her. However, I have a last hope. There was a file called hair_flair.png or something like that. It was a black image which had a lot of height and little width. Do you think it can help somehow?

2020-02-01 17:24

If it has transparency in it you will probably run into the same problem, but there is no harm in trying it.