stavros95
(stavros95)
March 24, 2021, 11:14am
2094
Hello guys, am facing a problem with 's GPULightmass and Quixel Megascans. If I increase the light map resolution I get black spots. I import - export the same model in blender and this time i looks ok. I am using Rtx 3090.
kabulcreed
(kabulcreed)
March 31, 2021, 11:15am
2095
Situx:
I made a script that will automatically download and install GPULightmass on your binary installation folder, perform a batch of checks to avoid issues (like nvidia driver version and TdrDelay), and allow to change GPU bake quality among fast, medium, high, extreme, without the need to restart Unreal.
If it helps someone, just give me a “Like” below.
It’s currently working with the latest engine version (4.24.1). If you need it to work with a previous one, just replace UnrealEngineVersion variable in LightmassConfiguration.bat to the version you need (use only 4.xx notation, do not use 4.xx.yy here).
UPDATE 3/1/2020: Script got updated to 4.24.1
UPDATE 12/11/2018: Now updated to work with 4.21 (Unified Settings). Allows to chage settings on the fly between different BaseLightmap.ini configurations.
Now on : https://.com/sgeraldes/LightmassConfiguration/
DIRECT DOWNLOAD to the latest version: LightmassConfiguration.zip
Instructions:
unzip LightmassConfiguration.zip to any folder (empty folder is better).
double click the .bat file and follow the instructions
What it does:
The script will download GPU lightmass 4.20.2 from the OP into the same folder, backup CPU Lightmass for you, and install GPU on your choosen quality level.
It features an undo or “Restore CPU Lightmass” option.
On-the-fly switch of GPU Lightmass with UnrealEd running (no need to restart unreal).
It works with 4.21, but can easily be adapted for 4.20x and 4.19.x if needed by adjusting a few parameters inside the file (just edit with Notepad and change UnrealVersion variable to 4.20 or 4.19.
What it does not:
Requirements :
Windows 10 (not tested in earlier versions, may work but no guarantees)
Admin privileges
The script has the following features:
Show you the version of Nvidia drivers running (and any other display driver that’s running, i.e.: Intel HD) and warn if not sufficient
Check if you have TDR settings as recommended, IF NOT: the script will ask you to do the changes for you (optional)
Allows changing GPU Lightmass quality settings (fast preview, medium, high-ultra, extreme) without needing to restart unreal.
Backup CPU lightmass for you and give you the option to go restore it later
It will override BaseLightmass.ini on your Unreal folder (it will first backup in the zip archive the version you have and allow to restore at will).
Checks if GPU Lightmass is installed, if not…
Download the latest version of GPU Lightmass for you from 's links
Download 7Z.exe to quickly backup and perform decompression of the files in the archives
Finds the installation directory of Unreal, and unzip the files there according to the quality you select (will prompt you for it)
If UnrealEd is running, the script will disable the option to change GPU and CPU lightmass as it needs to access files that are in use to do so.
Please note: The script will give an error while copying when trying to change the quality settings with Unreal Ed running. That’s perfectly fine, the file is just been copied over to be sure it remains the same. I guess I could just copy GPULightmassKernel.dll instead of the whole bunch, but I just think it works as-is just fine. The copy of a single will fail but GPU Lightmass will work the same.
Also note: the script can’t change from CPU to GPU lightmass while the Unreal Editor is running, so the script will check for that and disable the option accordingly.
The only file that has the changes for quality, and the only file that is in any way different between the different packs, is GPULightmassKernel.dll (I did a binary compare of each file to be sure).
Screenshot:
[SPOILER]
[/SPOILER] [HR][/HR]UPDATE 12/11/2018: New Version 0.3.2. Updated to work with UnrealEd 4.21 (Unified Settings). Allows to chage settings on the fly between different BaseLightmap.ini configurations.
UPDATE 09/23/2018: Version 0.3.1 It now works with UnrealEd 4.20.3 and GPU Lightmass Unified Settings. Also created a menu to change Unified Settings quality choosing from the different presets. Fixed a bug with backup of CPU Lightmass that may not keep folder structure in the zip archive.
UPDATE 09/22/2018: It currently works with up-to 4.20.2 as binary distributions for GPU Lightmass 4.20.3 are not available. The installer doesn’t work either with Unified Settings, so I’m working on a new installer to work exclusively with it.
UPDATE 08/23/2018 v0.2: Modified to allow easier updates of the engine. Fixed some bugs. better detection of some parameters and added a fail-safe in case it fails.TDR settings now in decimal instead of hexa .
UPDATE 08/23/2018 v0.2.1: The script now actually checks for driver version and warns the user if the driver does not meet the requirement.
Can you Please update it for 4.26.1 ?
I’m using an old GPU and if you update it, I will be very Glad.
1 Like
Situx
(Situx)
April 2, 2021, 4:10pm
2096
Unfortunately I don’t have the time to maintain, as this was just a side project on my spare time.
Here is my Patreon page in case you want to donate. If there is enough interest and support, I’ll do an update over the weekend to the latest version.
1 Like
Obando
(Obando)
April 14, 2021, 2:27pm
2097
@ Thanx for all updates in the GPU Lightmass binaries you are the best.
Yesterday my engine updated ti versio 4.26.2. Can you upload GPU Lightmass for this version.
Thanx in advanced.
3 Likes
d_4
(dᎠ_)
April 15, 2021, 10:10pm
2099
Any news about build for 4.26.2?
Hello,
Thanks for the upload!
Just tested it and I got this. (Image Attached)
Has anyone had this issue?
Please let know.
Thanks!
Thanks a lot!
Any idea how I change quality settings with this build? Before I would change it in a prompt like program.
How do you do it for this version?
Cyberglobe
(Nazzareno Giannelli)
April 19, 2021, 9:23am
2104
You need to go to your UE installation folder and under Engine>Config you will find a file called BaseLightmass.ini. Open it, scroll down to the bottom and you will see GPU lightmass settings. Change the first two values with power-of-two numbers. 64-32, 128-32, 128-64 are usually good pairs.
1 Like
Obando
(Obando)
April 20, 2021, 4:27pm
2107
Thanx for your efficient response and great work. Keep up saving lives hahaha.
Obando
(Obando)
April 20, 2021, 4:32pm
2108
This could probably help Newbies in GPU Lightmass.
Open the file BaseLightmass.ini located in your UE version in the folder Engine/Config
Example: “D:\Program Files\Epic Games\UE_4.26\Engine\Config\BaseLightmass.ini”
Scroll to the end and find NumPrimaryGISamples and NumSecondaryGISamples
Change values for Quality:
Preview
NumPrimaryGISamples=16
NumSecondaryGISamples=8
Medium
NumPrimaryGISamples=32
NumSecondaryGISamples=16
High
NumPrimaryGISamples=64
NumSecondaryGISamples=32
Extreme
NumPrimaryGISamples=128
NumSecondaryGISamples=64
Special Thanx to @Luoshang and @ they´ve been making our job much easier this years, keep up the good work
3 Likes
Obando
(Obando)
April 20, 2021, 4:41pm
2109
This could probably help Newbies in GPU Lightmass.
Open the file BaseLightmass.ini located in your UE version in the folder Engine/Config
Example: “D:\Program Files\Epic Games\UE_4.26\Engine\Config\BaseLightmass.ini”
Scroll to the end and find NumPrimaryGISamples and NumSecondaryGISamples
Change values for Quality:
Preview
NumPrimaryGISamples=16
NumSecondaryGISamples=8
Medium
NumPrimaryGISamples=32
NumSecondaryGISamples=16
High
NumPrimaryGISamples=64
NumSecondaryGISamples=32
Extreme
NumPrimaryGISamples=128
NumSecondaryGISamples=64
Special Thanx to @Luoshang and @ they´ve been making our job much easier this years, keep up the good work
4 Likes
Any idea why the built in GPU bake of 4.26 is so much worse than Luoshang’s?
Built in gpu bake
Luoshangs (dont mind the temperature changes thats post)
But you can clearly see that one is crappy (and that is with settings bumped to a maximum) and the other is clean and smooth…
What was it? Im getting that in one of my scenes too.
poky
(poky)
April 21, 2021, 10:12am
2112
people. ue4 has native gpu baker. you don’t need this “mod” anymore.
Situx
(Situx)
April 21, 2021, 1:41pm
2113
Install script updated for 4.24.3, 4.25.4, and 4.26.2
Releases · sgeraldes/LightmassConfiguration (.com)
You can use the script to change quality settings on the fly, no need to restart UE4 or mess with ini files.
If you use it, and want to support the work to keep it up to date, please drop by my patreon:
3 Likes
Situx
(Situx)
April 21, 2021, 1:48pm
2114
Can you Please update it for 4.26.1 ?
I’m using an old GPU and if you update it, I will be very Glad.
Updated to 4.26.2. It was also updated to fix some minor bugs and remove unused code.
The latest version has a few different files to backup than previous versions, so make sure you re-create your backup (option 1). If you currently have GPU lightmass installed without the script, I encourage to do a “UE4 validation” to restore CPU lightmass before using the Installer, so it can take a clean backup.