Luoshuang's GPULightmass

Nvm got the results to fade by increasing the:

[DevOptions.GPULightmass]
NumPrimaryGISamples
NumSecondaryGISamples

But i love how fast this bakes compared to cpu its lightning fast. And with 2 RTX 2080 ti, imma soon test it with 4 RTX 2080 ti in the swarm agent

its only currently using just 1 gpu, how can i tell it to use both? there SLI connected.

I installed 4.22 and I get this error

Did you install the correct version of GPULightmass? There’s a different one for each Unreal version

Yes, I installed Unified Settings for 4.22…
I made a test with 4.20 version and its better, but still have some dots in shadowy areas

Do Distance field Shadow work with gpu lightmass?

Hi pax, I want to build Unreal engine from source, I’ve cloned your https://.com/irobot/UnrealEngine/tree/GPU-Lightmass-4.23.1-release branch and built the engine, however after trying to build UnrealLightmass in VS, the build had failed with


LNK1181: Cannot Open input file 'GPULightmassKernel.lib'

Now I’ve downloaded the folder GPULightmassKernel.lib from your dropbox but don’t know what to do with it, could you tell me where do I unzip it to.

And I have read one of your comment saying

Could you please elaborate on how do I “add the path” to the “build setting for UnrealLightmass”? Is it adding a line after the


static const FEngineDependencyPaths RequiredDependencyPaths64 = {
...
TEXT("Binaries/Win64/GPULightmassKernel.lib")
};

something like this in Lightmass.cpp? (I’ve tried it, putting the GPULightmassKernel.lib in Win64 folder and add the line above, the build still failed.) Or do I have to add something to another specific file? Thanks.

Can I use this for 4.23.1? 4.23.0 is no longer available for download

It should work. Minor version releases shouldn’t break anything.

I tried to use the LightmassConfiguration .bat file but it can’t find the official fgpu lightmass source to download. is it down?

Hey pax invictus Just got 4.23 up and running. Only did some basic testing, but seems great so far. Nice to see a version with the new fixes all up and running; needed this version for what I’m working on. Wanted to say thank you for keeping this alive and running.

hello guys i have this error when i building light in 4.23.1

can you help me please >>

LightingResults: Error: <None> === Lightmass crashed: ===
Assertion failed: (Index >= 0) & (Index < ArrayNum) [File:C:\UE4\GPULM-src\UnrealEngine\Engine\Source\Runtime\Core\Public\Containers/Array.h] [Line: 614]
Array index out of bounds: 43661 from an array of size 43661
0x00007ffad6e2a839 KERNELBASE.dll!UnknownFunction ]
0x00007ffa69831347 UnrealLightmass-Core.dll!UnknownFunction ]
0x00007ffa69834107 UnrealLightmass-Core.dll!UnknownFunction ]
0x00007ffa69682aba UnrealLightmass-Core.dll!UnknownFunction ]
0x00007ffa69627a17 UnrealLightmass-Core.dll!UnknownFunction ]
0x00007ffa69628250 UnrealLightmass-Core.dll!UnknownFunction ]
0x00007ff79b8112e8 UnrealLightmass.exe!UnknownFunction ]
0x00007ff79b74e3f6 UnrealLightmass.exe!UnknownFunction ]
0x00007ff79b757363 UnrealLightmass.exe!UnknownFunction ]
0x00007ff79b7acf59 UnrealLightmass.exe!UnknownFunction ]
0x00007ff79b75c422 UnrealLightmass.exe!UnknownFunction ]
0x00007ff79b78639d UnrealLightmass.exe!UnknownFunction ]
0x00007ff79b7a5ac9 UnrealLightmass.exe!UnknownFunction ]
0x00007ff79b80dae8 UnrealLightmass.exe!UnknownFunction ]
0x00007ffad78e7bd4 KERNEL32.DLL!UnknownFunction ]
0x00007ffad988ced1 ntdll.dll!UnknownFunction ]

Nope, I diff’ed relevant files (from your cherry-pick commit) and there is no difference between 4.23.0 and 4.23.1

I have the same problem. how exactly to do it? can you explain for the dummies? :confused: this is my first installation

thanks, didnt know the small version doesnt matter, giving it a try :slight_smile:

Help?

You do not need to modify the source. Open the solution in VS, right click on the UnrealLightmass project. Under VC++ Directories add the path to GPULightmassKernel.lib to Library Directories.

Not sure what you mean? Binaries for both 4.23 and 4.23.1 are in the same Dropbox folder.

While this can be true occasionally, I don’t believe it is something you can rely upon.

I appreciate that, thanks! That said, I hope everyone here keeps in mind that the person who really deserves praise is @YujiangW who is the author of GPU Lightmass.

This was probably my fault, since I move the binaries from the older versions to a separate folder in the dropbox. I copied the 4.23.0 binaries back to their original place, so the script *should *(?) work now for 4.23.0. I’m not seeing the path to the latest binary added to the script, though, so If you’re on 4.23.1 it might not work. In that case you might want to install it manually.

I have the same problem, it happens when I try to bake a second time.

I am at total loss with all of the changes. I had this working once, before Luoshoang went to Epic. I am really interested in this promising approach. I am on 4.23.1, and would like to get GPULightmass working. What are the start-from-scratch steps (if I have already had this working once before on older versions of the engine) ?

  • Download the .zip file for 4.23.1 from here:
    Dropbox - GPU Lightmass Binaries - Simplify your life

  • Copy the “Engine” folder to your install directory and overwrite

  • Open Engine/Config/Baselightmass.ini to change the quality - the values at the bottom are the ones you need to change.
    I have mine set to 128, 64 and 10 000, which is pretty high - still figuring out what values produce the best result.

Also, make sure you select “production” build quality in the editor. Any other setting will just act as a bottleneck, if I’ve understood correctly. :slight_smile: