-
Visit LearnMMD.com on Facebook!.
Keep the Faith-MMD... Learn to be a responsible MMDer! .
.

How to use Raycast MMD MME Shader Effect

A feature article by GloriaTheAnimator!

How do I use Raycast? Where can I download the latest version of the Raycast effect?

Friend: HAVE YOU SEEN THE AMAZING MMD RAYCAST VIDEOS??? THAT SHADER IS SO COOL, RIGHT???

You: “Yea, but its so complicated I won’t be able to use it” :<

Hey, don’t worry. I know how to use Raycast
… I came to help

A Quick Glimpse of Raycast

Raycast is a powerful MME effect tool... so many variables!

So all ya have to know is 945+6854=Raycast

Editor’s Note: LearnMMD has several Ray-MMD and Raycast tutorials... some are more “learned” than others but you might review each of them so as to get of the tips and ideas they offer as you learn from the experiences of the various authors. CLICK this box to see them all.Just joking! Raycast is a powerful and sophisticated, complicated effect… but ya just need to know the basics to get started!

For this demo, I’m gonna use the new raycast 1.3.0 … a 47Mb download!
(When you follow that link, on the right is the Download button… and on the left is a drop-down that let’s you choose from all of the older versions… “Branch 1.3.0″… you will want the 1.3.0 or the 1.2.0… experiment to see which works the best on your system.)
EDITOR’S NOTE: I found that the version 1.3.0 worked well for me.

SO, OK… FIRST THINGS FIRST…

We need to load our beautiful model…

To try out Raycast, load your model... I used Cute Miku by LomiVoka.

… this model will work (Cute Miku by LomiVoka).

Now open MME>Effect Mapping and let’s apply the shader to the model; go to the “Raycast/Main” folder and load main.fx

Use Effect Mapping to load main.fx onto your model... Raycast>Main>main.fx

If you’re using the new Raycast 1.3 it should look like this:

When you apply Main.fx when using Raycast 1.3.0 your model will go black! ... not to worry... you can fix it.

with old Raycast 1.2, it should look like this:

When you apply Main.fx when using Raycast 1.2.0 your model will look like this.

When you load the main.fx it will look horrible!… and that’s why we MUST load ray.x in the main Raycast folder.

Load the MME effect Ray.x found inside the Raycast folder.

EDITOR’S NOTE: When I loaded ray.x, MMD seemed to lock-up because my system took a long time to open/process that file… and when it DID come back, the stage was SOLID Black. Go ahead to the next step and load a Skybox model to get your stage back.

I loaded the GrandCanyon.pmx Skybox model to see my Stage, again.

NOW THAT LOOKS BEAUTIFUL

… but there are some weird spots!

AH… WE NEED A SKYBOX…

Load a skybox as a model file from the Skybox folder inside your Raycast folder…

Loading the Skybox gets rid of all of those weird spots we saw in that image, above.

 

GREAT… now load a background image or your favorite skydome and probably hide the coordinate-axis.

(I have downloaded extra skydomes from this person: ignisdraconi on Deviant Art. Just put them into Raycast/Skybox.)

You can go to MME Effect Mapping and use Hide/Show to hide the Skybox. (If you use the Display checkbox to hide your Skybox, all of those weird spots will be back! … so use the Effect Mapping Hide/Show button, instead.)

BEAUTIFUL… LOOKS GORGEOUS!

OK… now we will make it even more beautiful

by loading the ray controller.pmx model.

When we load the controller we suddenly have control of allot of settings and effects!

This is the brow facials list…

these are the settings for my picture…
– BloomThreshold 0.45
– BloomIntensity- 0.40″

There is kind of a cheap-lens effect and a color-shift effect and using BloomThreshold we will make everything very pretty.

… but it is a little dark from the other sides!

Well, then, let’s load some lighting!

Load the DirectionalLight.pmx model.

LED.pmx does not work that easily and I don’t know how to make it work but I messaged the creator of Raycast and he said

“first, you need to download the (MMBG, avisynth) and install , then convert your avi to avs ,and loading the avs file into MMD… finally, put a Extension/DummyScreen.x and LED.pmx into MMD… MMBG AviSynth

… but, anyways…

You can change the position and swivel the light direction of the DirectionalLight using the XYZ rollers. Swivel the light to shine on the front, back or side of your model.

… and change the quality of the light with the facial sliders.

In my image, I loaded the DirectionalLight model three times so I could add light where I wanted it on my model!

On back light I like to make it a little blue and in “other” facials use “intensivity-”

… and little bit of light manipulation…

You can easily hide the lights model by going to MME and click “Hide/Show” in MME tabs Main, MaterialMap, Depthmap, PSSM.

The arrows show from what positions my lighting is coming as I lit her with the three DirectionalLighting models.

 

NOW ITS TIME FOR THE MATERIALS…

You can go to MME/MaterialMap and apply the effect to your model.

I will show you how they look when applied in the image, below.

*it’s a new version of Raycast, though, so there will be more materials and they will look better*

I recommend that you download these from my Deviant Art page…

link1  link2 … there should be instructions in the description.

