HOME | DD

vasilnatalie — WYSIWYG.fx model development shader for MMD by

#effect #mmd #mme #shader #mikumikudance #effects #materials
Published: 2016-08-21 15:33:45 +0000 UTC; Views: 3535; Favourites: 40; Downloads: 29
Redirect to original
Description www.mediafire.com/download/f2q…

This is intended for model developers, but you can use it in a render if you want.  I guess.

Allows WYSIWYG control of material and texture parameters (diffuse, ambient, specular, reflect, edge, tex shift and scale, tex, sphere, or toon RGB or HSV, sphere blur) within MMD, using a default shader, so you can more rapidly hone in on the exact settings you want.  When you're happy, just add the numbers to those for your model.

Read the readme.  No rules.

Pictured with Compare.fx just so you can see that WYSIWYG is actually doing anything.  Screenshot shows the tweakable controls; look at the display pane.


Edit: Have had more time to use this in-depth.  It's useful, but it's going to need some improvements, so you might want to consider this a beta.  Here's what I feel about how well it's working:

Diffuse/Ambient: Apparently working, but I'm distrustful, and will have to revisit the code.  For some reason, only darkening, not lightening.  That's why I'm suspicious.  Indication that I did something wrong.

Specular/Reflect: This is working great, and is reason enough for this effect to exist.  Actually getting to play with these in conjunction has been an eye opener.  Large surfaces can tolerate much higher reflect values than small surfaces can.  And through the use of high reflect, materials can tolerate full white specular.  This interacts really deeply with other light settings.  Tested pretty thoroughly, with no apparent disagreement between WYSIWYG.fx and PMXE mat changes based on the effect.

Texture: Hue matches GIMP perfectly.  Multiply darken is working properly.  High saturation values disagree with GIMP.  If you want perfect WYSIWYG, you're advised to avoid trusting this effect's saturation preview.

Toon: This turns out to be really useful but I distrust the code.  I have some good ideas for improving the function of this and will revisit the code.  It's worth playing with, as useful as specular/reflect, but keep a backup of your toons.  Keep in mind that it'll only show you toon changes on shadow mode 2 (for self-shadowing models only, if I'm not mistaken).

Sphere: This is working as well as tex, but isn't useful, because the blur method is shit, and sphere RGB or HSV doesn't matter half as much as sphere blur.

Edge: Working, not very useful though.  Intuition about edge is usually right-on anyways.

I'll revisit the code and fix things.  Sometime.  Lots of things on my plate.  Every day I make progress on one idea and get five new ideas.  You know how it goes.

I think that I can make code to actually render the textures.  This will be particularly useful with toons, where you should be able to use this effect to create an arbitrary toon of any single color and gradient.  Rendering that texture directly from MMD makes life easier.  I may be able to do something similar with other textures as well, which will make sphere settings more useful, and due to that, I may research better blur algorithms.

Also plan to disentangle the settings you'd want to use to edit pics (although hopefully, I can render, and you won't even have to use GIMP) from the settings you'd use to make material morphs.  They're both useful, but the actual numbers you'd want for each are different.

Finally, a word of caution: the first time I used this to tune material settings, I loved it-- and then I realized that I had just made my model tons worse, and rolled everything back.  My original model was mostly better than my changes (I kept changes made to the mouth, tongue and teeth).  You're still going to need to use your judgment.  Hopefully, this tool will just make it easier for you to make good models when you possess good judgment, something I apparently lack.  I'll probably build my compare.fx effect into the next build in order to make it easier to see your before-and-after edits.  Maybe just via a display-changes bone.
Related content
Comments: 20

griffen100 [2018-02-03 22:53:36 +0000 UTC]

I'm going to check this out. ray cast is annoying me. It is removing sphere from model every time i use. Some modesl look horrid stripped of their sphere's.

👍: 0 ⏩: 1

vasilnatalie In reply to griffen100 [2018-02-03 22:56:55 +0000 UTC]

Oh my, it's been a while since I made this.  Let me know if you have any issues, I'll see if I can fix them.

👍: 0 ⏩: 1

griffen100 In reply to vasilnatalie [2018-02-04 02:56:59 +0000 UTC]

Couldn't get the page to load. No worries. Might be my internet. it gets crappy some times I'll try again later.

👍: 0 ⏩: 1

