Skip to content
Learn MikuMikuDance – MMD Tutorials – Free 3D Animation Software

Learn MikuMikuDance – MMD Tutorials – Free 3D Animation Software

Download Free Animation Software – Let's Learn How to Do Everything!

  • Step-by-Step MMD instructions
  • DOWNLOADS
  • Troubleshoot, Fix MMD
  • Site Contents
  • Reggie Replies Q&A
  • Homework!
  • What IS MMD?
    • Download MikuMikuDance Newest Latest Version of MMD
  • “HOW TO”
    • Raycast RAY-MMD Effect Tutorials
  • BONUS PAGES
    • Why convert PMD models to PMX?
  • HALL of CHAMPIONS
  • Tutorial Categories
  • About
    • Privacy Policy
  • Toggle search form
  • Copy and Paste for Repetitive Motion in MikuMikuDance Functions-Copy-Paste-Expand
  • LearnMMD Auditorium Stage now includes 19 Colors of Drapes! Dummy Bones
  • PMDE Parts Links help you create your MMD Selfie NOKO2
  • Arrow MMD Animation Video Finished in only Six Weeks! "the making of" my video
  • The Easiest Way To Add Hair Physics in PMX Editor! BigPerryman
  • Ray-MMD shading Mech-Girls!
    Ray-MMD Shading Mech Girls brings those beauties to life! MMD Tutorials
  • MikuMikuDance Home Page VPVP is worth a visit! Intro to MikuMikuDance
  • Visit Krystal-Sakura on Deviant Art to get "Sparkly Eyes" for MMD 7.39
    Change a Model’s Eyes Using MMD Eye Packs in MikuMikuDance NOKO2
Ray-MMD Painting with light!

Ray-MMD: The Art of painting with Light

Posted on July 13, 2019August 28, 2019 By Trackdancer 5 Comments on Ray-MMD: The Art of painting with Light

Painting with light using Ray-MMD, Raycast, yield s beautiful results!

A feature article on LearnMMD by Trackdancer2015!Natural sunlight as interpreted by MMD is not white light. MMD by default uses a neutral grey light which emulates the photographic standard of mid-day sunlight in a temperate climate.

But why is this important?

If your objective is to create photo-real images using MMD, this is of paramount importance, especially when used in conjunction with effects like Ray-MMD.

Ray-MMD: The Art of painting with Light

But, before we even get to the fine details, the most important thing is to understand how the default lighting effect works and what happens when Ray-MMD is added. If you understand these two key concepts, you will be able to render almost any scene under any type of lighting conditions.

So let us look at Kanon, our model for this article, posed and rendered using just the default lighting system.

Pay close attention to what is happening in this image. It is key in fully understanding and mastering the MMD lighting system. Bear in mind that the render only uses the default lighting set up. Look very closely at how the light works on the Kanon model. The skin tones especially are not one homogeneous color but works on a scale of light and dark tones. This is good as this is how real light works on objects in real life. If you look at your arm for a moment, you will see the exact same type of light play at work with one major exception: the default lighting engine used by MMD does not factor in ambient lighting.

In the real world, objects, including ourselves, are illuminated by direct light sources as well as reflected and ambient light sources. Basic lighting systems in 3D programs do not generally factor in the effect of ambient light sources. This is because of the huge amount of calculations necessary which will tax the capabilities of most graphic cards to their maximum potential and with most graphic cards, is not a workable solution as performance will be hugely negatively impacted.

For computers to generate photo-real imagery, the best systems use a method known as ray tracing. In a nutshell, these systems emulate how light works in a virtual world much like it works in the real world: it calculates how light falls directly on objects and how they are reflected back from one surface to another. This type of calculation is very slow and will not work for dynamic lighting systems where models need to move around such as in computer games and MMD.

This is why you need to use lighting augmentation systems such as Ray-MMD.

Painting with light…

What Ray-MMD actually does is exactly what is stated above; it factors in both light directly falling on surfaces as well as light reflected off surfaces but unlike a true ray tracing system, it uses an aggregate calculation system. It is rather crude but the method works and it is fast and results in very credible renders.

For Ray-MMD to work properly, it must have an environment to work with, it cannot just use  the default set up. Forget anything you may have read or learned about using Ray-MMD elsewhere on the Internet and especially on YouTube where claims are made that you can use the effect without a sky box. Ray-MMD sky boxes are special and are used as an integral part of the system in calculations. Anyone who claims otherwise does not know what they are talking about. But you may not always want the sky box to show and there is one actually provided for this purpose: Sky Hemisphere / sky with box.pmx

