3ds Max Shaders for Stingray - Part 1 - Introduction

By
-
Login to Follow
-
Industry
  • Film & VFX
  • Games
  • Design Visualization
Subject
  • Modeling
  • Rendering
  • Shaders
  • Lighting
  • Lighting and Rendering
  • Workflow
Products
  • 3ds Max
  • Stingray
Skill Level
  • Intermediate
Duration
8 min

3ds Max Shaders for Stingray - Part 1 - Introduction

In this tutorial, you take a look at the scene you will be using and learn about standard material conversions.

Notes
  • Recorded in: 3ds Max 2017.1
  • This tutorial is intended for use with 3ds Max version 2017.1 Update or higher.

Transcript

00:00:06 --> 00:00:14
If you have used Stingray in conjunction with 3ds Max in the past, you may have been surprised at how 3ds Max materials carry over.

00:00:15 --> 00:00:20
At times, you find yourself missing bitmaps or sometimes complete material definitions.

00:00:21 --> 00:00:28
Let's explore these situations using this simple scene named Pier_start.max, showing a section of a pier.

00:00:29 --> 00:00:33
This scene is available for download using the link found in this movie description section.
a
00:00:34 --> 00:00:43
The idea is to prep a scene in 3ds Max so that when exported to Stingray, all transferred materials appear exactly as they should in Stingray.

00:00:44 --> 00:00:52
This includes all properly defined channels such as maps for Color, Normal and Roughness characteristics among others.

00:00:52 --> 00:00:59
Also, an animated material should transfer properly so that it can be viewed in real-time in Stingray.

00:01:01 --> 00:01:06
At this time a default light gray material is applied to all objects in the 3ds Max scene.

00:01:07 --> 00:01:15
The objects themselves are pretty straightforward, mostly primitives and extruded shapes that have been manipulated using standard 3ds Max commands.

00:01:15 --> 00:01:24
All objects have been unwrapped and converted to Editable polys. An omni light has been added as a light source on top of the lamppost.

00:01:24 --> 00:01:32
When you consider building materials for a scene, your workflow is often dictated by your personal choices as well as the rendering engine you use.

00:01:33 --> 00:01:40
However, if your goal is to output the scene to Stingray, then you need to be careful in planning your materials.

00:01:40 --> 00:01:45
Material types like Arch & Design and Physical materials do not carry over too well.

00:01:46 --> 00:01:53
The Scanline Standard material works up to a point, but you will inevitably have to make corrections in Stingray.

00:01:54 --> 00:02:00
The best way is to work with DirectX Shaders, which work the same way in 3ds Max and in Stingray.

00:02:01 --> 00:02:02
Let's experiment a bit:

00:02:03 --> 00:02:07
Select all objects and Shift+Move them to the side to create a copy.

00:02:08 --> 00:02:15
You will be creating two sets of materials, one based on the Scanline Standard Material, the other on the newer Physical Material type.

00:02:16 --> 00:02:22
This will give you a good idea of what to expect when you go into Stingray. We'll play with the DirectX Shader a little later.

00:02:23 --> 00:02:29
Press M to go to the Slate Material Editor. There is a number of PBR bitmaps shown as nodes.

00:02:30 --> 00:02:39
These were generated to cater for Normal, Roughness and Occlusion maps among others as befits Physically Based Rendering textures.

00:02:39 --> 00:02:44
I'll discuss these and how they were created in a follow-up movie in this tutorial series.

00:02:44 --> 00:02:50
For now, let us create a Physical material and a Standard material and hook these textures to them.

00:02:51 --> 00:03:01
Start with the Physical Material. Create a new one in the Editor and rename it Pier_PM, PM for Physical Material.

00:03:02 --> 00:03:07
Hook the color image to its Base Color map and apply it to the first dock.

00:03:08 --> 00:03:15
You can also apply it to the lamp post but not to the globe itself, this requires a different material.

00:03:16 --> 00:03:23
You also want to set this material to Realistic Display in the viewport, that's the second icon in the flyout.

00:03:26 --> 00:03:38
Next, drag the normal map's output and add a Normal Bump map, and hook that to the material's Bump channel.

