• Skip to main content
  • Skip to footer

VFXstudy

Training for VFX and Motion Graphics with DaVinci Resolve & Fusion

  • Home
  • Tutorials
  • Courses
  • About
  • Register|Login
Advanced Shadow Extraction from 3D Renderer

Advanced Shadow Extraction from 3D Renderer

The Software Renderer and the OpenGL renderer both have their strengths. Sometimes you can even combine them both.

This tutorial started with a simple question: Can I get soft shadows from the OpenGL renderer? The Manual is clear: No.  The OpenGL renderer ignores transparency in the alpha channel when computing shadows. This is often annoying. For example, if you place green screen footage onto a 3D image plane, you only get a rectangular shadow from the image plane, ignoring the key.

The software renderer does it right, but it cannot calculate depth of field. That’s the strength of the OpenGL renderer. Of course, you can create depth of field as a 2D effect, but the most accurate version comes from 3D. It seems you have to choose: Shadow or Depth of Field – Software or OpenGL.

You can use both. In the tutorial, we extract the shadow from the software renderer and then project it back into 3D. Thereby we get a new 3D scene which has the shadows baked into the textures. Then we can render this scene with its accurate shadows through the OpenGL renderer.

Here is a summary of the basic steps – watch the video for all the details:

  1. Get a shadow pass from the software renderer: Take the difference from a render pass with shadow and one pass without.
  2. Create a greyscale image where everything is white, except the shadows.
  3. Project this image as a texture back into the scene.
  4. Catch the projection-texture and multiply it onto the original texture via a ReplaceMaterial node.
  5. Render the new scene from the ReplaceMaterial node.

Tags: 3D, Advanced, Compositing, Lighting, Rendering

Reader Interactions

Leave a Comment Cancel reply

You must be logged in to post a comment.

Footer CTA

  • Facebook
  • Instagram
  • YouTube
BMD Training Partner
  • Privacy Policy
  • Cookie Policy
  • Refund Policy
  • Terms and Conditions

© Copyright 2017-2025 VFXstudy.com

We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept All”, you consent to the use of ALL the cookies. However, you may visit "Cookie Settings" to provide a controlled consent. Learn more in our Privacy Policy and Cookie Policy
Cookie SettingsAccept All
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
_abck1 yearThis cookie is used to detect and defend when a client attempt to replay a cookie.This cookie manages the interaction with online bots and takes the appropriate actions.
bm_sz4 hoursThis cookie is set by the provider Akamai Bot Manager. This cookie is used to manage the interaction with the online bots. It also helps in fraud preventions
cookielawinfo-checkbox-advertisement1 yearSet by the GDPR Cookie Consent plugin, this cookie is used to record the user consent for the cookies in the "Advertisement" category .
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
CookieDurationDescription
_ga2 yearsThe _ga cookie, installed by Google Analytics, calculates visitor, session and campaign data and also keeps track of site usage for the site's analytics report. The cookie stores information anonymously and assigns a randomly generated number to recognize unique visitors.
_gat_gtag_UA_106803647_11 minuteSet by Google to distinguish users.
_gid1 dayInstalled by Google Analytics, _gid cookie stores information on how visitors use a website, while also creating an analytics report of the website's performance. Some of the data that are collected include the number of visitors, their source, and the pages they visit anonymously.
CONSENT2 yearsYouTube sets this cookie via embedded youtube-videos and registers anonymous statistical data.
vuid2 yearsVimeo installs this cookie to collect tracking information by setting a unique ID to embed videos to the website.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
CookieDurationDescription
IDE1 year 24 daysGoogle DoubleClick IDE cookies are used to store information about how the user uses the website to present them with relevant ads and according to the user profile.
NID6 monthsNID cookie, set by Google, is used for advertising purposes; to limit the number of times the user sees an ad, to mute unwanted ads, and to measure the effectiveness of ads.
test_cookie15 minutesThe test_cookie is set by doubleclick.net and is used to determine if the user's browser supports cookies.
VISITOR_INFO1_LIVE5 months 27 daysA cookie set by YouTube to measure bandwidth that determines whether the user gets the new or old player interface.
YSCsessionYSC cookie is set by Youtube and is used to track the views of embedded videos on Youtube pages.
yt-remote-connected-devicesneverYouTube sets this cookie to store the video preferences of the user using embedded YouTube video.
yt-remote-device-idneverYouTube sets this cookie to store the video preferences of the user using embedded YouTube video.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
CookieDurationDescription
_mcid1 yearNo description available.
ak_bmsc2 hoursNo description available.
S1 hourNo description available.
SAVE & ACCEPT
Powered by CookieYes Logo