From the course: 3ds Max: Tips, Tricks and Techniques

Unlock this course with a free trial

Join today to access over 22,400 courses taught by industry experts.

Managing OSL file assets and paths

Managing OSL file assets and paths - 3ds Max Tutorial

From the course: 3ds Max: Tips, Tricks and Techniques

Managing OSL file assets and paths

on the basics of Open Shading Language in 3ds Max. We will now save the OSL code out to an external document. This allows us to link to a file, share that file among users and scenes, and also make the map visible in the Material Map Browser. I've got the material editor open, and I'm displaying the Material Map Browser from the tools menu here. I've got a version of the Simplex noise map that we created over the past few exercises. This version has a new input parameter, the iteration phase offset. Its purpose is to break up the pattern a little bit more and give us more options for our directing the look or characteristics of the texture. Let's open up the code editor, click on the pencil icon, and we can see that I've added a new float input parameter called iteration phase, and it's simply a numerical amount added to the phase with each successive iteration. Scrolling down a bit into the statements section, we see that I've added a new variable current phase, and I've set that…

Contents