vasilnatalie In reply to griffen100 [2018-02-04 03:16:35 +0000 UTC]

Okay.  Let me know if it keeps doing it.  I've had issues with Mediafire shadow blocking some stuff in the past, but it looks like this is loading for me, even in a private browser window, so hopefully that's not going on.

👍: 0 ⏩: 0

SPIRITRAY76 [2017-08-23 18:32:37 +0000 UTC]

This effect you made is incomplete.

👍: 0 ⏩: 1

vasilnatalie In reply to SPIRITRAY76 [2017-08-23 18:41:50 +0000 UTC]

I wouldn't be surprised!  It's been a long time since I looked at this.

Can you be more specific?  Would be happy to address any concerns.

👍: 0 ⏩: 1

SPIRITRAY76 In reply to vasilnatalie [2017-08-23 19:49:34 +0000 UTC]

Well we can talk more of this at gmail.

👍: 0 ⏩: 1

vasilnatalie In reply to SPIRITRAY76 [2017-08-23 20:58:42 +0000 UTC]

Gmail?  Feel free to send me a PM here on deviantart if you'd like.  I'd appreciate the chance to address any potential issues.

👍: 0 ⏩: 1

SPIRITRAY76 In reply to vasilnatalie [2017-08-23 21:12:17 +0000 UTC]

Can't cause i have to show you a demonstration of what im talking about.

👍: 0 ⏩: 1

vasilnatalie In reply to SPIRITRAY76 [2017-08-23 21:21:44 +0000 UTC]

There are a thousand ways to show me a demo, for instance, pictures on DA, videos on youtube, etc, and you might be surprised, I'm very good at understanding regular old words, even in the absence of pictures or video.  I'm not handing out my email address, even though I appreciate your willingness to help me improve this.

👍: 0 ⏩: 0

k7539518246k [2017-05-01 05:30:19 +0000 UTC]

error x305:'min':identifier represents a variable,not a function.
I can't make it work.

👍: 0 ⏩: 1

vasilnatalie In reply to k7539518246k [2017-07-08 19:23:34 +0000 UTC]

Hmm, I just re-downloaded to see if I screwed something up-- always likely!-- but didn't get that error.  Can you give me any more details so I can reproduce it and fix it?

👍: 0 ⏩: 1

k7539518246k In reply to vasilnatalie [2017-07-09 04:56:39 +0000 UTC]

There are four files,so when i add pmx into MMD,and set fx file on models,it says error x305:'min':identifier represents a variable,not a function.
I have no idea about what's wrong with it.

👍: 0 ⏩: 1

vasilnatalie In reply to k7539518246k [2017-07-09 05:51:57 +0000 UTC]

Hmm.  It doesn't happen for me.  But I did find some code that might do that, so I changed it.  Updated the download.

If you have a chance, would you mind trying it again and letting me know if that fixed it?

If it's still not fixed, could you tell me what model you loaded it on?

👍: 0 ⏩: 1

k7539518246k In reply to vasilnatalie [2017-07-09 10:00:22 +0000 UTC]

Thanks,it works now,maybe it's good for 2D style rendering.
But I think very few people will use it because Ray is the mainstream now and it's easy to use.
github.com/ray-cast/ray-mmd

👍: 0 ⏩: 1

vasilnatalie In reply to k7539518246k [2017-07-09 16:13:40 +0000 UTC]

Thanks for letting me know and checking the fix, I appreciate it.

👍: 0 ⏩: 1

k7539518246k In reply to vasilnatalie [2017-07-09 16:36:13 +0000 UTC]

That's alright.

👍: 0 ⏩: 0

GingerCat-P [2016-08-21 17:08:39 +0000 UTC]

This is incredibly useful and I had no idea it was even possible! Thank you, ah!

👍: 0 ⏩: 1

vasilnatalie In reply to GingerCat-P [2016-08-21 18:26:34 +0000 UTC]

Cool, I'm glad you're excited!  Please let me know if you run into any issues-- there are bound to be some problems.

Or, if there's something that I could include to make it more useful, I'd love to hear about that too.

👍: 0 ⏩: 1

GingerCat-P In reply to vasilnatalie [2016-08-21 18:40:46 +0000 UTC]

I haven't tried it yet, but I will let you know, yup!

👍: 0 ⏩: 0