1 - That’s unfortunate.
2 - I believe i mixed this one up. But thanks to your stream i understood how far shadows are working because i wasn’t aware of checking that box for the key light as well. The low resolution issue i was talking about was in fact happening by enabling “inset shadows” on the character and not the “cast cinematic shadow” as stated above (sorry my bad) because i read that it helps with high quality shadowing but it seems to do the opposite so i still don’t understand it.
Thanks again any tips from you are always appreciated!
This actually isn’t the intended functionality for them. What you’re suggesting is transitional lightmaps but lighting scenarios provide a way to have different lighting for the same map while using the same geometry. Transitional lightmaps would do the same but the idea behind these is for only one to be used at a time and swapped out at level changes or just as a separate lighting for the same level. Since all the lighting information get stored in a single build data file that could be a hitch in the load when they are switched, which makes them not usable for that type of feature. At least not with the current implementation. That could change in the future, though, but no plans currently that I’m aware of.
This next question is really broad and cannot be summed up in a single post or even example. it’s just not possible. As far as things to watch out for though:
Static Lighting is best for VR, but not open worlds or randomly generated levels.
Keep a check on your LM resolutions and texture memory. use the Statistics window I showed during the stream. keep in mind your target platform and performance over pretty is better in a lot of cases. Personally I’m more accepting of a few things that don’t look perfect over bad performance or mechanics of gameplay!
Mobile VR is much more limited than Desktop. Know the limitations and advantages of each platform and develop for those.
one idea I did have about randomly generated levels using at the very least the indirect lighting cache was to have a large shadow casting surface in a sub-level that you use to build lighting for. Since it’s a randomly generated level you may not know the entire layout BUT you would have a general idea of the play area that would be used. So with this method you get a hidden mesh that generates the lighting samples and can get some indirect lighting for these generated areas. This would probably work better for mobile where lighting is more limited than on desktop where dynamic lighting is not as big a concern. Just a thought I had but nothing I’ve tried practically.
Static Lighting is king here with good GI bakes.
Good UV layouts for lightmaps!
Good use of post process with Bloom, Color Grading, Auto Exposure control.
Kind of broad but these are areas that I think should be focused on. Grab a reference image and try your best to recreate it. Post Process is often under used in lighting situations to get everything else by just using lightmass. That’s a definitely wrong approach and everyone should use all the tools they have to bring it all together.
Sort of answering my own question above regarding “Dynamic inset shadows”. So if I check this on my character and then i go ahead and check the tickbox of the directional light to use this feature, it is basically in logic sort of what i need, as in the shadows (both self and cast) stay consistent on the character even though the camera moves far and out of cascades (as indicated in the doc) however it seems that the resolution of those shadows or “the dynamic moving shadow distance” of the inset feature seems locked to a lower res one? which is why it seems that it is of lower quality than a manually adjusted moving distance without the inset feature on.
Is there a way to adjust the inset shadow quality?
Sorry if i’m bombarding you with questions but i thought its an opportune moment to do so : ).
What I mean is exactly that - no smooth transition between scenarios. Imagine you walk around and it’s “morning”. Then after some time you go inside of a building, screen fades (or not) and lighting scenario switched to “day”, then screen fades out of black and when you go outside, it’s a day light. Rinse/repeat for however many lighting scenarios the level has. Since it’s not a smooth transition, player won’t “see” the hitch. And if scenarios can be async streamed, there should be minimal hitch when loading.
To control the bounce of light, as in the number of bounces, you can do this from the World Settings > Lightmass > Num of Bounces. Default is set to 3.
For reflection, just making good use of reflection captures and using the Reflection Environment visualization mode from the Viewport view modes can help you there. Also our documentation for how you should use reflections in your scene is helpful as well that you can find here: Reflection Environment | Unreal Engine Documentation
As for Refraction, with 4.13 wew have a new Refraction mode for larger surfaces like water without getting that offset that’s reading from offscreen. It’s called Pixel Normal Offset. You can find this in your Material properties under the Refraction tab.
Here is a comparison of the Index of Refraction (default) that works well for smaller objects and Pixel Normal Offset that works well for these larger flat surfaces.
For Mobile with LDR and HDR there are some differences for sure. I’m not sure that I’d be the best person to ask about consistency between the two because some of that comes down to using art techniques to get the same results or close to with HDR. I think this blog from UnrealEngine.com recently about Disc Jam’s lighting on Low and High end renderer is really good overview of what they achieved and some things they did to overcome this. It’s well worth a read! How Disc Jam Reached 60 fps on Intel Processor Graphics using Unreal Engine 4 - Unreal Engine
World composition and tiled landscapes in general are not ideal for baked lighting. The reason being, as you pointed out, is large file sizes! I’m not aware of any large open worlds that have ever used baked lighting because at that point your texture memory and draw calls for these will far outweigh using dynamic lighting that is optimized and refined for your world.
For something like this, I wouldn’t use a point light. They are more expensive than a spot light! This is where some faking can really come in handy to get the same effect at a lower cost. It looks like you’ve placed the spot light inside your bulb and then you get the light shining from inside geometry causing your artifacts.
The way I would fake it and likely some other people too! Use a Spot light below the bulb. Adjust your radius and attenuation to fit your needs. Use an inner radius smaller than your outter so that you get some night highlighting with more light focus directly below the light. The interior of your Light will still be darkened because it’s getting anything but bounce light at this point so there is where some faking comes in. If this isn’t already it’s own material element, make it one in your modeling program. The material that you have assigned here should have it’s brightness driven by an emissive color. Use your diffuse texture/color plugged into a multiply that has a constant value between 0 (no emissive) and X (higher gets brighter!) that then plugs into your Emissive Input. What this allows is for you to control that inner lights material and adjust according to your needs. If it’s something that needs to be turned on and off you can easily use Material Parameter Collection and control it via Blueprints so that it’s adjusted with your lights intensity.
I’m not sure these will be indepth but I’ll give you something. How about that?
This matters depending on what the end goal is. If it’s using the actors as Static then you have the cost of build time, texture draw calls, and texture memory. Some of this impact is dependent upon how large the lightmap textures are so you need to budget for the target platform and known your memory limiations and monitor texture memory accordingly! If it’s Movable then we’re talking about how many lights are affecting it at a given time and if these lights are also movable then you’re going to get more expensive because that’s the nature of dynamic lighting! It again comes down to knowing your target platform and profiling the scene for what works best. Lowering dynamic shadow quality is a way to make these dynamic shadows less expensive, but then you have lower quality shadowing.
I’ve got more things listed here than I covered in the stream, but largely avoiding seams with your modular assets comes down to designing your levels in a way that doesn’t over modularize and using tricks/other geometry to mask these seams that you would notice otherwise. Game development is often a bunch of smoke and mirrors!
The only time this situation you describe would be really useful would be for a Stationary Directional Light, but NOT for Stationary Spot or Point lights. I’ll explain that part in a second.
Stationary Directional Light - the Cascaded Shadow Maps have dynamic shadowing for all actors based on the dynamic shadow distnace you use starting out. Anything beyond that that is a Static Actor will have baked lighting. Depending on the CSM dynamic shadow distance you choose you would definitely want to keep that lightmap resolution lower for these other static actors. There’s no reason for them to have some really high value if you’re never going to see that quality and you’ll just be wasting texture memory. Granted lightmap textures use mipmapping as well so it won’t be like the full cost of the texture but still no sense in wasting where you don’t have to.
Stationary Point/Spot lights - Unlike the directional light not every actor within the radius of these lights will be lit dynamically. Everything is lit statically with baked lighting with exception of any movable actors! So this means that your lightmap resolutions here play a bigger role and if you need nicer baked shadowing you would use a higher lightmap resolution.
For ArchVis there is a subset of the community that always seems to suggest going to the BaseLightmass.ini file and making a ton of tweak. I’m in disagreement with this 100%. Just about any setting you would need to adjust is actually exposed to the World Settings > Lightmass.
So with Archvis being the beast that it is, you have a set of different standards to adhere to for your quality and what you want. Typically these may not be playable scenes and in some cases they will be. Some of the things below will greatly increase your build times but can have an impact on performance.
Higher Lightmap resolutions tend to work best here. You need the high quality bakes, but could be some trade off when using a smaller scale in the next setting I mention that allows you to work with lower lightmap resolutions. It’s not anything I’ve tested in a lot of practice but worth looking into for archvis needs
World Setting > Lightmass > Static Lighting Level Scale. (NOT FOR EVERYONE!!!), Ideally this setting is better used in practical cases where your scale of your levels are using something other than CM and you don’t need the higher quality of lightmaps. Think like a flying game or racing game where you’re passing these things by so quickly it just doesn’t matter. However, ArchVis tends to go the other way and use a lower value to get higher quality bakes. This will significantly (NO JOKE!) increase your build times.
Indirect Lighting Quality. Increase this to get better results, but due to artifacts you may need to lower the Indirect lIghting Smoothness. I don’t have any specific numbers here. So I can really only suggest to try out some test scenes and see what works best for you!
Compressed Lightmaps - You can disable this and it can help remove some compression artifacts, BUT it will increase your texture memory size on disc by up to 4x! For ArchVis situations where you just need a render and not something that is playable this may work better for your needs. If the level needs to be playable you’ll need to worry about your texture budget for the project and you may have longer load times that may take a moment for all the lightmaps to stream in properly. Otherwise you get this muddy looking lighitng when you load straight into the level where it hasn’t fully loaded everything.
I didn’t cover them yesterday but did mention them briefly. There isn’t any documentation on them currently, though. Lightmass Portals. You can drag these in from the Modes panel. Place these in your open areas where light can pour in. These work with Lightmass Importance Volumes that tell the lighting where an opening is and to focus more lighting photons there. This is a long thread but DanielW added Lightmass Portals and improved Lightmass because of this thread. Lets make Lightmass EPIC (and understandable) - Architectural and Design Visualization - Unreal Engine Forums
VR Specific things:
Dynamic Lighting is expensive! Use Static Lighting where you can. Fake effects when you can, even lighting! We did this with Bullet Train where the lighting passing through the trains windows were just a material trick. I think RyanB covered this in a training stream about Bullet Train’s rendering tricks a while back!
Keep an eye on your texture memory usage and profile often!
We now have Forward Rendering. It has has some performance gains for RoboRecall but don’t expect to just migrate a project and it be automatically better. You will have to optimize for your benefits, but to some degree I think you should see some performance gain regardless out the gate. Just no promises!
If you’re using the Orthographic View mode for the Camera be aware that not all SM5 fatures are supported. I rarely use Orthographic so i don’t know to what extent specifically lighting features are supported/unsupported currently. I don’t know that I have any real specific tips for topdown games that can’t be applied from first/third person necessarily. I would probably use more material tricks thought since you’re limited on view angle and don’t need to worry about some things, I guess. Sorry I don’t have anything more specific really.
Not entirely sure what you’re getting at here. If you have an example with screenshot that would probably be more helpful. Maybe make an answerHub post and link it back here so it doesn’t get lost in this thread. Overall though just generally speaking you can use post process for ambient occlusion adjustments, you have some options in the skylight depending on the mobility you’re using, and you have the option of using baked in ambient occlusion via lightmass which is controlled via the World Settings > Lightmass.
A really good stream we did for Enterprise a while back with Francois talked about some of these that we used on the McLaren Project. With that we didn’t really use anything out of the realm of our normal lighting techniques and methods. We added the Dual-Normals option for materials as an opt-in feature in the Project settings.
Jerome Platteaux and Brian Karis did a stream around Rendering Hair/Eyes and Lighting a character (Sparrow) from Paragon that was really good. Jerome is an awesome lighting artist and very quickly recreated the lighting techniques he used for the character reveal trailers when Paragon was announced.
Lighting Channels is also a good way to get some nice rim lighting for your products without affecting the rest of the scene. I know this isn’t much but maybe it’ll help.
I don’t really get to play a lot of games but this one stands out in my mind for some great nighttime atmospheric lighting. The eye-adapation was spot on too! There are plenty of other games that look good as well that I’ve not yet personally played like Gears of War 4 looks amazing in the videos.
Ofcourse I don’t want to leave out Epic’s own games like Paragon and Fortnite have some really good lighting as well, especially Paragon when you start moving into this PBR and photo realistic design when using precomputed lighting and dynamic lighting techniques. Capsule Shadows are used for the characters there so that we get the soft shadowing for our characters where there isn’t any direct lighting.
For Fortnite this is a good example of dynamic lighting techniques since it’s got some randomly generated levels where precomputed lighting doesn’t make sense. We also use Distance Field lighting techniques in this one with CSM shadowing. They’re good for checking out and seeing how to discern these types of techniques from the videos or by playing the games. Also it’s stylized so you get a different approach to lighting that than you would something that is more realistic like Paragon.
Anyways, enough of my going on here. Check them all out and I think you’ll be plesantly surprised with lighting in any of these games!
Hey guys, it’s me or this stream is not on your youtube channel? Twitch works really bad for past streams in my country. Another thing, I’m kinda disappointed about how the “modular assets light seams!” have been addressed, I hope in the future you will find a way to group or tag meshes that have to look contiguos. For those who can’t follow the guidelines provided, because they are not useful in their situation, I suggest to follow these simple rules:
Snap your UV isle to a “target lightmap resolution -1” grid like 63x63; Quick Tip #20 : Lightmapping Pt. 2 - YouTube
Lower as much as possible “static lighting level scale” even to 0,1; you can leave the indirect lighting quality alone cause it will only accentuate the problem;
About leaking from underneath a wall be sure to align walls to the lightmap pixels borders (clearly the floor’s LM pixels should be wider than your walls) and if you can remove skylight and use reflection panels instead. Making a floor plane the same size as your interior is a good advice where applicable.
We stream to both, but have to cut out the start music and add description info to the youtube archive. The main reason we don’t have chat live on youtube is that the moderation tools were too rough and we had a lot of out of control spamming happening.
I’m currently re-evaluating how we do our streams, since Facebook and Beam are also options.
That’s always possible! So much that cannot be covered in a single stream. I think the idea for any future streams would be not just some of these common tips or features that some may not know about would be to solely focus around something like Static Lighting only or Dynamic Lighting only and maybe even more specialized than that for certain types of setups.
Not being a lighting artist myself and simply knowning a ton about the feature makes it really difficult to tread this fine line of showing off the system without being pummeled with artistic questions about lighting. There is always a lot to go over without it just being artistic lighting design too.
The three videos that are currently up are amazing and filled with some awesome information! I’ve only caught a few minutes here and there so far but plan to check them out fully this weekend! Really cool stuff