Half-Life: Alyx

Half-Life: Alyx

View Stats:
Nyon Jun 8, 2020 @ 3:35am
Please Help....An issue of lightmap in making custom map...
I just made a map with the source2 Hammer and everything seems pretty fine when running the map from the hammer.

But when I try to run the map in the addon list from inside the HLA game, the lightmap is broken and everything goes dark.

It's really annoying and I try everything but it is still broken.

Would anyone happen to know how to fix this...? I'll be appreciate it :)
< >
Showing 1-8 of 8 comments
Schranzi Jun 8, 2020 @ 4:51am 
Give us a Screenshot of your Editor Windows
Nyon Jun 8, 2020 @ 7:17am 
Originally posted by Schranzi:
Give us a Screenshot of your Editor Windows
I tried to full compile and it fails. Showing that "

Bake Lighting
Build: pc64 May 27 2020 13:14:51
ERROR: RESOURCE_TYPE_MATERIAL resource 9C3AD77B12278B83 requested but not resident. (Missing from from a manifest?)
Texture models/creatures/barnacle/material/barnaclet_tongue_color_psd_30079b81.vtex_c doesn't have mipmaps down to 32, loaded 4x64
CPathTraceSceneInfoBase - Loading light cookie flashlight:0
Preprocessing 1780 meshes and computing charts [0....1....2....3....4....5....6....7....8....9....] Done (46.65 seconds)
Packing 460139 UV charts onto atlas...
***** OUT OF MEMORY! /+/ attempted allocation size: 181284336 ****

"

I've been using fast compile and everything was fine. It seems that the lightmap wasn't built at all. I just knew that the hammer version runs in VRAD2 which doesn't need lightmap.

But I'm now having trouble to find out what's causing this "OUT OF MEMORY" now....Will leak or anything like too many lights cause such issue..?
Rectus Jun 8, 2020 @ 8:15am 
It seems to be running out of memory when packing the UV map for the lightmap texture. Unless it's bugged, the amount of memory it uses would probably only rely on the amount and complexity of the static models and meshes in the map.

This doesn't seem like a step that would need that much memory though. Maybe check that you don't have anything else eating up all the memory. How much RAM do you have?

Nyon Jun 8, 2020 @ 9:43pm 
Originally posted by Rectus:
It seems to be running out of memory when packing the UV map for the lightmap texture. Unless it's bugged, the amount of memory it uses would probably only rely on the amount and complexity of the static models and meshes in the map.

This doesn't seem like a step that would need that much memory though. Maybe check that you don't have anything else eating up all the memory. How much RAM do you have?

I rebooted and tried full compile again, and it was successfully compiled without error.

Seems that it was indeed something else that has been eating up my RAM. I have 16gb RAM by the way.

After the full compile I tried again to run the map in-game and the lights were fixed. (in a little low quality though) Then I tried final compile but it showed "OUT OF MEMORY" again. Well, I think maybe its my computer's problem.

By the way, I found out that maybe fast compile will break the lightmap or something. I added some entities and props and fast compile just now and the in-game lightmap broke again.