00:03:39 --> 00:03:44
Ultimately, you want to hook the Specular map to the Reflectivity channel,

00:03:45 --> 00:03:49
and also the Roughness and Metal maps to their respective channels as well.

00:03:50 --> 00:03:55
You can even use the Roughness map in the Reflection Color Map channel as well.

00:03:56 --> 00:04:01
Note that there is no channel for the Ambient Occlusion map, so we'll leave that alone for now.

00:04:02 --> 00:04:07
Next create a Standard material and repeat the exercise,

00:04:11 --> 00:04:16
using all textures except the Metal and Ambient Occlusion maps.

00:04:24 --> 00:04:29
Rename the material: Pier_SM, SM for Standard Material.

00:04:30 --> 00:04:33
Apply the new material to the second dock,

00:04:38 --> 00:04:40
and make it visible in the viewport.

00:04:44 --> 00:04:47
At this point, the two docks seem fairly identical.

00:04:48 --> 00:04:51
Let's see how they translate to Stingray.

00:04:51 --> 00:04:55
Start Stingray and create a new Basic project.

00:04:56 --> 00:05:06
Choose a folder for it. In my case, I have a folder named Stingray_PRJs on my D_Drive, I'll just create a subfolder named "DX_Shader" in it.

00:05:10 --> 00:05:17
Give your project a name, such as "Pier_test" and place it in your working folder.

00:05:23 --> 00:05:28
Go back to 3ds Max and select the first dock with the Physical Material applied.

00:05:28 --> 00:05:33
Select the components that make the dock, you don't need the lamppost for now.

00:05:34 --> 00:05:37
Using the Stingray menu, choose Send Selection.

00:05:38 --> 00:05:47
You are prompted to save an .fbx file in the Stingray project folder. I usually like to save 3ds Max assets in the content subfolder.

00:05:47 --> 00:05:52
Name the file Dock_PM and click Save.

00:05:52 --> 00:06:00
When prompted, choose the options you want to use. I personally like to organize materials and textures in their own folders.

00:06:00 --> 00:06:03
Click the Import button when done.

00:06:03 --> 00:06:08
Repeat the procedure for the second dock, the one with the Standard material.

00:06:12 --> 00:06:15
Name it Dock_SM.

00:06:21 --> 00:06:29
Back in Stingray, go to the content folder and drag the two docks into the scene.

00:06:30 --> 00:06:35
Zero out their positions so they appear in the same spot as they were in 3ds Max.

00:06:42 --> 00:06:49
Note that the first dock with the Physical Material applied didn't convert too well at all as none of the bitmaps are visible.

00:06:49 --> 00:06:57
If you select it and go to its material resource (Pier_PM), you'll notice that it was converted into a Stingray Shader.

00:06:58 --> 00:07:06
The conversion however, did not take into account the various bitmaps that defined the Physical material, so you would need to redefine these in Stingray.

00:07:07 --> 00:07:09
That's a bit of a redundancy.

00:07:09 --> 00:07:16
Now select the dock with the Standard material (Pier_SM) and go to its material resource.

00:07:17 --> 00:07:23
It too, was converted into a Stingray shader but only the base color and the normal map came through.

00:07:24 --> 00:07:30
Again additional work is required in Stingray to redefine this shader the way it was set in 3ds Max.

00:07:30 --> 00:07:40
For a one-to-one seamless interoperability, it is best to build your Stingray shaders in 3ds Max, to make sure that any conversion is totally flawless.

00:07:40 --> 00:07:42
This is what you learn to do next.
Posted By
Tags
  • 3ds Max
  • Stingray
  • Modeling
  • Rendering
  • Shaders
  • Lighting
  • Lighting and Rendering
  • Workflow
1 Comment
To post a comment please login or register
| 1 year ago
Hi, i'm starting with Stingray but in the dropdown list of DirectX shader, i Don't have Stingray. I just have HLSL File, Shader FX and Interactive. Stingray is installed on my computer. Can you help me ? Thanks
*Save $66 per month on Autodesk's Suggested Retail Price (SRP) when purchasing 1 year term 3ds Max or Maya subscription.