The image above is Kanon again with the sky box loaded as well as ray.x and ray_controller.pmx. The same MMD default lighting is used as before; also we have switched off anti-aliasing, the axis display as well as the default ground shadow. Here we have a very good illustration that shows exactly how Ray-MMD works.

For the moment, the system treats the Kanon model exactly as if she were just a part of the background. But notice how much smoother the lighting is overall and this is because the system has also factored in the environment immediately around her. However, it has not yet factored in the qualities of the materials that makes up her model, such as her skin, hair and clothing.

Different materials have different lighting behaviors. A piece of white tissue is not as reflective as a piece of white letter paper; plus it has more grains and other factors that helps us visually differentiate between the two. Ray-MMD materials which you add to the model’s parts tells the program exactly how each material reacts to light.

To make Ray-MMD react to, or rather, factor in Kanon we need to do two things:

  1. Add the Main.fx to her model to tell the system that her model needs to be accounted for as a major entity.
  2. Turn on the sky box lighting environment by adding skybox with lighting.fx to the sky box.

Once these have been added, Ray-MMD we will immediately see a dramatic difference in how she is rendered as shown below.

But to prove to you that what is being stated is absolutely accurate, for the moment, let us switch out the sky box using one with a much more colorful environment.

Because we have not specified specific materials to the Kanon model nor correctly set up the lighting environment, the full effect of using an environmental sky box might not immediately be apparent. But even a cursory examination of the image should reveal that the Kanon model has picked up some of the hues from the surrounding simulated environment.

After the material specifications have been applied the next step usually is to adjust the environmental lighting using the controls available via the sky box and ray_controller facial controls. These controls are used to set up the behavior of the lighting environment.

As there are other articles on this site that cover the applications of materials and how to tweak the environment; this will not be covered in this article. For our purposes, please look at the image below or at the top of the article as examples of what we have done. Note that although the materials specifications for both images are identical, the lighting environments are different. The top image uses a cooler approach wherein the image below uses a warmer scheme. We did it this way just so that you can see that we can actually “paint” with light. Similar set ups but very different, if subtle, outcomes.

This concept of painting with light is not new. Artists since at least the late Renaissance have been studying how light behaves on different types of scenes. The image below shows exactly the type of effect that classic artists were trying to achieve with pigments alone in trying to faithfully capture or recreate lighting in their scenes to create realistic imagery.

Victorian Era artists took the art of capturing lighting in paintings to a very high level to create an impression of the world based on how lights played on a scene. The classic art style as exampled here is part of a process that evolved from ideas that were first explored in Art during the Renaissance period.
Impressionist painters who created this art style towards the end of the 19th Century had a different approach. Rather than focusing on details, they used brush and paint to capture how lighting in our world is perceived through our eyes. BTW, this type of image was very “hi-tech” for its period and this example is roughly contemporary to the image above.

We on the other hand, with tools like 3D modeling programs such as MMD with Ray-MMD or similar effects, have at our hands, the means to completely control the lighting environment using “scientific” methods. Like artists of the past and a lesser extent photographers, using computer imagery tools we can also create any lighting situation we could choose to imagine or simulate, but arguably with much less effort.

The last image below uses exactly the same set up as the last picture of Kanon shown above. The only difference, is the angle of the shot.

In all honesty, setting up scenes in MMD using Ray-MMD is really stupidly simple; the real trick is getting the most out of it to create really powerful imagery. Neither do I pretend that what is presented here is even competitive to the works of the examples by the master works shown above, but to fully understand what I am trying to say here, please click on the thumb image below to see what the “whole” picture actually looks like.

The main point here is that in our modern era, with easy access to powerful render systems, even with anime girl models, one can achieve really impressive and meaningful results.

As always, thanks for reading.

CREDITS

Kanon model by Kakomiki

MMD 9.31

Ray-MMD 1.5.0

Art images were sourced from the websites linked to the images and displayed here under Fair Use guidelines.


– SEE BELOW for MORE MMD TUTORIALS…


— — —


– _ — –


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

More MMD Tutorials...

Ray-MMD environment controls create MMD dreamscape

Ray-MMD Nocturne... Ray-MMD environment controls create MMD dreamscape... One of the wonderful things about Ray-MMD is its ...read more

MMD Fill Lights Part 2 - (Ray-MMD)

MMD Fill Lights Part 2 - (Ray-MMD) Welcome back if you've read Part 1 of this ...read more

Ray-MMD Godrays... argggh!!!

Godrays created by Ray-MMD are awesome but they come at a price. Wherein, they're not ...read more

Ray-MMD Demonstration "Battle stations ... all hands on deck!!!"

