Commit graph

412 commits

Author SHA1 Message Date
RaveYard
04eac16222 Fix the lightmapper ceiling/floor plane calculations 2023-09-04 10:48:39 +02:00
RaveYard
fa3045b631 Enhance dumplevelmesh 2023-09-04 10:07:50 +02:00
Magnus Norddahl
ea02067b0a Delay finding the light lists until after map has loaded 2023-09-03 06:28:41 +02:00
Magnus Norddahl
cdb9f3798c Add lights to surfaces 2023-09-03 06:09:54 +02:00
Magnus Norddahl
00c8a36562 Remove some unused code 2023-09-03 05:24:23 +02:00
RaveYard
c2ded2796f Port BuildSmoothingGroups from ZDray 2023-09-02 21:23:06 +02:00
Magnus Norddahl
13819967f1 Merge LightmapSurface into DoomLevelMeshSurface 2023-09-02 13:50:28 +02:00
Magnus Norddahl
e297b78a25 Create DoomLevelMeshSurface 2023-09-02 13:24:04 +02:00
Magnus Norddahl
375e71dc0d Namespace fixes 2023-09-02 13:09:57 +02:00
Magnus Norddahl
52a1c62b2c Move SurfaceInfo and PortalInfo to vk_raytrace
Add VSMatrix * FVector4 operator
2023-09-02 12:54:07 +02:00
Magnus Norddahl
1e47db3cf3 Rename MeshSurfaces to MeshSurfaceIndexes for clarity 2023-09-02 12:34:00 +02:00
RaveYard
c12fe7be0f Fix AllocUvs 2023-09-02 11:07:14 +02:00
RaveYard
6f00cacdcc WIP Attempt to fix the temporary ZDRay tracecoder lightmap write 2023-09-02 11:07:14 +02:00
Magnus Norddahl
4d12de45e4 Fix null pointer crash 2023-09-01 00:25:09 +02:00
Magnus Norddahl
558867a49f Move surface linking into DoomLevelMesh 2023-09-01 00:13:22 +02:00
Magnus Norddahl
cff50b8087 Initialize lightmap texture in SetLevelMesh
Create VkLightmap class on VulkanRenderDevice
2023-09-01 00:03:18 +02:00
RaveYard
23deb11399 Merge Surface into hwrenderer::Surface 2023-08-31 22:57:58 +02:00
RaveYard
14881a6fb2 Use FVector4 for plane in struct Surface 2023-08-31 22:57:58 +02:00
RaveYard
861630384b Micro clean-up 2023-08-31 22:57:57 +02:00
RaveYard
8843bcdfef Shuffle around member variables in struct Surface 2023-08-31 22:57:57 +02:00
RaveYard
a40164865c LIghtmapUVs to FVector2 2023-08-31 22:57:57 +02:00
RaveYard
197b746fef WIP Cleanup of maploader 2023-08-31 22:57:57 +02:00
RaveYard
6fc7eaf2fa First step towards refactoring 2023-08-31 22:57:57 +02:00
RaveYard
ef031c2073 WIP fake raytracer output 2023-08-31 22:57:57 +02:00
RaveYard
4e57deaf33 Buffer data now in Levelmesh 2023-08-31 22:57:57 +02:00
RaveYard
651903fe71 WIP VkLightmap integration 2023-08-31 22:57:56 +02:00
RaveYard
696166a726 Fix after rebase 2023-08-31 22:57:56 +02:00
RaveYard
96576ea1ae DoomLevelMesh LightmapUVs are now finally correct 2023-08-31 22:57:56 +02:00
RaveYard
68002d3edc Fix bad UV indices in FinishSurface and export UVs in dumplevelmesh 2023-08-31 22:57:56 +02:00
RaveYard
5263a68dc9 Atlas UV mapping 2023-08-31 22:57:56 +02:00
RaveYard
1a25e492d9 Minor cleanup 2023-08-31 22:57:56 +02:00
RaveYard
0fc5f254fc WIP BuildSurfaceParams from ZDRay 2023-08-31 22:57:56 +02:00
nashmuhandes
4aa6ac5585 Merge remote-tracking branch 'remotes/origin/gzd_staging' 2023-08-31 08:37:25 +08:00
RaveYard
0edaa7ca9d Fix uninitialized bSky 2023-08-30 18:08:00 +02:00
RaveYard
4f5d2f3ec6 Add DumpLevelMesh ccmd 2023-08-30 18:08:00 +02:00
RaveYard
f228dd326b Backport support for Line_Horizon from ZDRay into doom_levelmesh 2023-08-30 18:06:35 +02:00
nashmuhandes
9e0bf90be6 Merge remote-tracking branch 'remotes/ZDoom/gzdoom/staging' into gzd_staging 2023-08-22 09:09:51 +08:00
Christoph Oelckers
16cefb7528 - some angle cleanup
* clean out the angle conversion helpers from basics.h.
* use degrees instead of radians in TMatrix3x3.
2023-08-12 10:10:27 +02:00
Ricardo Luís Vaz Silva
1852f14f30 fix rare crash due to null caller 2023-08-02 01:05:24 -04:00
Ricardo Luís Vaz Silva
bcbb85b1dd Add Weapon::ModifyBobLayer , Weapon::ModifyBobLayer3D and Weapon::ModifyBobPivotLayer3D 2023-08-02 01:05:24 -04:00
Ricardo Luís Vaz Silva
12752c7a03 fix rare crash due to null caller 2023-08-01 21:44:51 +02:00
RaveYard
e6305c55cd Fix strange crash when player's weapon is removed. 2023-08-01 17:19:03 +02:00
Professor Hastig
666a99f204 lightmode refactor
* make all legacy light modes except 'Doom' MAPINFO only. A CVAR still exists for testing but its value won't be saved to the config.
* user can only select between "performance', 'software' and 'vanilla'. 'performance' is the old 'Doom' mode which is still needed to speed things up on low end hardware.
* MAPINFO can not enforce any of the two software light modes, as low end users require the option to change this to the 'performance' setting. Selecting one will always revert to the user's light mode selection.
2023-07-17 22:50:05 +02:00
Ricardo Luís Vaz Silva
b0d6d82dfd Add Weapon::ModifyBobLayer , Weapon::ModifyBobLayer3D and Weapon::ModifyBobPivotLayer3D 2023-07-14 16:01:55 +02:00
nashmuhandes
07f722b6f3 Merge branch 'master' of https://github.com/ZDoom/gzdoom into GZDoomUpdate-12-07-2023 2023-07-12 20:51:41 +08:00
Magnus Norddahl
362dc63fc1 Add support for gl_multithread while gl_meshcache is active
Stop building geometry for lines that have a portal (when gl_meshcache is active)
2023-07-04 02:23:07 +02:00
Magnus Norddahl
3be36b3aa3 Hook up portals to gl_meshcache 2023-07-04 01:16:17 +02:00
Magnus Norddahl
a7f4971d5d Add HWDrawContext so that multiple threads can maintain their own drawinfo without need for synchronization 2023-06-29 03:33:07 +02:00
l2ksolkov
245dac814e Add missing include guards 2023-05-29 07:35:26 +02:00
Magnus Norddahl
7bdf3f7364 Create a RenderState object for each thread 2023-05-17 22:39:22 +02:00