Commit graph

1033 commits

Author SHA1 Message Date
Robert Beckebans
eba1bf978c
Merge pull request #567 from raynorpat/cmake-update
Some improvements to CMakeLists.txt
2021-05-26 09:20:04 +02:00
raynorpat
90a20aec42 Support for Steam and GOG.com base path detection for Windows.
This uses the registry unfortunately, but is fairly clean.

This will check the Steam App ID first, then the Steam install path, then finally will check the GOG.com App ID.
2021-05-25 23:20:54 -04:00
raynorpat
b91080902b Convert USE_INTRINSICS to USE_INTRINSICS_SSE and fix CMakeLists.txt logic surrounding its check to focus on x86 and x86_64 CPU types 2021-05-25 20:06:37 -04:00
raynorpat
49e46df731 Fix two compiler warnings in idlib/math/Vector.h - floor to floorf 2021-05-25 20:04:41 -04:00
raynorpat
4281dd6dcf Some improvements to CMakeLists.txt:
- Change tests for Clang and AppleClang to use MATCHES instead of STREQUAL
 - Add USE_FOLDERS global property, which helps keep the CMake default targets neat in IDEs
 - Sets the default startup project in MSVC to RBDoom3BFG instead of ALL_BUILD, helps for easier debugging when opening the solution for the first time
 - Sets the default debug directory path for MSVC, setting it to the root directory, which again helps for easier debugging