This article will be a quick short one. Since there is a plethora of KanColle ...read more

Ray-MMD Shading Mech Girls brings those beauties to life!

Ray-MMD Shading Mech Girls... ... A Petite Kawaii Mech Girl Japanese anime have a lot of franchises to ...read more

RAY-MMD Technique: of Battleships and Fleet Girls

A couple of days ago, a fan of the Prinz Eugen character from the Azur ...read more

MMD Tutorials, Raycast Ray-MMD, Trackdancer2015

Post navigation

Previous Post: Download instant fight scene motion by Mahlazer
Next Post: PMXEditor PMXInfo Analyzing Optimizing MMD Models

Related Posts

  • Posing MMD Models: Anatomy Matters! BigPerryman
  • New Interpolation Curve Video was fun to make! "the making of" my video
  • Beamman Effects Page MMD Newbies Guide MMD Tutorials
  • Move the 3 .dll files from the MME Download folder into the main MMD Folder.
    Download MME v037 in English MMEffects for MMD MikuMikuDance MMD Tutorials
  • Making MMD Models Complicated Task with much to know! Making Models
  • Rio Carnival Miku TDA edit by shiro-nekovocaloid is a beautiful model for the MMD Model Adoration Slideshow video.
    Rio Carnival Miku is my latest MMD Model Adoration Slideshow video "the making of" my video

More Related Articles

Motion Reference Videos Available FREE Online Animation Resource
Cycles materials for textures model and nodes Cycles Materials For Textures in Blender: Nice Textures for MMD Fast! Blender
MME DiscoLightEX v003 effect now hosted by LearnMMD.com! Disco Lighting Effect
Making MikuMikuDance Original Animation Videos "the making of" my video
IrfanView captures single-frame images from Video AVI files! Irfanview Media Viewer
How To Recolor MikuMikuDance Models Without PMDE! Keep the Faith-MMD Credits/Sharing

Comments (5) on “Ray-MMD: The Art of painting with Light”

  1. rei says:
    February 9, 2022 at 4:28 pm

    and this gave absolutely no tips on how to REACH that setting. please guide us from point A to point B, not just show the before and after. “play with the settings” does not help one bit. this is not a tutorial, this is a showcase. as it is on learnmmd.com, it should be a tutorial.

    Reply
    1. Reggie_Dentmore says:
      February 9, 2022 at 5:09 pm

      Thanks for that note! We DO have many Raycast/Ray-MMD tutorials on LearnMMD.com… maybe one of those will help you… ?

      Reply
      1. rei says:
        February 10, 2022 at 2:30 am

        I’ve searched, but none of them actually truly help with getting the results displayed in this article. It’s not a personal jab at the website, I appreciate what you guys do… It’s more frustration with Trackdancer for posting a tutorial in name only.

        Reply
        1. Reggie_Dentmore says:
          February 10, 2022 at 8:44 pm

          Thank you for sticking with us at LearnMMD! … You can contact Trackdancer directly through his Deviant Art pages. … Be pleasant and proper and you will have good communication. Don’t point out that his tutorial wasn’t a tutorial… just ask him your questions. (If you bite at him, he tends to be offended.) “:o).

          Reply
  2. Sebastian says:
    March 14, 2020 at 7:03 pm

    Ray-MMD 1.5.0 – 11.1.2018.
    Ray-MMD 1.5.2 – 13.3.2018.

    Reply

Leave a Reply Cancel reply

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

Download the latest version of MikuMikuDance!
See the MMD Step-by-Step instructions page!
Learn how to make your own MMD motions!
LearnMMD.com
  • RAY-MMD: Haku’s crazy light show [PART 1] MME Effects Tutorials
  • Speech Synthesizer gives MMD Models a voice! Making Soundtracks
  • 966_DigitalRipple Effect splashes lots of color into your MMD video! 966_DigitalRipple
  • Build Your Own Stage For MMD Using SketchUp Google SketchUp and MMD
  • YouTube serves video playback quality to best suit your viewing-screen HD Videos in MMD
  • With some practice, Rin can dance the sample dance as well as Miku!
    There Can Be Frame Data Ghosts remaining after Deletion Making Smooth Motions
  • When you add background AVI files, you can motion trace!
    Loading Background AVI Files into MMD (2021 Edition) Add Background Pictures and AVI
  • Give the Animasa Teto Chimera a wing flapping motion in MMD 7.39
    Create Wing Flapping Motion for Teto Chimera MMD 7.39 Creating Motions

Copyright © 2022 Learn MikuMikuDance – MMD Tutorials – Free 3D Animation Software and Instructions..

Powered by PressBook Premium theme

Go to mobile version