Darryl Johnson talked a little bit about the way he works with Megascans. Learn how to use, setup and render these assets for CGI.
My name is Darryl Johnson. I am an artist and pipeline manager for Quixel’s Megascans. I come from an automotive background working on car commercials as a 3D generalist back in Detroit. Since then, I have worked at Blur Studios as a scene assembler, and also at Blizzard as a lighter/compositor on the recent Overwatch cinematics. While at Blizzard I was exposed to Redshift and saw how fast and powerful a GPU renderer can be. Because of clean and speedy renders we were able to get more shots done in a short amount of time. I purchased Redshift soon after leaving Blizzard for personal work. Redshift requirements are not as high as people may think. Redshift uses GPUs to calculate and speed up renders. The bonus to this is you can mix and match GPUs to add to your rendering power. We live in a great time because these powerful GPUs have recently become a lot more affordable. The one thing to note for this project is that I used multiple 8k textures which will take time to cache and load into the scene. For this I have 32gb RAM. I also used a GTX 1080ti (Founder Edition) which brought my final render times down to 20-30 minutes
1. Importing Atlases using Bridge
Importing Atlases is a little bit different from importing assets, but not by much. The only difference is, instead of geometry being imported, it is the material that is imported into 3ds Max and loaded into the material editor.
I like to start off with a plane with 20×20 segments. After that, apply an “Edit Poly” to the plane.
2. Cutting out Atlases
This section can be done many different ways; I personally prefer to cut out my atlases by tracing the individual pieces using the opacity map, visible in viewport and with the cut tool in vertex mode. Note, I am using “Compact Material Editor”
4. To achieve a clean flow of polygons on my card I added a “Subdivide” modifier to the edit poly. I then adjust the “Size” in the parameters until the polygons are distributed evenly across the mesh. Depending on whether the card is going to be bent or standing up right, will determine whether this will be high or low poly.
After all the cards are cut out, make sure the cards are oriented in the correct direction it will be scattered. Forest Pack will use the pivot and direction to scatter the card.
3. Making Redshift Shader
Because I am using Redshift, I prefer to use the “Redshift Sprite” material. This handles my opacity maps inside the Redshift renderer.
Since my material is already loaded in the material editor, all we need to do is change the “Redshift Material” to a “Redshift Sprite”. When prompted about “Replace Material,” select “Keep old material as sub-material.” This way the shader that is already built by bridge will drive the “Redshift Sprite” material.
Under “Stencil” load the opacity map from the atlas here. This will stencil out any excess geometry that is in your card.
Go into the “Input Material” and disable or clear out the opacity map because “Redshift Sprite” stencil will be doing all the work.
From here, you can do some test renders to make sure the stencil and the shader are working correctly.
4. Customizing Foliage
Customizing the foliage with multiple variations is going to create a more unique composition when using Forest Pack to scatter. While this can be tedious work, the mileage you can get out of this process can be invaluable. After you are done setting up your atlases, I would highly recommend saving these out for future projects
5. Setting up Forest Pack
There are multiple methods for setting up Forest Pack. Some people like to use splines or maps to drive their systems. For this particular system, I chose to custom paint method. Forest Pack has the option to use a paint brush inside your viewport and paint where your would like your scattered objects to be placed. This was very useful for me because I had a static camera.
Click “Add new item” and change the template to “Custom Object.” After this, select the geo in your scene.
Click “Add multiple Custom Objects” and select from a list of geo in the scene.
After my geo is loaded, I immediately change or check these settings under the following rollouts:
6. Customizing Forest Pack
Now that I have my geo loaded and all my default setting set up, I can begin to scatter and customize my system’s look. (I will do test renders throughout this process to get a better visualization.)
[Paint] Will turn your cursor into a paintbrush to paint in custom Forest Pack.
[Erase] Will change your paintbrush into an eraser to remove already painted areas.
[Brush Options] You can adjust the brush size and falloff in this menu.
[Convert to Spline] This will convert the painted area into a spline. (This works well when I want to use the same painted area in a different system.)
When I feel like I have a high enough density, I do some test renders to find out which of my atlases stand out more than the others. This happens because some of my variations are so unique they stick out like a sore thumb. To cull them I will change their “Probability” under the “Geometry” rollout to a smaller value, like 1-5%. This will make that atlas feel unique in the scene without giving the scene a sense of repeating geometry.
When this is complete, I will tweak the settings under the “Transform” rollout.
– [Rotation] I will change the “Min/Max” on the “X” axis, so the atlases are facing different directions.
[Scale] I will change the “Min/Max” to get more scale variation.
[Mirroring] This will give me an extra amount of variation by mirroring some of the geo horizontally across the axis. (This works well in high density systems.)
At this point, I paint in the areas where I want to see a specific Forest Pack system. I want to note that you can add multiple “Paint Areas” to a single system. This step can take a while to get the look you want out of Forest Pack. Just to put it in perspective, I had almost 30 Forest Pack systems in my scene. Just like making variations to my atlas geo, I also do the same with my Forest Pack systems. For example, I sometimes change the color of my shader to appear dead or a lighter color. I also make systems just for a specific species of plant because that’s how it grows.
7. Fine Tuning
When it comes to fine tuning the Forest Pack for final, it can take some time to achieve. This is when artistry and problem solving comes into play. I say this because if you want to pull off a certain look whether it’s from reference or your own ideas, Forest Pack is a tool with dozens of ways to achieve your look. With that said, I would like you to take what I have done with my scene and add new tricks of your own. I am always finding new ways to use Forest Pack, and it’s pretty exciting when I do. I hope you enjoyed this tutorial and thanks for reading!