Have fun with Raycast and MMD!


– SEE BELOW for MORE MMD TUTORIALS…




Visit the LearnMMD.com Homepage! Plenty of Mikumikudance instruction and info!

45 Comments

  1. Doggen Doggen
    June 13, 2018    

    Hey, I have main.fx loaded but when I try to load ray.fx, an error message comes up saying it failed to load the effect file. Does anyone know how to fix this?

    • June 13, 2018    

      You should load ray.x, it’s a different file.

      • Doggen Doggen
        June 14, 2018    

        I meant ray.x, not ray.fx. Typo.

        • June 14, 2018    

          You load ray.x using Accessories Manipulation panel, do you?

          Does the error message say anything else? Like a line number, for example?

    • June 22, 2018    

      If you get a message saying that your system failed to load the fx file, this usually means your equipment cannot support this effect?

  2. BlackTWINS BlackTWINS
    April 7, 2018    

    hello I have a problem about ray.x :when I move it to mikumikudance, nothing is happening,I now I write for help vrey late but if you can help me I stay here.

    • Reggie_Dentmore Reggie_Dentmore
      April 7, 2018    

      Do you mean “nothing is happening” like MMD seems to lock-up… and so you close the program? … My computer is an old DELL running Windows XP Pro SP3… and I CAN get some features of Raycast to work for me… and several times in the process, MMD “seems” to lock-up… and I have waited, like, over 5 minutes for it to “come back”… but it DOES come back. RAYCAST is actually written for use on 64-bit systems; mine is an old 32-bit system.

      Beyond that, I have no help for you. You will just have to experiment to see what works… if “nothing”… then, that’s how it is.

  3. Emily Emily
    January 13, 2018    

    I’ve added all of the effects and stuff and it works fine. There’s one issue however. The back of the model looks really dark even though I have 2 lights there. Is there anyway to fix this?

    • June 22, 2018    

      The lights have to be turned on for them to work. Just loading them generally doesn’t do anything. I will need to do a separate tutorial on the lights as they can be a bit fiddly.

  4. Ellie Ellie
    December 17, 2017    

    I’ve gotten to the part where you add the ray.fx file. After adding, it locks up for a while. When it responds again, it comes up with an error message. Have you had this problem?

    • December 17, 2017    

      What error message?

      • Ellie Ellie
        December 18, 2017    

        Its ok. I figured out I was using the .fx file instead of the .x file. Thanks for responding though

  5. Kimmi Kimmi
    December 13, 2017    

    Hey there! I’ve been wanting to ask something. Is there a way to put on the Raycast effect without a skybox? I’m sorry, in my opinion, Skyboxes are not really my thing so is there a way? Thank you.

    • December 13, 2017    

      You got to load the skybox included with raycast, there aditional ones you can download: Google search: White skydome raycast. Load that then untick it in MME it should not be visable.

  6. Crimsahh Crimsahh
    December 3, 2017    

    Um, I’ve reached the part to where I put in the ray_controller.pmx but when I put it in, I can’t find the panel of the settings and effects..

    • Reggie_Dentmore Reggie_Dentmore
      December 3, 2017    

      Everything is right there… That Controller uses the facial sliders for all that it can do. Those other folders in the RAYCAST folder contain the other tools you need… like the LIGHTS folder… many types of lights are in there…. and they each use their own facial sliders as controls. … It’s a complicated effect with many things to figure out.

  7. Janita Purhonen Janita Purhonen
    September 3, 2017    

    Please help me:(..
    I have been using raycast without problems but now..ugh..
    there is one part on my video which looks like this http://imgur.com/a/Fqinc
    That problem lasts about 200-300 frames then it just disappeares. I wonder why? :(

    • September 3, 2017    

      Did you use one of skyboxes provided with the effect?

      • Janita Janita
        September 8, 2017    

        Yes://

        • September 9, 2017    

          Then the answer is not obvious, and the only way to solve it is to experiment a lot, trying to change different aspects of the procedure and see what happens.

  8. Kaitlyn Kaitlyn
    September 1, 2017    

    uhmm i followed the steps and the model seems to still have the weird glitch thing.. i really need some help! thanks

    • Reggie_Dentmore Reggie_Dentmore
      September 2, 2017    

      What weird glitch thing? … do you mean the jaggie debris shapes that come out of nowhere around the models skirt, and such?… or what?

  9. Gary Gary
    June 23, 2017    

    Thank you so much for your tutorial~
    But i still have some problem : (…
    After that i loaded ray.x, it seems nothing happened…..
    Even if I waited for 10 minutes….

    • June 23, 2017    

      Do you load ray.x before or after applying main.fx to a model? Does MMD freeze after loading permanently, freeze for a short while and then continues to run with no visible changes, or doesn’t react at all? If you have a stage that covers the background and/or “background->black background” menu setting turned on, remove both and see if loading ray.x alone turns the background from white to black.

    • Reggie_Dentmore Reggie_Dentmore
      June 24, 2017    

      Gary, I, too, have a long pause where MMD seems to lock-up… several minutes… six or ten minutes?… but after waiting so long that I give-up, my system recovers and the effect works. I am running an old Dell XP Pro SP3 system, Intel Pentium duo-core 3.40GHz processor, with an ATI Radeon HD 4650 graphics card… and it gets the job done. The Raycast effect is computer-intensive!… you may just have to “wait” while your system does the math… or, maybe, the effect will not run on your machine.

  10. Alice Alice
    June 17, 2017    

    Hello, everything seems to work fine, until I try and apply a material shader, the part of the model I applied it to goes transparent

    I have had this problem with all versions of the shader, I don’t know if I’m doing something wrong, or I just can’t use the shader…

    I would really appreciate some help, and I’m terribly sorry if I am indeed just doing something wrong, thank you.

    • June 17, 2017    

      How do you proceed to apply material shaders? Did you apply them in the “Main” or “MaterialMap” tab of Effect Mapping panel?

      • Alice Alice
        June 18, 2017    

        Main, I believe? On The model.

        • June 18, 2017    

          Well, here’s your reason. Material map shaders should be applied through Material Map tab.

          • Alice Alice
            June 18, 2017    

            Oh, really? I didn’t hear anything about that, haha- I’m very sorry, and thank you.

  11. eowyn najwa eowyn najwa
    May 25, 2017    

    how do i use the direct light?? it doesn’t change anything

    • May 25, 2017    

      First, set R+, G+, and B+ sliders to some non-zero value (you will see model’s lightning change immediately if you look at her *back*). You may also change light’s intensity with Intensity+ and Intensity- sliders, but until you set up color sliders, it won’t work. Then use DirectionalLight’s *bones* to change light’s direction. The simplest way is to rotate the light with motherbone’s angle controls, hiding the model itself where it wouldn’t be seen, but using other bones you can have more complex and nice lightning.

  12. Ko Ko
    May 18, 2017    

    Hi! I just wanted to ask a fast question. Perhaps I missed it, I read this article a few times to double check, but I tried following this when I was first learning to use Raycast and it kind of threw me off because the lighting files felt really convoluted.

    I went back to it and used the tutorial that came with Raycast, and found out that I should have been going to the EnvLight tab and changing the effect on the skybox to “/Skyboxname/skylighting_hrd.fx”. I found that it instantly made everything look very good and lit up.

    With the context out of the way, was there a particular reason for leaving that out? I greatly apologize if I somehow missed it!

    • Ko Ko
      May 18, 2017    

      *Skylighting_hdr…. Oops!

    • May 18, 2017    

      Just an omission, probably. We all learn as we go, experimenting and overcoming failings. Thanks for pointing it out!

    • Mindslash Mindslash
      August 3, 2017    

      It depends on your computer if you can use the Skylighting_hdr.fx file or not. I can’t use it at all, so I’m stuck.

  13. daniel daniel
    May 11, 2017    

    hi when you use ray, the model shadow dissapear. how to fix this? i have seen many video with ray but the model still has shadow…

    • May 11, 2017    

      1) turn off “display ground shadow” option and only use the “real” shadow engine, 2) only use .pmd/.pmx based stages and not .x based ones. ATM I haven’t found a way for real shadows to work on .x accessories with ray on, but I’ll keep looking.

      • daniel daniel
        May 12, 2017    

        thanks for the answer and sorry how to use “real” shadow engine. i am kind of newbie about that… :)

        • May 13, 2017    

          Well, the article I mentioned describes that. Basically, “real” shadows is what is turned on when you turn off “ground shadows” option, which produces a bit more smooth contour (and is faster to render), but has very limited functionality. Normally, you have to switch “shadow” for every visible .x accessory in Accessory Manipulation Panel to make it work on them… unfortunately, Rayshader overrides that, so you better limit yourself to .pmd stages (you can convert .x stages to .pmd using PMDE, though). Just try to use the LearnMMD stage with Ray and you’ll see that it works.

          I also found that if you manually set same .fx scripts on the accessory in MME panel’s MaterialMap and DepthMap tabs that are loaded by default on the main model, it produces sort of a shadow as well, but compared to shadows on .pmd models, it’s rather bleak.

          • daniel daniel
            May 13, 2017    

            thanks for the answer dude :)

  14. MMD-FAn MMD-FAn
    April 16, 2017    

    Thank you so much for your tutorial! :)

    • GloriaTheAnimator GloriaTheAnimator
      April 21, 2017    

      no problem ^-^

  15. Mindslash Mindslash
    April 2, 2017    

    For those who want to use this effect, BE CAREFUL. It’s VERY heavy.

    • GloriaTheAnimator GloriaTheAnimator
      April 21, 2017    

      yes it is pretty heavy

Leave a Reply

Your email address will not be published. Required fields are marked *

Download the latest version of MMD MikuMikuDance! Step-by-step instructions to help you make an MMD Music Video! bo-beep-bo-beep! LearnMMD's Step-by-Step MMD instructions for MikuMikuDance!

MMD Tutorials:


Really Learn MMD as you face the 15-second Animation Challenge!

Visit LearnMMD.com on Facebook!