Another full compile fixed the lights though.
Nyon Jun 8, 2020 @ 9:46pm 
the failed final compile showed this message by the way:
"
==== Baking 2048 x 2048 lightmap ====
SetupTexels [0....1....2....3....4....5....6....7....8....9....] Done (0.57 seconds)
VRAD3 (local) [0....1....2....3....4....5....6....7....8....9....] Done (21917.86 seconds)
VRAD3 Combine
VRAD3 - Distributed Lighting Tool
Copyright (c) Valve Corporation, All rights reserved.
Build: pc64 May 27 2020 13:14:38
WD: F:\Program Files\Steam\steamapps\common\Half-Life Alyx\game\hlvr_addons\anotherwayout\_vrad3
Command: vrad3.exe -script script.vrad3 -entrypoint lm_combine -threads 4 -indir results/outputs -noassert
Num Threads: 4
Lightmap: 2048x2048 in 16 512x512 blocks
Loading lightmap_packing_geometry.dat... Done (0.17 seconds)
Dilating lighting over 186207 invalid luxels...
...Dilated 47127 luxels, 139080 remain.
...Dilated 53906 luxels, 132301 remain.
...Dilated 54160 luxels, 132047 remain.
...Dilated 54208 luxels, 131999 remain.
...Dilated 54256 luxels, 131951 remain.
Writing normal.exr... (0.2s).
Writing tangent.exr... (0.1s).
Writing sh_irradiance_noisy.exr... (0.1s).
Writing lightmap_noisy.exr... (0.2s).
Writing ao_noisy.exr... (0.1s).
Removing fireflies... found 212754 fireflies in 0.1s
OIDN Filter (lg) ao [0....1....2....3....4....5....6....7....8....9....] Done (8.86 seconds)
OIDN Filter (sm) ao [Error: out of memory

0....1....2....3....4....5....6....7....8....9....] FAILED (12.05 seconds)
Error running "vrad3.exe -script script.vrad3 -entrypoint lm_combine -threads 4 -indir results/outputs -noassert"
VRAD3 - Distributed Lighting Tool
Copyright (c) Valve Corporation, All rights reserved.
Build: pc64 May 27 2020 13:14:38
WD: F:\Program Files\Steam\steamapps\common\Half-Life Alyx\game\hlvr_addons\anotherwayout\_vrad3
Command: vrad3.exe -script script.vrad3 -entrypoint lm_combine -threads 4 -indir results/outputs -noassert
Num Threads: 4
Lightmap: 2048x2048 in 16 512x512 blocks
Loading lightmap_packing_geometry.dat... Done (0.17 seconds)
Dilating lighting over 186207 invalid luxels...
...Dilated 47127 luxels, 139080 remain.
...Dilated 53906 luxels, 132301 remain.
...Dilated 54160 luxels, 132047 remain.
...Dilated 54208 luxels, 131999 remain.
...Dilated 54256 luxels, 131951 remain.
Writing normal.exr... (0.2s).
Writing tangent.exr... (0.1s).
Writing sh_irradiance_noisy.exr... (0.1s).
Writing lightmap_noisy.exr... (0.2s).
Writing ao_noisy.exr... (0.1s).
Removing fireflies... found 212754 fireflies in 0.1s
OIDN Filter (lg) ao [0....1....2....3....4....5....6....7....8....9....] Done (8.86 seconds)
OIDN Filter (sm) ao [Error: out of memory

Unable to run Vrad3.
Light mapper didn't return valid triangles: failing.
--> Map build FAILED.
[FAIL]
"
Rectus Jun 8, 2020 @ 11:54pm 
The fast compile setting uses the preview vertex lighting you bake inside Hammer, instead of the lightmapper. There is a Fast preset for the lightmapper as well, accessible from the custom settings.

Looks like the final compile runs out when running the open image denoise filter. Those kinds of filters seem to use up a lot of memory. One thing that might help is to make sure that your pagefile in Windows is set up properly, so it can swap more memory to disk.
Schranzi Jun 9, 2020 @ 12:13am 
It should work. Maybe verify your Gamefiles ? I had an Error too and i had 12 missing Files after verify My Game Files. Maybe it helps you too . Give it a try
Nyon Jun 10, 2020 @ 5:24pm 
Originally posted by Rectus:
The fast compile setting uses the preview vertex lighting you bake inside Hammer, instead of the lightmapper. There is a Fast preset for the lightmapper as well, accessible from the custom settings.

Looks like the final compile runs out when running the open image denoise filter. Those kinds of filters seem to use up a lot of memory. One thing that might help is to make sure that your pagefile in Windows is set up properly, so it can swap more memory to disk.

Thank you so much. I tried set up more pagefile and the final compile is successful now.

Problem solved.
< >
Showing 1-8 of 8 comments
Per page: 1530 50

Date Posted: Jun 8, 2020 @ 3:35am
Posts: 8