Luoshuang's GPULightmass

This is great thanks for making it and sharing for free really appreciate it.

1 Like

Is there a version for UE 5.2.1?I can’t find it here

hi @thewathcer ,
There never was 5.2, because the original 5.2 had huge shadow problems.

Probably the most used is the 5.3 version before the 5.4 Licensing binary was launched

Luoshuang’s GPULightmass Unreal Engine 5.3 Announce

Hi @Jimbohalo10

I’m working on a large interior project, around 600 m². Unreal 5.3.2 version.
Until yesterday, the lighting bake went smoothly, but last night I tried to bake the lighting with final settings of 128/64, and an ‘Invalid argument’ error appeared. Since then, the lighting won’t bake at any settings. I tried duplicating the project and migrating it, but nothing helps. Interestingly, there are other levels in the same project, and they bake without any issues.

There are also no errors shown in the log. I’ve updated the video driver as well, but nothing helps. What could be the problem? Has anyone else experienced this issue?

Many thanks

BTW my PC configuration
CPU Intel I9 13900k
128gb of RAM DDR5
GPU 3090

Seeing if anyone could help me troubleshoot a little here. I am trying to use gpu lightmass on ue 4.27.1. only reason for the older editor is because its a modkit for a game I play. I copied the files over and the editor crashes when swarm starts. I also setup 4.27.2 and installed lightmass and it works fantastic. crash reporter seems to give more info than the log so this is all I have to work off of. "Unhandled Exception: EXCEPTION_ACCESS_VIOLATION reading address 0x0000000000000001

UE4Editor_UnrealEd
UE4Editor_UnrealEd
UE4Editor_UnrealEd
UE4Editor_UnrealEd
UE4Editor_UnrealEd
UE4Editor_LevelEditor
UE4Editor_LevelEditor
UE4Editor_Slate
UE4Editor_Slate
UE4Editor_Slate
UE4Editor_Slate
UE4Editor_Slate
UE4Editor_Slate
UE4Editor_Slate
UE4Editor_Slate
UE4Editor_Slate
UE4Editor_Slate
UE4Editor_Slate
UE4Editor_ApplicationCore
UE4Editor_ApplicationCore
UE4Editor_ApplicationCore
UE4Editor_ApplicationCore
user32
user32
UE4Editor_ApplicationCore
UE4Editor
UE4Editor
UE4Editor
UE4Editor
UE4Editor
UE4Editor
kernel32
ntdll"

hi @Olegsbr ,
After a long investigation to a similar problem with GPU settings.
In effect 4096 x 4096 texture will work, but 4000 x 4000 will cause GPU crashes .
In the Nvidia Cuda code that is LGPU this is taken into accoun and spits out invalid Argument.

The is because the values are not Power of 2. Epic have spent a LOT OF EFFORT in creating a tool in Unreal Engine 5.5 Fortnite called Confrom Texture.
This tools effectively changes the texture to the nearest power of 2

Textures can be checked with a Windows Calculator take 4096 find square root and the decimal point is 0 namely an integer. Take 4000 square root and it got a long remainder after the decimal which is detected in Cuda and spits invalid argument namely the texture is a float not an integer

This causes the GPU to have patterns stored that cannot be over written, hence the need to restart the PC or reset from Nvidia Control panel.

If you want a more detailed log look at the Swarm log as LGPU is running and it will spit out a source code line number, basically this can be seen as an assertion code protecting the LGPU code
The Swarm Cache needs deleting

see Fortnite
Document Resizing Textures contains error 512 is not a Power Of 2 - General / Issues and Bug Reporting - Epic Developer Community Forums

Power Of 2 Does not work - Well it does

Hi @Jimbohalo10
thank you for your response and your interesting take on this issue. I conducted extensive research with ChatGPT and tried many different solutions, but nothing worked. Initially, I thought the problem was due to importing bad models, but I deleted each newly added model one by one, and that didn’t help either. In the end, I discovered that I had some shoe models in the wardrobe, and I had duplicated some of them in Unreal. When I deleted the duplicated models, the problem disappeared. I have no idea why copying within Unreal caused this issue. But the fact is, as soon as I deleted these models, everything started working again.

1 Like

Is there a tutorial for dummies about the installation?
im running 5.3.2 and just download a “lightmassConfiugatorUE5.master” from github.

But it says not tested on windows 11.

So does it work?

win 11-RTX 4080 super