Commit graph

178 commits

Author SHA1 Message Date
Magnus Norddahl
d8d1742d0a Add lm_bounce and lm_ao to ZDRayInfo
Make vktool ignore the existing lightmap lump
Ignore the lightmapper cvars in vktool
2025-01-19 15:34:39 +01:00
nashmuhandes
c2808809b7 Add customizable sunlight intensity (both to ZDRayInfo and ZScript) 2024-12-21 17:48:17 +01:00
nashmuhandes
f455990b7b Bump the lightmap lump version to invalidate really old (ZDRay) lightmaps. 2024-12-21 18:43:07 +08:00
Nash Muhandes
7092550d3e
Merge branch 'master' into pr_lightmap_modding_vkdoom 2024-10-24 11:06:26 +08:00
dpjudas
dfbef085e6 Group lightmap variables and put polyobj walls in a dynamic lightmap atlas 2024-10-22 02:29:12 +02:00
nashmuhandes
5ac0b1b84c Apply limits to the ZDRayInfo lm_sampledist value 2024-10-02 01:37:30 +08:00
nashmuhandes
9cd2f7530d Change default LightmapSampleDistance value to match the default value in UDB 2024-10-02 00:54:19 +08:00
Magnus Norddahl
e0cba77646 Move levelmeshhelper completely out of the Common folder
Connect the level updates to the level mesh
2024-08-11 18:34:03 +02:00
Dileep V. Reddy
8a5e7449c1 Consolidated isometric mode commits. 2024-08-11 15:55:21 +02:00
Magnus Norddahl
f1b9e68305 Add more dynamic update code to level mesh 2024-08-11 01:15:44 +02:00
RaveYard
33c705863c Rename forceLightmaps to forceEnableLightmaps 2024-05-22 12:17:51 +02:00
RaveYard
9564de3f16 Expose lightmap defaults in mapinfo's gameinfo 2024-05-06 15:13:01 +02:00
dpjudas
5f65e2914d Adjust the comment about lightmap tile differences between zdray and the internal lightmapper 2024-03-03 02:04:42 +01:00
Magnus Norddahl
7bc2ed5436 Remove the submesh class as that caused more problems than it solved 2024-01-29 21:56:42 +01:00
Magnus Norddahl
5f3737f7ca Add cvar for ignoring the lightmap lump 2024-01-17 01:47:52 +01:00
Magnus Norddahl
e7763c8ff0 Ignore extra lightmap tiles generated by zdray 2024-01-17 01:43:14 +01:00
Magnus Norddahl
ee7771f71f ZDRay lump loading adjustments 2024-01-16 12:42:58 +01:00
Magnus Norddahl
805bce1166 Merge remote-tracking branch 'gzdoom/master' 2024-01-10 04:03:35 +01:00
Christoph Oelckers
ea65768e0b fixed compile errors. 2024-01-07 12:28:21 +01:00
Christoph Oelckers
f13ae3b706 addressed a few things pointed out by static analysis
* marking move assignments noexcept
* using [[fallthrough]] consistently.
* getting rid of alloca.
2024-01-07 08:46:47 +01:00
Magnus Norddahl
48b6a7ec46 Split level mesh surface from lightmap tiles as we have multiple surfaces per tile 2023-12-26 04:31:00 +01:00
Magnus Norddahl
1f6356f414 Plane shadow vertices must be created after the level mesh, otherwise they do not receive the lightmap UV coordinates 2023-12-26 04:31:00 +01:00
Magnus Norddahl
4ae767cc5a Fix polyobj planes ending up in the level mesh 2023-12-26 04:31:00 +01:00
Magnus Norddahl
4ca2ffd58e Implement line portals and improve sky handling 2023-12-26 04:31:00 +01:00
Magnus Norddahl
412be46e08 Misc surface and lightmapper related cleanup and renaming 2023-12-26 04:30:59 +01:00
Magnus Norddahl
75e33c4923 Move portal creation out of the submesh 2023-12-26 04:30:58 +01:00
Magnus Norddahl
bdda16a4f0 Fixes that got lost in the rebase 2023-12-26 04:30:58 +01:00
Magnus Norddahl
26b9c52427 Move halffloat to utility 2023-12-26 04:30:58 +01:00
Magnus Norddahl
6a77924207 Group mesh buffers 2023-12-26 04:30:58 +01:00
Magnus Norddahl
ac212e0147 Use HWFlat for ceilings and floors 2023-12-26 04:30:57 +01:00
Magnus Norddahl
9f963e2c06 Rename lightmap fields to surface as it is being used for more than lightmaps now 2023-12-26 04:30:56 +01:00
Magnus Norddahl
4f4d859fd9 Move some code 2023-12-26 04:30:56 +01:00
Magnus Norddahl
240d68d7ae Merge SurfaceVertex with FFlatVertex and draw the lightmaps 2023-12-26 04:30:54 +01:00
Christoph Oelckers
9bcbdfa09c take OpenDecompressor out of FileReader and fixed exploding decompression 2023-12-14 17:22:32 +01:00
Christoph Oelckers
292705ddc3 fixed OpenDecompressor flag handling. 2023-12-14 17:22:31 +01:00
Magnus Norddahl
58381ec762 Use a TArrayView for the lightmap arrays 2023-12-07 12:48:48 +01:00
Magnus Norddahl
e75e5a387b Merge remote-tracking branch 'gzdoom/master' into merge-gzdoom 2023-10-19 21:05:17 +02:00
Magnus Norddahl
9a334570f0 Add lm_dynamic UDMF boolean on sectors for marking if a sector should update its lightmap dynamically 2023-10-17 19:10:39 +02:00
dpjudas
411b281e7c Remove multithreading RenderState as that seemed to be a poor approach 2023-10-09 03:20:19 +02:00
Christoph Oelckers
7a5a2858a2 yet even more GetChars calls added. 2023-10-07 23:29:24 +02:00
Magnus Norddahl
697e7982a7 Turn off lightmaps for levels that have none 2023-10-03 18:24:11 +02:00
Magnus Norddahl
bcea260f33 Fix misc bugs related to the dynamic lightmap and polybsp lines in the lightmapper 2023-10-02 02:40:40 +02:00
Magnus Norddahl
7bc52386f9 Make doom specific surface fields private to doom 2023-09-30 21:33:07 +02:00
Magnus Norddahl
65929d021f Add support for multiple meshes (DoomLevelSubmesh) 2023-09-25 23:28:49 +02:00
Magnus Norddahl
9e136a7e79 Fix maploader warning 2023-09-19 00:46:20 +02:00
RaveYard
dc936ed32b Use LIGHTMAP lump surface dimensions before packing the lightmap atlas 2023-09-18 16:36:09 +02:00
RaveYard
2f1acda776 Optimize lightmap lump loading 2023-09-18 16:36:09 +02:00
Christoph Oelckers
ea51c92fda - validate partner seg index in LoadGLZSegs before using it
KDiZD Z1M10 has something bogus in there, this case will now trigger a node rebuild.
2023-09-16 09:48:43 +02:00
RaveYard
d609396e3b Add ton of debug code hidden under 'developer' cvar for lightmap lump loading and other error detection measures 2023-09-15 10:43:56 +02:00
RaveYard
315475156c Add error detections when the surfaces sizes do not match 2023-09-15 10:43:56 +02:00