I am so proud to call myself good friends with Meng Wang. He is an insanely talented sculptor at Ringling College: by far the greatest in the school when it comes to anatomy and the human body. Recently, he posted his final senior thesis, a 3-person trailer project pitting vikings against elves... in space. The idea is so Gabriel!
I helped my friend figure out the viking character's materials and some of the holograms on the opening scene. I also helped with experimenting surfaces for the ship, and experiments with the lighting. I managed to recreate what looked like a NASA Space Shuttle receiving plenty of sunlight with stark shadows and almost no indirect illumination at all, but it looked almost too realistic and didn't fit with the darker themes of the project. I also saw early footage of this trailer and suggested the camera move slower to heighten the sense of scale. Cameras have to move very fast around a large object if you want to swing around it. In real life, that kind of fast movement is impossible, and the point of such movement is not to convey breakneck speed, so the end result is it just makes the objects seem much smaller than they truly are. But slower movements and lower FOVs seem much more epic. This trailer also looks amazing when fully lit.
I am so proud of my good friend. I wish him all the best.
Just a simple graphic for learning piano scales. Enjoy!
Note: I showed this to a friend who studied music theory and they said it was wrong. All wrong. The way scales work they can be in different keys, so the same scale can be done a number of different ways. But I've gotten some very good sounds out of it. Not being trained myself, I found it quite useful... but yeah, this is a disclaimer. Scales don't really work like this.
The Perfect Tile System is getting some special additions: home content! The simple home (which is in no way finished) features a new preset called "Advanced Bricks" with a mix of Sun directions and custom directions for POM shadows, and some wooden paneling. There's also new content, like a rocking chair, an Indian-styled glass table, some artwork, and interesting shaders!
A lot of the home content uses clear coat shading models and variation in metallic rendering. The reasons for this is a lot of wood finishes and surfaces for home products often have a slight metallic sheen, giving them an interesting color.
I also added some blueprints to help with the creation of any home. The lights are controlled by switches you can place on the wall. Just place the lights, place the switches, hook the lights to the switches, and you can start toggling them on and off! You can also adjust the length of the cable that comes down from the ceiling and toggle between covered and uncovered lamps.
The new shaders look fantastic for a home setting. The paint shader looks particularly stunning, appearing just like an acrylic or oil painting with a nice semi-gloss varnish. I hope to eventually have an easy picture frame blueprint to avoid the work of having to manually scale individual pieces. Enjoy!
Lighting was a huge component of this project. The pointlights I used around the spots where the sun hit had very large indirect intensities and very low direct intensities. This allowed light to flood the room. I also used spotlights to direct the light in the direction of bounce off the floors, so along with some soft light bounces, you also get more directional lighting as well.
Hallway lights can be turned on to show off the IES profiles...
...or off to let the soft bounce lighting take over!
The paint shader looks fantastic! My mother said she wants to live in this house. I guess that's a sign that I'm doing something right. The color scheme for the whole home is very warm with green accents, and I found that sticking to a scheme works better than breaking away from it. Hopefully this painting will have a frame later.
Glass shader took a while to get right. This one uses a combination of forward shading and GGX specular with metallic rendering. I opted for an additive model because it brightens the scene the way translucent glass does. And yes, the glass does cast a shadow on the floor.
Along with excellent indirect lighting, the post processes makes the scene. I use a nice, soft bloom with a lower threshold, constrained the adaption a little to allow the light to brighten the scene, and I included Ambient Occlusion to aid with the shadowing in corners. Home lighting is all about that indirect lighting, and the post process needs to aid that.
In an earlier post, I showed how to make caustics with a material function. This is the light function method. This system functions much in the same way the earlier one did, except instead of world position determining the size of the caustics, I used a texture coordinate, and since pixel depth is not available to light function materials, I used the distance between the absolute world position and camera position. There is a second directional light in this scene which does not cast dynamic lighting or shadows, but projects the caustics function into the world. This method respects all material qualities and there is the capability of using both shadow maps and dynamic shadows to improve the quality of the function. However, light functions do not support colored textures (I believe the performance benefit comes from handling most functions using 1-vectors as opposed to RGB 3-vectors), so the caustics are completely desaturated here.
Aside from the color issue, this method supports all the functions of the previous caustics system: the texture blurs and fades out as it approaches the bottom of the water. The caustics are mapped and aligned with the directional light as if it has been cast from the sun. And it even cuts off at the water level! On top of all that, this method also respects the shadow environment and surface properties (color, metallic, roughness, etc). This is the proper way to handle caustics in UE4. The light function uses 85 instructions.
I also used the material function method to shade the particles in the water.
This caustics texture was made with the free caustics generator provided with Allegorithmic's Substance Player. The player is free as well. The distortion is provided by a simple noise texture converted to a normal map. I provided the assets below. Please note if you wish to use a texture for the light function, flag the compression as a Grayscale image. This will use the same amount of memory as a standard texture but improve the quality by decompressing the texture. Because the caustics function relies heavily on the quality of the mipmaps, and to eliminate tiling, it is a much better idea to make sure the texture is large enough so that accurate mipmaps can be produced. Alternatively, you can also hide the texture in one of the channels of a larger mask texture to save memory.
I may have figured out a (somewhat) cheap method to get realistic caustics underwater in UE4. This method is all done purely within materials and requires no lights. The caustics rendering itself only takes 30 instructions, and depending on how you shade it, anywhere from an extra 0-20 instructions.
This technique uses a light vector to correctly planar map a panning image of caustics. The shimmering effect is then provided through a noise normal map distorting the UVs. The caustics will map on both sides of an object's normals, so they have to be shaded with either Phong or GGX specular and Lambertian shading.
The Caustics texture was generated from a free plugin provided by Allegorithmic with their Substance Player. The texture has chromatic aberration (colors), and plenty of detail and depth. The function also uses the exposed Mip levels of the texture to blur and "scatter" it based off of its depth in the water. Close to the shore, the caustics are crisp and clear. Deeper down, they become blurry and less noticeable. It automatically cuts off the caustics rendering above the water as well.
As an added bonus, because caustics use the World Position nodes to map itself onto objects, you get the transmission of the caustics through the surface and onto the other side for free. To make translucent grass, you don't even need to bother shading it! Unlit grass can look too even without the GI to differentiate itself, so for this demo I used the Masked/Two Sided Foliage shading model. A custom Mip function means you can also make the caustics blur more in the distance as a cheap way of showing scattering in the water, though I did use proper depth of field post process in the demo.
The Caustics function is automatically linked up to a Material Parameter Collection, so when certain properties are adjusted (like the depth of the caustics blurring effect, or the intensity), those values change for all of the models where the caustics appear.
Pros:
Cheapest way to render underwater caustics (does not require complicating entire scene through the use of a light function)
Automatically respects the direction of sunlight
Mip level adjustments can scatter and blur caustics into water based on depth (extremely cheap feature, and very convincing)
Ability to use forward custom shading that can be adapted to many uses and shading techniques (Phong, Blinn, Beckerman, Cook-Torr, or GGX + Lambertian diffuse, and transmission)
Free transmission for grass and plants (more complex subsurface scattering can be simulated through a more interesting Mip adjustment)
Colorful chromatic aberration (light functions currently do not support colored textures, and post process applies evenly to the entire scene)
Can be adjusted per-object and universally through individual material parameters and collection parameters
Cons:
Does not respect surface properties or UE4's lighting renderer. Because the caustics are sitting on top of UE4's lighting, not integrated as a light function would be, this material mapping function method does not respect any surface properties and requires its shading to be handled separately. Any Lambertian or GGX specular lighting must be applied separately, nearly doubling the shading work.
Alternatively, you can render objects as unlit to save greatly on instructions, but at the cost of the GI, shadow environment, and reflection environment. For products not requiring too much power, rendering unlit with all light being supplied by the caustics is definitely the cheapest option to render caustics at all. Fully rough materials can also work.
Does not respect shadow environment, so areas that should be shaded appear to have the caustics effect. This can be mitigated through the use of textures or vertex painting, but it would be more ideal to have the caustics respect the built-in shadow environment.
Must be applied manually to all materials requiring it
Roughness maps - Now you can finally use the full range of PBR shading in UE4!
Independant roughness TM - Along with detail textures, you can also specify roughness variation amount per-tile.
Ryan B’s POM with shadows - New POM calculation allows you to use shadows and direction
Sun Direction material parameter collection and blueprint - Allows you to pull sun direction from the directional light in level for accurate POM shadow direction
Colored Tile Maps - Tile maps can now be colored, allowing you to manually color individual tiles with the full range of RGB values and colors
Tiling in world space - You can map the system in XYZ coordinates so it works flat on a wall, floor, or ceiling, and tiles seamlessly across multiple meshes, even if UVs are not set up on them
Fixed bug - POM disabled local tiling
Fixed bug - Parallax/Iterative caused displacement to tile incorrectly
Toggle for Metallic shader - Previously set to on all the time
Toggle for cheaper gamma correction - Previously set to on all the time
Optimum Maps - Use individual channels of one texture map for all areas that used to be handled by the Tile Maps. Can save draw calls on PS4/OpenGL systems, but wastes more memory (Shared samplers are still preferred for DirectX 11 systems)