Muchasty
(Muchasty)
September 2, 2018, 8:50am
504
Yes. I will do it later today I think.
Luoshuang
(Luoshuang)
September 2, 2018, 7:27pm
505
I took a look into it. Looks like it is caused by some mismatch between smoothed shading normal and triangle normal (I tried to replace the chair material with a simple white one and the problem is gone). Currently this is not easy to fix in GPULightmass, so my advice would be try to tessellate your model more (in modeling software, not using material) and see whether it helps.
TeeHokken
(TeeHokken)
September 3, 2018, 8:51pm
506
Situx:
I had to install GPU lightmass 4.20 on more than 10 computers today, so I made a script that will perform a batch of checks and allow to change from GPU bake quality without the need to restart Unreal. It will also check quite a few other things. Hope it helps someone.
Now on : https://.com/sgeraldes/LightmassConfiguration/
Instructions:
unzip to an empty folder.
double click the .bat file
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 a Restor CPU option, and on-the-fly switch of GPU Lightmass with UnrealEd running (no need to restart unreal).
It works with 4.20, but can easily be adapted for 4.19.x if needed by adjusting a few parameters inside the file (just edit with Notepad).
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).
To use:
Simply download LightmassConfiguration.zip and decompress the .bat file to any folder (empty is better)
Double-click it, it will ask for admin permissions and do the rest, prompting you each step of the way
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.
Maaannnnnnnnn… You are a good maaannnn… Thanks…
Muchasty
(Muchasty)
September 3, 2018, 10:06pm
507
Situx:
I had to install GPU lightmass 4.20 on more than 10 computers today, so I made a script that will perform a batch of checks and allow to change from GPU bake quality without the need to restart Unreal. It will also check quite a few other things. Hope it helps someone.
Now on : https://.com/sgeraldes/LightmassConfiguration/
Instructions:
unzip to an empty folder.
double click the .bat file
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 a Restor CPU option, and on-the-fly switch of GPU Lightmass with UnrealEd running (no need to restart unreal).
It works with 4.20, but can easily be adapted for 4.19.x if needed by adjusting a few parameters inside the file (just edit with Notepad).
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).
To use:
Simply download LightmassConfiguration.zip and decompress the .bat file to any folder (empty is better)
Double-click it, it will ask for admin permissions and do the rest, prompting you each step of the way
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.
If you have UAC disabled in Windows 10 then it does not work. REG.exe is returning an error when batch is checking the registry info.
The solution then is to create a link for that BAT, move it to the Desktop and run from the Desktop link.
Situx
(Situx)
September 3, 2018, 11:12pm
508
I may have make a mistake somewhere as it should not return an error with UAC disabled. In fact I just tried and it works. Glad you found a workaround. Running the bat file with rightclick “run as administrator” should also work. I tried disabling UAC and found no issues. May try other things tomorrow.
Muchasty
(Muchasty)
September 4, 2018, 6:32am
509
I do not know why (my) Windows treat this script so badly. Then I try to run as a BAT or even Link from Total Commander at batch location then have an error even when run it as an administrator. Just putting the link on the desktop solves problem. But running the REG query from [WINDOWS]->Run->cmd works perfectly.
Maybe my system works so wired :).
Farshid
(Farshid)
September 4, 2018, 12:31pm
510
Unlike last time, this time I would say it is just that sharp. It comes from the sun-disk in the cubemap. I’ve done comparison with VRay (see #437 ](https://forums.unrealengine.com/development-discussion/rendering/1460002--s-gpulightmass?p=1517831#post1517831 )) and it produced the same sharp shadow. CPU Lightmass isn’t a good reference - for this case you need to set a 0.01 Indirect Lighting Scale or set bAllowIrradianceCaching=False in BaseLightmass.ini to compare (no doubt this will be very slow). If you still have some problem, you can upload the cubemap and I’ll test it in VRay.
same scene with same hdri in 3ds max render
Luoshuang
(Luoshuang)
September 4, 2018, 1:40pm
511
Lookd like I have a bug now lol. Would you like to upload the cubemap for me to test?
EDIT: took a second look and it seemed like the sharp shadow are even more dominating in 3ds max?
Ixiguis
(Ixiguis)
September 4, 2018, 6:19pm
512
I can’t seem to get soft shadows, any idea what could be the problem?
The lights above are Spot Lights, with the properties:
Source Radius = 6.0
Soft Source Radius = 6.0
Source Length = 46.
DefaultLightmass.ini:
NumPrimaryGISamples=64
NumSecondaryGISamples=32
World settings (modified only):
Num indirect lighting bounces = 20
Num sky light bounces = 10
Indirect light quality = 4
Indirect smoothness = 0.75
Compress lightmaps = false
Lightmap resolution on the ground is very high (red density).
CUDA version 9.2.189. GTX 1070.
Ixiguis
(Ixiguis)
September 4, 2018, 6:23pm
513
Clarification: the image from the post above has 4 spot lights above the table. Here’s a shot with a single point light, with source radius and soft source radius = 4. Still no soft shadows.
Luoshuang
(Luoshuang)
September 4, 2018, 6:44pm
514
Direct lighting from static lights is baked by CPU Lightmass which means they are affected by quality level. Try to set quality level to Production and see what happens.
Ixiguis
(Ixiguis)
September 4, 2018, 9:12pm
515
Oh, that’s right. Changing to production did solve it. Thanks!
Hello all, just download this a few days ago and been grinding at it. really love it. Especially the skylight bounce… produces very good shading.
Now, is there anyways I can utilize more than one gpu from my computer? I have octane (parallel speed increase) and redshift (almost parallel up to two gpus) and they render really fast by utilizing my FOUR gtx 1070s in my pc. It’s a shame that GPU light mass uses only one of my cards…
Can you make any alpha version of multiple gpu version of this GPU lightmass? it really really would be awesome!
anyways, thanks again for this incredible tool. can’t thank you enough.
Luoshuang
(Luoshuang)
September 5, 2018, 5:35pm
517
I did a quick test and the result was different from any version you shown… Will investiagte later
Luoshuang
(Luoshuang)
September 5, 2018, 5:36pm
518
Hello all, just download this a few days ago and been grinding at it. really love it. Especially the skylight bounce… produces very good shading.
Now, is there anyways I can utilize more than one gpu from my computer? I have octane (parallel speed increase) and redshift (almost parallel up to two gpus) and they render really fast by utilizing my FOUR gtx 1070s in my pc. It’s a shame that GPU light mass uses only one of my cards…
Can you make any alpha version of multiple gpu version of this GPU lightmass? it really really would be awesome!
anyways, thanks again for this incredible tool. can’t thank you enough.
Biggest problem: I have only one GPU and thus cannot perform any test lol
AVLX0510
(AVLX0510)
September 6, 2018, 2:52am
519
Has anyone come across these errors when using GPU lightmass 4.20.2?
I merged the 4.20.2 unified settings zip with the “engine” folder, set the TdrDelay to 300 as recommended, and updated the Nvidia driver to a version >= 398.26 for my GeForce GTX 750 Ti graphics card.
Here are my settings for the baselightmass file
The errors shown above appear when my lighting build is close to being finished, and the lighting build fails unfortunately.
Is there a workaround for this?
DsyD
(DsyD)
September 6, 2018, 3:46pm
520
I mean, it looks like you’re out of VRAM…750 Ti only has 2GB I think?
@ Luoshang: As I understand it, this doesn’t support multi-GPU baking (on the same machine), is that still correct?
If I have multiple GPUs on my machine, is it possible to select which one does the baking? (E.g. to use the non-display GPU for baking)
Luoshuang
(Luoshuang)
September 6, 2018, 3:58pm
521
DsyD:
I mean, it looks like you’re out of VRAM…750 Ti only has 2GB I think?
@ Luoshang: As I understand it, this doesn’t support multi-GPU baking (on the same machine), is that still correct?
If I have multiple GPUs on my machine, is it possible to select which one does the baking? (E.g. to use the non-display GPU for baking)
It should be possible by setting environment variable CUDA_VISIBLE_DEVICES. See https://stackoverflow.com/questions/…o-run-a-job-on (not Windows, but should be similar)
EDIT: On Windows looks like we have a more straightforward way: setting it in NVIDIA Control Panel.
Manoel.Neto
(Manoel.Neto)
September 6, 2018, 4:25pm
522
You should start a Patreon and maybe that could be sorted out.
DsyD
(DsyD)
September 6, 2018, 4:38pm
523
It should be possible by setting environment variable CUDA_VISIBLE_DEVICES. See https://stackoverflow.com/questions/…o-run-a-job-on (not Windows, but should be similar)
EDIT: On Windows looks like we have a more straightforward way: setting it in NVIDIA Control Panel.
I will check it out. Thanks!