Download

Luoshuang's GPULightmass

Working on 4.22.2 using

I´m using 4.22.2 and works perfect. You can try using the script “Lightmass Configurator”

Hi 'Luoshuang. First thing, i’m brand new in UE since 3 weeks now. And i must say i’m TRULY amazed with your job.

Hopefully this GPU solver will be part of UE sometime soon.

In the meawhile: Can it be possible to add a post Optix (or other kind of solution) denoiser? That would absolutely amazing.

Thanks in advance.
Alex Roman

ohhh interesting. I assume I should backup the files I’m replacing?

ok, I just tried it. a scene that took me 11 hours on cpu just took 3 minutes on gpu. so either my current settings are not being used or this is some sort of witchery lol. also, my quality doesn’t improve much by changing ligthmass settings in world settings. and I’m getting a lot of fireflies. how exactly do I change the quality settings?
edit: nevermind see below

that’s cool, where can I get this script?
edit: ok just found it as lightmass configuration in this thread. gonna try it! cheers
edit2: I downloaded the configurator and rendered the same scene that took 3 minutes before, but on highest quality possible this time. it now took little less than 1 hour but the result is much better than cpu, I cannot believe how amazing this is. definitely a game changer, can’t say how impressed I am. kudos!

so, does changing lightmass settings in my world settings still do anything, or I need to do it via the configurator? how about the buld lighting quality? both don’t seem to do much from what I’m testing.

but most importantly, how about volumetric lightmap detail cell size? I tried different values and they do have some effect, but my dynamic objects look different from cpu volumetric lighting, as if they have some shadows creeping in from underneath. do I still adjust it in the world settings panel or do I have to set it on a config file?

Nice to see you here Master! We hope to appreciate your work on UE4 soon!

Thanks, Mr. Luoshuang’s a lot for your great and useful tool! :slight_smile:
It makes really more realistic look (IMHO) and much faster (even 1060 vs my old 3570k))

But comparing both cpu and gpu render I noticed some dark line under ceiling. Not sure if its good/photoreal? How can I remove it? Maybe more some indirect bounces?

use a different skylight to the flat.

Hey VadoZe,

Is your AO enabled or disabled?

A.

Thank you!! :cool:

My first attempt with Loushuang method. Don’t be severe… just a lighting study. Next step: materials, shaders & fog ;))

Cheers.
Alex

Ps. Some UVW Unwrap errors still…

Hello Alex @3Seventh … Nice to see you here !

This what I could recommend you to pay attention are:

  • UV unwrap for Lightmaps to avoid bad shadowing on complex elements - I see many artefacts in your scene
  • and BaseLightmass.ini setup to avoid strange splotches on walls
    I suggest to use:
    [DevOptions.GPULightmass]
    NumPrimaryGISamples=128
    NumSecondaryGISamples=64
    Remember that when you upgrade the engine new version (not hotfix release) then you have to change the BaseLigthmass.ini again.

I recommend also to avoid point lights very near some high reflective metallic elements ( like reflectors in lamps GU10 type for example ) cause the you will get some splotches too and probably you should increase the Num params, but it cost a lot of extra bake time.

Thank you Thomasz! Yep, i used a 3dsmax script to unwrap evry single object, but, of course, there were some errors as you can see. And yes, i usually use these settings but i got lazy on this and i think it was something like:

NumPrimaryGISamples=16
NumSecondaryGISamples=8

Will be more patient next time :rolleyes:

A.

i dont know when we can get rid of this lightmap creation in ue4 :mad::mad::mad:
its old Technic and take our time

i hope baking in dxr dont depend on lightmaps !!!

+1!!!

Does somebody know what is cooking with the light baking ? @Luoshuang is quite quite now - i suppose very busy now.
No news where the light bake process i going to and how RTX will be used for baking in near future. :frowning:

One more thing @3Seventh : look at your normals direction! UE4 uses one-sided faces and its opposite normal is completely transparent for engine ( if you do not use two-sided material - but two-sided is not recommended for current GPU light bake ).
It is not important for path-tracers but here in Real-Time it is.

Not possible RTX to bake light AFAIK. It’s a pathtracer, only RT. On the other hand, GPU light solver (like Loushuang’s one) is the best approach so far. Some wishlist though:

*Retrace
*Working with stationary lights (Raytraced)
*Denoising lighmaps (OptiX anyone…?)

As I know nVidia used RTX to bake lights in their test scenes ( early scenes B&W with that UE4 characters before the Star Wars demo). You just have to project GI on the light maps… somehow.
Here is the video: https://youtu.be/tjf-1BxpR9c?t=418

Hmmmmm… Interesting…

Hmmm not sure. It says Lightmas Baking Preview, so I think it means that, as previously, “preview” was calculated with real-time movable shadows, but this time, movable lights and shadows are RayTraced, so the baking preview is much more similar to the final result when light will be already baked. So I think it’s not possible to bake RayTraced shadows, but I wish! Probably it will be a little different than doing that literally, but for sure they will release a method to bake shadows and lights calculated with “rays”, using a similar and really fast method as Ray tracing is.

@Miguel1900 I think that you may be wrong. Cause when nVidia compares sth then shows something On and OFF ( even in that video compares SSR vs RTX). If you see carefully then you will able to see all LightMaps mistakes that were made by author of this scene in UVW. As we see it takes some time to complete and this looks like caused by progress of light bounces.