2021-05-25 18:46:12 -04:00
raynorpat
e574c50526 Add define wrappers for classic Doom in sound/OpenAL/AL_SoundHardware.cpp, similar to XAudio2
Also add MSVC 2019 Win10 OpenAL CMake batch file
2021-05-25 18:38:49 -04:00
Stephen Saunders
2068e92d92 Use default VULKAN_SDK location on macOS; disable broken ZERO_CHECK for Xcode Vulkan builds 2021-05-25 13:33:28 -04:00
Stephen Saunders
ea8096d949 Remove erroneous comment from CMakeLists 2021-05-25 01:04:23 -04:00
Stephen Saunders
2429e8bda0 Fix build on macOS for latest Vulkan SDK 1.2.176.1 2021-05-23 12:00:01 -04:00
Robert Beckebans
447d11b1ee Run astyle 2021-05-20 08:10:50 +02:00
Robert Beckebans
f7c1ab7bfb Merge branch 'master' of github.com:RobertBeckebans/RBDOOM-3-BFG 2021-05-20 08:08:40 +02:00
Robert Beckebans
85993e28ad Give generated envprobes proper names 2021-05-20 08:08:35 +02:00
Robert Beckebans
dcbd2de28a
Merge pull request #564 from erickzmx/fix-empty-ase
Fix for ASE meshes without materials.
2021-05-20 08:05:11 +02:00
Robert Beckebans
b2cc747084
Merge pull request #561 from SRSaunders/master
Fix com_smp = -1 logic error in Frame() if com_editors active
2021-05-20 08:05:02 +02:00
ErickMx
b60f3907fc Fixed loading empty ASE Models 2021-05-20 00:21:13 -05:00
Robert Beckebans
72a737d992 Updated release notes, added angles support for lights 2021-05-09 21:25:25 +02:00
Stephen Saunders
fdd9bbbcf8 Fix com_smp = -1 logic error in Frame() if com_editors active 2021-05-08 10:49:44 -04:00
Robert Beckebans
d7a96ca21b Allow sys_lang to be saved to config 2021-05-08 15:05:47 +02:00
Robert Beckebans
0814287639 Updated release notes with screenshots 2021-05-08 11:34:12 +02:00
Robert Beckebans
5cd5f21564 Fixed reloading of images after bakeEnvironmentProbes... 2021-05-07 13:14:00 +02:00
Robert Beckebans
e466940b95 Write smaller EXR files using TinyEXR zip compression 2021-05-07 11:31:03 +02:00
Robert Beckebans
b633582dff
Merge pull request #559 from SRSaunders/master
Fixed uint64_t print formatting in Allocator_VK.cpp
2021-05-06 14:51:27 +02:00
Robert Beckebans
329d822d32 Show all valid light material textures with editLights 2021-05-06 13:31:58 +02:00
Robert Beckebans
cde3a596ee Added editLights cmd as shortcut for g_editEntityMode 1 2021-05-06 10:03:06 +02:00
Stephen Saunders
7918e9af5e Fixed uint64_t print formatting in Allocator_VK.cpp 2021-05-05 12:33:53 -04:00
Robert Beckebans
5a24940e08 Fixed reloading of images after bakeEnvironmentProbes 2021-05-05 12:34:45 +02:00
Robert Beckebans
1870c57308 Cull envprobes that aren't connected to any visible area 2021-05-05 11:51:36 +02:00
Robert Beckebans
9a1ccf644a Don't render SSAO during multi bounce lightgrid bake 2021-05-04 19:33:22 +02:00
Robert Beckebans
0c07739483 bakeLightGrids grid( 32 32 64 ) light grid size option 2021-05-04 19:10:16 +02:00
Robert Beckebans
458f8f5155 Added options to bakeLightGrids -limit[num] -bounce[num] 2021-05-04 16:16:08 +02:00
Robert Beckebans
fc7e7acff2 Updated default builtin irradiance/radiance probe data 2021-05-03 22:38:51 +02:00
Robert Beckebans
c119cf3513 Several bugfixes that address cubemap processing for SH/GGX data 2021-05-03 20:36:26 +02:00
Robert Beckebans
7d5c840ec3 Updated changelog for upcoming release 2021-05-03 14:41:30 +02:00
Robert Beckebans
544ea11ce1
Merge pull request #557 from SRSaunders/master
Restore PCH for macOS Vulkan builds
2021-05-02 19:24:10 +02:00
Stephen Saunders
f6de8ee716 Restore PCH for macOS Vulkan builds 2021-05-02 13:10:03 -04:00
Robert Beckebans
4026fea4a9 Surpress some warnings for retail builds 2021-05-02 15:42:40 +02:00
Robert Beckebans
460719336e Print time results at the end of all baking commands 2021-05-02 14:29:01 +02:00
Robert Beckebans
3786c3aa51 Fixed progressbar updates with bakeEnvironmentProbes 2021-05-01 16:28:05 +02:00
Robert Beckebans
30373922c3 Optimized bakeLightGrids 2021-05-01 15:59:46 +02:00
Robert Beckebans
7707dc222e Modified zip scripts 2021-04-30 18:56:30 +02:00
Robert Beckebans
ae7dc33b5c Use builtin environment probe data as fallback 2021-04-30 16:39:27 +02:00
Robert Beckebans
0762ed4f04 Don't store temp cubemaps on disc for bakeEnvironmentProbes 2021-04-30 15:40:27 +02:00
Robert Beckebans
325fe39fd8 Use L4 Spherical Harmonics 2021-04-30 15:02:34 +02:00
Robert Beckebans
595fa370cf Fixed several bugs with the new bake* commands 2021-04-30 14:33:51 +02:00
Robert Beckebans
8ae5bace37 Fixed building for Vulkan on Linux 2021-04-30 11:42:20 +02:00
Robert Beckebans
b67612c67c Allow more than 1 lightgrid file version 2021-04-29 17:05:56 +02:00
Robert Beckebans
5b0a3a8ac8 Merge branch '545-irradiance-light-grid' 2021-04-29 16:33:10 +02:00
Robert Beckebans
dbbcea94c5 Pull request cleanup 2021-04-29 16:32:15 +02:00
Robert Beckebans
0964c02bcf Ran Astyle 2021-04-29 15:20:45 +02:00
Robert Beckebans
d5b9fbc7e8 Fixed crash in glslang when compiling new lightgrid shaders 2021-04-29 12:52:40 +02:00
Robert Beckebans
0b4be8c73a Added interpolation of the 3 nearest reflection probes 2021-04-28 15:44:33 +02:00
Robert Beckebans
167085385b Fixed bad lighting with objects behind the area light grid bounds 2021-04-27 19:14:55 +02:00
Robert Beckebans
b96b085d04 Don't use 1 pixel border for non-lightgrid octahedrons 2021-04-27 14:15:11 +02:00
Robert Beckebans
dcf9cc4e6d Store irradiance probe resolution and border size 2021-04-26 16:31:04 +02:00
Stephen Saunders
d72ce4a2d5 Fixed assert on macOS when -D_DEBUG defined, assertion guarding atan2f in Math.h not needed 2021-04-23 01:06:53 -04:00
Robert Beckebans
f7e898bb61 PBR spec probes shouldn't be linear filtered 2021-04-23 00:55:53 +02:00
Robert Beckebans
8d1e7c5afd Lowered irradiance probe resolution to ( 16 + 2 )^2 2021-04-23 00:36:14 +02:00
Robert Beckebans
f3ee2baac8 Enable linear filtering for octahedron lightgrid probes 2021-04-23 00:21:22 +02:00
Stephen Saunders
dd6b75d009 Fix error in CMakeLists for UNIX/macOS use of SPIRV_SHADERC 2021-04-21 13:29:56 -04:00
Stephen Saunders
b14c3c21cb Fixed segfault on exit by integrating pull request #378 by tomgreen66 2021-04-20 18:35:37 -04:00
Stephen Saunders
0aae6f0902 macOS support for OpenGL and MoltenVK, demo recording/playback improvements 2021-04-19 14:32:52 -04:00
Robert Beckebans
d11fae0c20 Don't write .exr files for empty light grid areas 2021-04-19 00:44:41 +02:00
Robert Beckebans
03c5e0273b Small bugfixes and r_useHDR 1 is now fixed for OpenGL 2021-04-18 21:20:29 +02:00
Robert Beckebans
6bad4df47e Lowered film grain intensity 2021-04-17 21:07:39 +02:00
Robert Beckebans
cb0e534804 First draft of new .lightgrid file format to store volume settings 2021-04-17 21:06:19 +02:00
Robert Beckebans
5c03286448 Move light grid sampling origins around if in solid like q3map1 did 2021-04-16 21:16:44 +02:00
Robert Beckebans
b0238772a8 It's now bakeEnvironmentProbes and bakeLightGrids 2021-04-16 13:21:43 +02:00
Robert Beckebans
36e7b2e86e Skip entire area if lightgrid count exceeds limit 2021-04-16 10:37:12 +02:00
Robert Beckebans
25b14756bb Use first valid lightgrid of viewEntity areas 2021-04-15 21:28:50 +02:00
Robert Beckebans
15a9411161 Changed lightgrid texture layout 2021-04-15 18:06:50 +02:00
Robert Beckebans
2752432416 Use dynamic light grid size in shaders 2021-04-15 16:09:39 +02:00
Robert Beckebans
0596300c45 Combined lightgrid trilerp with IBL PBR lighting 2021-04-15 15:01:31 +02:00
Robert Beckebans
884658d6dd Added lightgrid debug shader 2021-04-15 13:11:27 +02:00
Robert Beckebans
6ad03afca6 Write an irradiance atlas for each area 2021-04-14 22:17:09 +02:00
Robert Beckebans
7e16444fcc More light grid debug code 2021-04-14 18:17:28 +02:00
Robert Beckebans
26faa5797a r_showLightGrid 2 shows how light grid interpolation works 2021-04-14 12:55:46 +02:00
Robert Beckebans
f1e54f249b Splitted light grid up into multiple for each BSP area 2021-04-13 19:53:02 +02:00
Robert Beckebans
99c7d58dc6 Compute irradiance for each light grid point 2021-04-13 17:51:16 +02:00
Robert Beckebans
6decaa2293 Started to bring back the Quake 3 lightgrid as irradiance cache 2021-04-13 15:50:46 +02:00
Robert Beckebans
09c9f254c8 Generated new default ambient cube with smooth SH lighting 2021-04-10 17:26:51 +02:00
Robert Beckebans
7d2f35ab9a Only do parallax correction test for local cubemaps 2021-04-10 17:23:04 +02:00
Robert Beckebans
69f17a61fd Merge branch 'master' of github.com:RobertBeckebans/RBDOOM-3-BFG 2021-04-10 16:55:57 +02:00
Robert Beckebans
d8188cf90b Fixed problems with Mesa GLSL compiler 2021-04-10 16:55:54 +02:00
Robert Beckebans
2f8ae72431 Fixed Linux build issues. Tested with Clang 2021-04-10 09:53:52 +02:00
Robert Beckebans
5d26aaddb3 Added parallax correction for local cubemaps 2021-04-09 22:28:09 +02:00
Robert Beckebans
c40ab1e7e8 Fixed irradiance fireflies using spherical harmonics 2021-04-08 18:36:23 +02:00
Robert Beckebans
4a3ba04317 Simplified R_MakeAmbientMap 2021-04-08 12:41:40 +02:00
Robert Beckebans
ee4085b388 Added spherical harmonics math 2021-04-08 12:06:14 +02:00
Robert Beckebans
36105c277c Added missing shaders from last commit 2021-04-07 10:04:39 +02:00
Robert Beckebans
5854242d7b Moved D3 gloss -> roughness hack to function 2021-04-06 14:27:46 +02:00
Robert Beckebans
7c3ff6466b Minor cleanup 2021-04-01 14:23:47 +02:00
Robert Beckebans
8f82bb0fb9 Added invertGreen( normalmap.png ) material keyword 2021-03-27 22:17:05 +01:00
Robert Beckebans
9ce36e420a Support angles keyword again for TrenchBroom 2021-03-27 18:36:50 +01:00
Robert Beckebans
97656fb9cf Defaulted r_forceAmbient to 0.4 2021-03-26 18:40:02 +01:00
Robert Beckebans
39facaa1ac Vulkan can handle FMT_R11G11B10F textures 2021-03-26 17:39:04 +01:00
Robert Beckebans
9fae3ccdb2 Vulkan backend compiles again 2021-03-26 13:35:05 +01:00
Robert Beckebans
d9112cd381 Merge branch '497-envprobe-rendertarget' 2021-03-26 11:20:53 +01:00
Robert Beckebans
1f796a1f08 Embedded default HDR light probe data 2021-03-26 10:49:16 +01:00
Robert Beckebans
d5a4dda542 Added console command makeImageHeader 2021-03-26 10:13:42 +01:00
Robert Beckebans
5bbca6f98c Use id Tech 5 multithreading for generateEnvironmentProbes 2021-03-23 21:53:21 +01:00