3ds Max 2022
by: Brian Chapman
Creating an HDRI Loader Using Maxscript
T
his month, we’ll introduce how we can use Maxscript to create an interface to work with HDRI environments and the Arnold renderer built into 3Ds Max. We use HDR images to help achieve realistic lighting in 3D environments for several years. Users often collect several of them to help with look development and final rendering. Having quick access to these files and manipulating them helps users focus on the shot rather than repeating mundane and straightforward tasks.
Let’s begin with the basic elements we’ll need to build our interface. See Figure 1 for a few of the elements we’ll be discussing. I assigned numbers to elements we’ll be discussing throughout the article. We’ll need to set our scene up with the Arnold renderer and HDRI environment for this exercise. Since this is a customization article, which implies more advanced skill is required, we assume you are familiar with those specific processes. So, let’s begin building our interface. The simplest way to review which values we can manipulate with Maxscript for an HDRI image is to review the code used to build the OSL HDRI node. As you can see in Figure 1, the number 1 represents the HDRI node. With the HDRI node selected, we can toggle the options marked with the number 2. This step will allow us to select the pencil icon, which will open the OSL editor to see the code. DO NOT EDIT THIS CODE. Be very careful when working in this environment.
Figure 1
18
AUGIWorld Magazine | October 2021 augi.com