Commit graph

1521 commits

Author SHA1 Message Date
Robert Beckebans
1e30b08363 SP: Fix null indexbuffer issue when the validation layers are enabled 2022-08-15 14:20:19 +02:00
Robert Beckebans
b709b4ee6b Merged reloadImages fix from SP branch #674 2022-08-15 13:36:00 +02:00
Robert Beckebans
c52e4c345d ( ) -> () 2022-08-15 12:23:38 +02:00
Robert Beckebans
e243072f56 Merge remote-tracking branch 'origin/679-gltf-map-support2' into 679-gltf-map-support2 2022-08-15 11:16:02 +02:00
HarrievG
457e0e143b - Fixed missing surfaces in multi surface/texture gltf models. 2022-08-14 20:02:06 +02:00
HarrievG
486315c7e7 - removed global gltfParser so it cannot be used as an singleton anymore.
- fixed destruction and cleanup of gltfData and gltfParser
- gltfParser always fixes up skeletonID's for skins that do not have it set.
- fixed gltfData::GetAnimation to also check for duplicates taking multple targets for the same animation into account.
- several boneless animation fixes
[!] [ BUG WARNING ] Be aware -> for some reason models/meshes that use multple textures are not drawn correctly; ATM onlt single texure users are correct.
2022-08-14 13:43:12 +02:00
HarrievG
ecaf297ef6 Allow for multple GLTF/GLB to be loaded at the same time. 2022-08-07 15:56:46 +02:00
HarrievG
d0ff0a7f64 Dont load GLTF data when loading bglb/bgltf 2022-08-07 15:05:14 +02:00
HarrievG
8e889c1804 Fixed non Simdpath for idRenderModelGLTF::UpdateSurface 2022-08-06 20:43:25 +02:00
HarrievG
2ef1fe3ce2 idRenderModelGLTF::NearestJoint 2022-08-04 01:40:59 +02:00
HarrievG
b41411f8d0 Fixed axis conversion for gltfModels with animated translations 2022-08-03 21:44:42 +02:00
HarrievG
7e7ee22f3b AAS support for MapPolygonMehses 2022-08-03 02:14:06 +02:00
HarrievG
b6bccf19d0 Fixed gltf animation bounds. 2022-08-01 22:05:13 +02:00
HarrievG
c5f8af3b66 corrected sw skinning bounds 2022-07-31 21:37:42 +02:00
HarrievG
e56f696c9c - Skinned / animated GLTF models 2022-07-31 12:13:07 +02:00
HarrievG
edf657f50d - Initial GLTF Animation Implementation. For now only supports boneless TRS animations without scale.
![only works with r_UseGpuSkinning 0]!
- Writes bmd5anim for each animation. its not perfect yet but, rot + trans looks good.
- Model tag supports gltf Animations. Indexed the same way as meshes.
- Enabled weights and bone index in ConvertFromMeshGltf
2022-07-10 21:09:25 +02:00
GoGo de Sica
c2b2598ced
Fix include in OpenGL RenderBackend 2022-07-04 00:55:57 +02:00
Robert Beckebans
007ad7dde7 Don't use TAA jitter when capturing env probes! 2022-07-03 14:46:14 +02:00
Robert Beckebans
60330e2d8d Always clear the envprobe FBO for lightgrid capturing 2022-07-03 14:16:04 +02:00
Robert Beckebans
cdc39a0294 Merged some smaller cleanups from the SP branch 2022-07-03 11:26:54 +02:00
Robert Beckebans
d292e46148
Merge pull request #644 from davidebeatrici/sound-openal-pointer-check-array
sound/OpenAL/AL_CinematicAudio.cpp: Remove address check against array, zero out music buffer on shutdown
2022-07-02 14:29:22 +02:00
Robert Beckebans
c824d41152 Fixed merge conflict 2022-07-02 13:01:25 +02:00
Robert Beckebans
374897f750 Merge branch '679-gltf-map-support2' into 679-gltf-map-support 2022-07-02 12:55:10 +02:00
Robert Beckebans
525f00395c Print engine version when starting to write a qconsole.log 2022-06-29 10:24:28 +02:00
Robert Beckebans
1664626bbb Fixed window icon by adding the missing doom.rc 2022-06-28 09:31:57 +02:00
Robert Beckebans
ad922d6f49 Merge branch '655-nvrhi-gpu-skinning' into 635-nvrhi2 2022-06-27 19:56:30 +02:00
Robert Beckebans
539b25d799 Merged GPU skinning code by SP and did additional refactoring 2022-06-27 19:54:20 +02:00
Robert Beckebans
fbc07156d2 Merge branch 'master' into 635-nvrhi2 2022-06-26 15:46:48 +02:00
Robert Beckebans
3d269124b2 Don't generate collision models for every rendermodel in advance
(cherry picked from commit 82928cce8b6544466f4131b9bfd602ab2fa033d6)
2022-06-26 15:29:51 +02:00
Robert Beckebans
a664f8599e Dmap: always write a .cm file, especially when overwriting from a mod dir 2022-06-26 15:29:13 +02:00
Robert Beckebans
04606dc3cf Dmap: always write a .cm file, especially when overwriting from a mod dir 2022-06-26 15:28:15 +02:00
Robert Beckebans
ffd18bf9d4 Fixed duplication of glTF models 2022-06-26 13:24:55 +02:00
Robert Beckebans
5446ae31e4 Fixed binaryzation of .glb models that don't have 'models' as main scene 2022-06-26 12:23:21 +02:00
Robert Beckebans
cd41a6b785 Merge branch 'master' into 635-nvrhi2 2022-06-26 10:27:45 +02:00
Robert Beckebans
844bbb577f Support the Valve 220 texture projection in MapPolygonMesh::ConvertFromBrush() 2022-06-26 10:20:58 +02:00
Robert Beckebans
0364eeb2f9 Automatically remove map collision .cm, .bcm files before running dmap 2022-06-26 10:20:57 +02:00
Robert Beckebans
131e4f1ce3 Crashfix: Don't refesh the screen using prints during engine shutdown. 2022-06-26 10:20:57 +02:00
HarrievG
833f112f4e - gltfMesh support for mesh tag in idDeclModelDef 2022-06-25 15:05:59 +02:00
HarrievG
8030a5b1de - idRenderModelGLTF now set dynamicModel_t to DM_STATIC when no anims are found, or to DM_CONTINUOUS
- idRenderModelGLTF now does only transform the model verts on read for DM_STATIC. Vertices for  dynamicmodels are transformed on instantiation [wip]
- A-Style update
2022-06-24 21:40:08 +02:00
HarrievG
8f80816183 - binary loading/writing for (static) gltfMesh 2022-06-21 22:07:27 +02:00
HarrievG
6840b3a13e - added cnew make batch file for vs2019 2022-06-21 00:44:01 +02:00
Robert Beckebans
90d329c78b Moved FinishSurfaces for gltf 2022-06-21 00:20:25 +02:00
Robert Beckebans
d87d05e82c Split Model_gltf.cpp into idlib/MapFile_gltf.cpp 2022-06-21 00:18:24 +02:00
HarrievG
39bdcba4ba Merge remote-tracking branch 'RB/679-gltf-map-support2' into 679-gltf-map-support2 2022-06-21 00:03:31 +02:00
HarrievG
e84ef1edb2 transform bugs 2022-06-21 00:02:58 +02:00
Robert Beckebans
5f58f73845 Fixed missing generation of tangent spaces for glTF files 2022-06-20 23:57:13 +02:00
HarrievG
18677c0e4a Merge remote-tracking branch 'RB/679-gltf-map-support2' into 679-gltf-map-support2 2022-06-20 22:34:43 +02:00
Robert Beckebans
6e3a048833 Merge remote-tracking branch 'HarrievG/679-gltf-map-support2' into 679-gltf-map-support2 2022-06-20 22:34:25 +02:00
Robert Beckebans
4f6f65f4b8 Ignore line definitions in OBJ files 2022-06-20 22:33:01 +02:00
HarrievG
d0b9d8f8a8 astyle 2022-06-20 22:25:52 +02:00
Robert Beckebans
57b0b9620f Fixed idassert in Release builds 2022-06-20 20:55:50 +02:00
HarrievG
9e4cd947a1 - cleanup YUP define
- added rotation for entities
- models scene can be overriden with cvar
2022-06-20 01:12:45 +02:00
Robert Beckebans
52a99ea5f6 Astyle 2022-06-19 22:25:33 +02:00
HarrievG
44c4ba9e46 - if no meshname is given while trying to load a idRenderModelGLTF, add all primitives from the default scene of that gltf as surfaces 2022-06-19 22:19:27 +02:00
HarrievG
1f22320d37 - correct axis transform for gltf assets 2022-06-19 21:58:43 +02:00
HarrievG
72b535f0ac - Fixed bsp/worldspawn scene node traversal 2022-06-19 01:26:16 +02:00
Robert Beckebans
0cb72166f8 Added missing copyright notices 2022-06-18 11:09:09 +02:00
Robert Beckebans
fd6c589da0 ( ), ( void ) -> () 2022-06-18 10:43:30 +02:00
Robert Beckebans
35d809a145 Astyle 2022-06-18 10:36:48 +02:00
HarrievG
e5ecb219e5 - hierarchical bsp/worldmodel loading
- gltf support for model def. Looks up item within the "models" scene of the target gltf!
2022-06-18 01:18:28 +02:00
Robert Beckebans
b147183658 Don't generate collision models for every rendermodel in advance
(cherry picked from commit 82928cce8b6544466f4131b9bfd602ab2fa033d6)
2022-06-16 12:32:58 +02:00
Robert Beckebans
2d133b6910 Made hashing faster in MapPolygonMesh::GetGeometryCRC() 2022-06-11 11:54:01 +02:00
Robert Beckebans
f7db9d0ab7 Simplified allocations and fixed potential crash if materials are missing 2022-06-11 11:45:09 +02:00
HarrievG
a6d4ca7694 material name is now used as texture/idMaterial 2022-06-10 22:06:38 +02:00
HarrievG
faa9207d01 - Fixed GLTF Mesh -> Polygon Mesh creaton 2022-06-10 10:27:17 +02:00
Robert Beckebans
c0a5f1233d Fixed collision detection and shading 2022-06-09 10:51:20 +02:00
Robert Beckebans
c576583b28 Don't add indices from other polygons 2022-06-08 23:06:17 +02:00
Robert Beckebans
c74ed79e8d Support the Valve 220 texture projection in MapPolygonMesh::ConvertFromBrush() 2022-06-08 21:34:04 +02:00
Robert Beckebans
9216f47572 Automatically remove map collision .cm, .bcm files before running dmap 2022-06-08 21:12:38 +02:00
Robert Beckebans
86b94dc8be Crashfix: Don't refesh the screen using prints during engine shutdown. 2022-06-08 21:10:36 +02:00
Robert Beckebans
4e0199b75c Entity glTF2 Y-Up -> Doom coord conversion 2022-06-07 22:48:36 +02:00
Robert Beckebans
e095e95173 glTF2 -> dmap triangulation bugfixes 2022-06-07 22:39:16 +02:00
Robert Beckebans
e86a8d1734 Crash fix when closing the engine 2022-06-07 22:04:43 +02:00
Robert Beckebans
d69db4ebad Fixed rebase conflicts 2022-06-06 17:36:18 +02:00
Robert Beckebans
c3098186b5 Small glTF2 coords change 2022-06-06 17:24:47 +02:00
Robert Beckebans
24845c7edf gltf2 -> idMapFile fixes. dmap and map commands work
# Conflicts:
#	neo/idlib/containers/List.h
2022-06-06 17:24:47 +02:00
HarrievG
50bb904e22 [!] compile fix 2022-06-06 17:24:38 +02:00
HarrievG
e19e4f2b05 Update Model_local.h 2022-06-06 17:24:38 +02:00
HarrievG
c1c5917cda + id style gltf2 parser
+ initial attempt to dmap glb/gltf
[!] added blend file and glb for debugging purposes

# Conflicts:
#	neo/idlib/containers/List.h
2022-06-06 17:24:37 +02:00
Robert Beckebans
eb08cd9c40 Small glTF2 coords change 2022-06-06 17:19:45 +02:00
Robert Beckebans
60c990c1d9 gltf2 -> idMapFile fixes. dmap and map commands work 2022-06-06 16:13:32 +02:00
Robert Beckebans
70dee3a79c WIP non-compiling GPU skinning fixes 2022-06-06 13:21:14 +02:00
HarrievG
c73ba4e5b1 [!] compile fix 2022-06-06 01:22:55 +02:00
HarrievG
8981441237
Update Model_local.h 2022-06-06 01:00:36 +02:00
HarrievG
331d14567d + id style gltf2 parser
+ initial attempt to dmap glb/gltf
[!] added blend file and glb for debugging purposes
2022-06-06 00:53:44 +02:00
Robert Beckebans
e1bbf4bf28 Fixed chromatic aberration on right/bottom screen corners 2022-06-05 12:03:56 +02:00
Robert Beckebans
c0dd85bb80 Fixed rendering of FFmpeg, Binkdec videos and Doomclassic modes #648 677 2022-06-04 13:37:00 +02:00
Robert Beckebans
987085a247 More shader syncing with SP branch 2022-06-04 11:14:48 +02:00
Robert Beckebans
a97c92b6a5 Separate bind set for material textures in the light passes to avoid allocation problems #676 2022-06-03 18:47:02 +02:00
Robert Beckebans
f67360bc06 Fixed lightgrid and envprobe debug drawing #662 2022-05-29 16:45:12 +02:00
Robert Beckebans
d3382b03e2 Outcommented broken SMAA and MSAA options 2022-05-29 15:51:07 +02:00
Robert Beckebans
461001d5c0 Fixed filmic post processing #661 2022-05-29 15:11:12 +02:00
Robert Beckebans
94fea5c38c Possible FBO mem leak fix #664 2022-05-29 12:14:26 +02:00
Robert Beckebans
592d587228 Fixed failed PSO bug with blend lights 2022-05-29 12:07:49 +02:00
Robert Beckebans
ef72010b01 Fixed problem with spot light projections #673 2022-05-29 11:20:43 +02:00
Robert Beckebans
1d62816a77 Fixed most annoying compiler warnings on Linux 2022-05-19 16:47:24 +02:00
Robert Beckebans
547bffce82 Fixed r_showPortals 2022-05-16 19:45:34 +02:00
Robert Beckebans
b109fc7a3e idRenderBackend::DBG_ShowDebugLines works correctly 2022-05-14 10:51:19 +02:00
Robert Beckebans
cc11531f8d Fixed failed graphics state if vertex_color shader is called 2022-05-14 10:18:08 +02:00
Robert Beckebans
5177b3b121 r_showSurfaceInfo works 2022-05-13 23:07:59 +02:00
Robert Beckebans
1e4a07c41c r_showSurfaceInfo almost works 2022-05-13 21:42:00 +02:00
Robert Beckebans
478dfdf262 WIP integration of fhDoom debug line rendering 2022-05-11 21:35:25 +02:00
Robert Beckebans
f1139f7a33 Fixed unknown event 772 error on Linux 2022-05-09 14:07:19 +02:00
Robert Beckebans
17e865ae2c Fixed UI clipping bugs #669 2022-05-07 22:32:21 +02:00
Robert Beckebans
1c4968a873 Compile shaders to renderprogs2, removed motion_vectors.*.hlsl 2022-05-07 18:57:25 +02:00
Robert Beckebans
c6735ce1df Tweaked presets for Windows ARM 2022-05-01 21:36:06 +02:00
Robert Beckebans
c43a957a3f Removed obsolete .bat file 2022-04-29 18:09:24 +02:00
Robert Beckebans
f792b68ba6 Merge branch '635-nvrhi2-arm' into 635-nvrhi2 2022-04-29 17:52:48 +02:00
Robert Beckebans
ac8171f258 Cleanup 2022-04-29 17:51:58 +02:00
Robert Beckebans
a7d0b8d9e7 Astyle 2022-04-29 17:28:48 +02:00
Robert Beckebans
c2eeb037d9 Merge remote-tracking branch 'CodeLikeCXK/635-nvrhi1' into 635-nvrhi2-arm 2022-04-29 17:27:51 +02:00
Robert Beckebans
0928018a00 Added renderdoc API header 2022-04-29 17:27:30 +02:00
CodeLikeCXK
8520b23a56 Add windows arm support (without optimization). To do list: implement Neon 2022-04-28 18:48:17 +08:00
Robert Beckebans
ea296d884d Don't call ResizeFramebuffers() during bake commands! 2022-04-23 18:48:55 +02:00
Robert Beckebans
43b3375da7 bakeEnv* and bakeLightGrids partially work 2022-04-23 16:34:22 +02:00
Robert Beckebans
0c866655f8 Don't render motion vectors if standing still 2022-04-20 12:05:47 +02:00
Robert Beckebans
39227f1559 Improved TAA jittering 2022-04-20 10:54:25 +02:00
Stephen Saunders
511e18d9fd Check Vulkan header version for macro compatibility, improve VkPhysicalDeviceProperties2 variable names
(cherry picked from commit 6399dc2a48829ea25be649213cc059d5bfd1b379)
2022-04-19 16:30:22 -04:00
Stephen Saunders
23044c8e43 Enable VK_KHR_portability_enumeration for macOS on Vulkan SDK 1.3.211.0 or later 2022-04-19 16:28:47 -04:00
Robert Beckebans
a7623165b5 Fixed TAA jittering bug 2022-04-19 21:56:30 +02:00
CodeLikeCXK
800cd210f9 Fix UTF-8 BOM error 2022-04-19 21:28:26 +08:00
Robert Beckebans
51405a3e8f Simplified screenshot garbage. Closes #652 2022-04-16 16:29:17 +02:00
Robert Beckebans
54d30bbd05 Skip hands + view weapons for motion vectors 2022-04-14 14:43:14 +02:00
Robert Beckebans
6cd2b98491 TAA is working. Fixed wrong output resolution 2022-04-13 22:05:05 +02:00
Robert Beckebans
d078ada2d8 Changed the motionBlur shader to draw motion vectors 2022-04-13 12:35:00 +02:00
Robert Beckebans
2e363d6f99 Exposed TAA parameters to cvars 2022-04-12 19:24:53 +02:00
Robert Beckebans
ca1c1019d0 Less flickering 2022-04-12 18:29:55 +02:00
Robert Beckebans
1279a27a43 Copied TAA from Donut framework 2022-04-12 18:15:48 +02:00
Robert Beckebans
024ad532e2 Make shadow atlas optional for perf comparison 2022-04-09 14:58:31 +02:00
Robert Beckebans
ca6b434a63 Fixed r_skipShadows and removed r_logFile 2022-04-02 12:33:58 +02:00
Robert Beckebans
0d9d13d6f0 Fixed shadow plopping effects and reeanbled vogel disk sampling 2022-04-02 11:57:33 +02:00
Robert Beckebans
51db69a19f Use slower but more stable bin 2d packing for now 2022-04-01 19:54:09 +02:00
Robert Beckebans
b9ceae755e Fixed missing graphics state updates if the viewport changes 2022-04-01 19:19:25 +02:00
Robert Beckebans
45b75aa623 Bumped r_shadowMapAtlasSize to 16384 2022-04-01 17:38:52 +02:00
Robert Beckebans
f6fd593c72 Added faster Quad Tree for rectangle packing 2022-04-01 17:10:53 +02:00
Robert Beckebans
d6a43278db Don't use atlas for interactions that didn't fit into the atlas 2022-04-01 13:55:34 +02:00
Robert Beckebans
98368669fa Shadowmap atlas is working if there are not too many lights 2022-03-31 22:45:29 +02:00
Robert Beckebans
c0e4082651 Use shadow atlas for interaction rendering 2022-03-31 22:07:05 +02:00
Robert Beckebans
63fe4a167a Sort and render shadows into shadowmap atlas 2022-03-31 18:42:52 +02:00
Robert Beckebans
52545c8230 Shadow atlas preparations 2022-03-30 12:19:06 +02:00
Robert Beckebans
361c0292ec Added missing tonemapping vertex shader 2022-03-30 12:13:43 +02:00
Robert Beckebans
77a73a2cd2 Fixed compile and runtime problems 2022-03-30 12:09:22 +02:00
Robert Beckebans
a18d2609ce Merge branch 'master' into 635-nvrhi1 2022-03-30 12:08:40 +02:00
Robert Beckebans
b4077053bb Added missing TonemapPass.h/cpp files 2022-03-29 15:26:16 +02:00
Robert Beckebans
144ce1dab9 Disabled FullscreenFXManager::Process() post processing effects #647 2022-03-29 15:25:25 +02:00
Robert Beckebans
cf128e42c8 Fixed total frame GPU time query 2022-03-24 19:28:10 +01:00
Robert Beckebans
4e776840d9 Implemented NVRHI timer queries 2022-03-24 18:22:41 +01:00
Stephen Saunders
308d0138cb sound/OpenAL/AL_CinematicAudio.cpp: Zero out music buffer on shutdown 2022-03-23 23:17:06 +01:00
Robert Beckebans
ff29a5dbd4 Perf: Only write constant buffer if it has changed 2022-03-23 21:13:06 +01:00
Robert Beckebans
62429d8f46 Optimized perf by fixing several issues with the GPU<->CPU syncing 2022-03-23 20:22:05 +01:00
Robert Beckebans
d4f1d99bd7 Some work on GPU Skinning and Vulkan debugging 2022-03-22 20:46:44 +01:00
Robert Beckebans
fe80d08eb0 Fixed crash with NVRHI context 2022-03-22 12:05:11 +01:00
Robert Beckebans
51d317543c Sync NVRHI branch by SP 2022-03-22 11:16:44 +01:00
Davide Beatrici
d88fa4f694 cm/CollisionModel: Initialize "material" and "id" fields in "contactInfo_t"
The Dark Mod only does it in idCollisionModelManagerLocal::ContentsTrm().

Prey only initializes "id", in idCollisionModelManagerLocal::Translation().
2022-03-18 03:11:35 +01:00
Robert Beckebans
ccd5086d20 Attempt to implement DrawStencilShadowPass 2022-03-16 17:43:55 +01:00
Robert Beckebans
51294e6549 Small vertex cache cleanup 2022-03-16 15:24:08 +01:00
Robert Beckebans
00612732d4 Fixed mirrors 2022-03-16 13:32:19 +01:00
Robert Beckebans
24853acc45 GL_State cleanup. Fixed most GUI rendering problems 2022-03-16 12:20:58 +01:00
Robert Beckebans
0eb9b97471 Trying to use default samplers for all unknown material stages 2022-03-15 18:57:47 +01:00
Robert Beckebans
85ff5d2a66 Use FataError for NVRHI errors so we get an small info window later on 2022-03-15 17:06:36 +01:00
Robert Beckebans
07bef6e114 Fixed linear RGB -> sRGB gamma ramp after tone mapping 2022-03-15 16:58:07 +01:00
Robert Beckebans
91ae3aa3ed Sync NVRHI branch by SP 2022-03-15 11:41:56 +01:00
Davide Beatrici
229496cffb sound/OpenAL/AL_CinematicAudio.cpp: Remove address check against array
neo/sound/OpenAL/AL_CinematicAudio.cpp:246:6: warning: address of array 'this->alMusicBuffercin' will always evaluate to 'true' [-Wpointer-bool-conversion]
        if( alMusicBuffercin )
        ~~  ^~~~~~~~~~~~~~~~
2022-03-15 09:30:57 +01:00
Robert Beckebans
c336da5ffd Optimized ShadowMapPass 2022-03-14 19:20:23 +01:00
Robert Beckebans
69a27458a0 Fixed Imgui rendering 2022-03-14 16:34:38 +01:00
Robert Beckebans
274766f5d5 Mars City 1 works, disabled Binding/Sample Caches 2022-03-14 14:00:42 +01:00
Robert Beckebans
59349e88f3 Removed obsolete samplers from lightgrid/envprobe shaders 2022-03-14 10:47:20 +01:00
Robert Beckebans
851e8179bb Fixed binding layout for bumpyenvironment shaders 2022-03-14 10:03:13 +01:00
Robert Beckebans
fd7802dfb4 Sync NVRHI branch by SP 2022-03-14 10:00:30 +01:00
Robert Beckebans
827bb275d6 Fixed cascaded shadowmap rendering 2022-03-12 11:38:21 +01:00
Robert Beckebans
21ce622907 Run garbage collection between render passes 2022-03-12 11:28:55 +01:00
Robert Beckebans
e85851991b Fixed skybox shader 2022-03-12 11:28:34 +01:00
Robert Beckebans
52d20500d7 Outcommented unused renderpasses 2022-03-12 10:14:05 +01:00
Robert Beckebans
8f97eb6973 Removed obsolete RBDoom 1.1 ambient_light shader 2022-03-11 18:18:02 +01:00
Robert Beckebans
f1a499093f Only add valid entries to the binding sets 2022-03-11 18:17:31 +01:00
Robert Beckebans
a63c5ba5f1 Got point light shadowmaps working 2022-03-11 12:56:07 +01:00
Robert Beckebans
67a0768560 Fixed sRGB and screen size problems with the DX12 device manager 2022-03-11 11:44:07 +01:00
Robert Beckebans
fc0e8e7c07 Use RGB565 -> RBGA8 loading hack like on Apple 2022-03-10 20:26:29 +01:00
Robert Beckebans
01a86e2b3d Fixed flash light shadow maps 2022-03-10 20:20:48 +01:00
Robert Beckebans
529d91f611 Some spot light shadowmap debugging 2022-03-10 19:42:59 +01:00
Robert Beckebans
28c756b1d7 Don't resize Framebuffers after device shutdown 2022-03-10 19:42:43 +01:00
Robert Beckebans
9cb65c4fcf Don't reload intrinsic images 2022-03-10 19:42:06 +01:00
Robert Beckebans
19f38c9a83 Renderer can load the test_box.map 2022-03-09 21:31:40 +01:00
Robert Beckebans
6ae1f07e95 Synced with Steve's latest NVRHI code 2022-03-09 20:40:15 +01:00
Robert Beckebans
5b98d387ce Fixed compiling of the Vulkan backend 2022-03-06 10:26:37 +01:00
Robert Beckebans
219033e26a Fixed black screen after reloadImages #621 2022-03-06 10:10:18 +01:00
Robert Beckebans
2ce90cf97b Applied Astyle 2022-03-06 08:59:13 +01:00
Robert Beckebans
d212e5b948 Merge remote-tracking branch 'SRSaunders/master' 2022-03-06 08:34:02 +01:00
Robert Beckebans
67a5e99597 Smaller merge changes with master 2022-03-06 08:32:26 +01:00
Robert Beckebans
e3101a6b05 Added Zoomap categories railing, pipe and ladder and changed it to look for .bobj and .bdae files 2022-03-05 18:55:30 +01:00
Robert Beckebans
f1668b7db8 Stencil shadows work again (thanks to Stephen Pridham), Renderer Sync #395 2022-03-05 18:27:27 +01:00
Stephen Saunders
1ac9baca5d Tiny fix for printing Bink audio stream sample format 2022-03-03 16:31:49 -05:00
Stephen Saunders
8f474b9cb4 Tiny fix for printing RoQ cinematic filename 2022-03-03 11:59:32 -05:00
Stephen Saunders
bd3c82c930 Align frame logic for Cinematic decoders (ffmpeg, Bink, RoQ), use correct shaders, fix bugs in RoQ looping and testVideo cmd 2022-03-02 20:49:26 -05:00
Robert Beckebans
5ebbbf32e4 Added support for the prototype.wad in the convertMapQuakeToDoom cmd 2022-03-02 17:47:05 +01:00
Robert Beckebans
6d7ebabcbf Fixed a divide by zero bug in the convertMapToValve220 cmd 2022-03-02 09:27:09 +01:00
Robert Beckebans
daf5ed43c0 Export FGD files to base/_tb/fgd/*.fgd 2022-02-27 17:26:58 +01:00
Robert Beckebans
3de739ae32 Added small hack to load autogenerated genmodel_ entities 2022-02-27 16:58:25 +01:00
Robert Beckebans
920df3df63 Tweaked export to TrenchBroom cmds with proxymodels 2022-02-27 13:56:14 +01:00
Stephen Saunders
69be2f1e05 Enabled RoQ & ffmpeg decoders in testVideo cmd, fixed RoQ looping with ffmpeg decoder 2022-02-26 18:51:01 -05:00
Robert Beckebans
67aaf93af8 Added 2D Bin Packing library 2022-02-26 18:48:15 +01:00
Robert Beckebans
5368eb5521 Added more categories to makeZooMapForModels cmd 2022-02-26 15:53:14 +01:00
Robert Beckebans
60d7801780 Added category sorting to makeZooMapForModels cmd 2022-02-26 15:29:39 +01:00
Robert Beckebans
75d55a7ed3 Tweaked makeZooMapForModels cmd with better sorting 2022-02-25 22:14:45 +01:00
Stephen Saunders
c4bc217d26 Linux case sensitivity hack for opening RoQ files with ffmpeg 2022-02-25 01:13:54 -05:00
Robert Beckebans
9cc5fa7a3a Write labels above model groups in zoo maps 2022-02-24 22:14:40 +01:00
Stephen Saunders
27c1fe476a Close all ffmpeg contexts, remove packet queue, support ffmpeg RoQ decoding with audio 2022-02-24 02:04:30 -05:00
Robert Beckebans
cbc9a31b74 Added cmd makeZooMapForModels 2022-02-23 22:52:23 +01:00
Stephen Saunders
f24d7ecc16 Fix XAudio2 and OpenAL errors on shutdown, improve cinematic audio queue mgmt
(cherry picked from commit 4bfdf622f94b52eae52faece058c0e3d6139551e)
2022-02-22 20:16:31 -05:00
Stephen Saunders
22cd420513 More cinematic audio memory mgmt fixes, support cinematic audio looping
(cherry picked from commit bb0b260baa187d2dd88ef2a631e7b7f163095b10)
2022-02-22 19:52:24 -05:00
Robert Beckebans
b2f68faffe exportModelsToTrenchBroom writes another FGD with helper entities 2022-02-22 21:36:00 +01:00
Robert Beckebans
4bdaca627f Don't use BC1_UNORM_SRGB because it breaks YCoCg decoding 2022-02-21 23:08:31 +01:00
Robert Beckebans
f9c9f9c65e Changed engine branch name to NVRHI 2022-02-21 22:09:48 +01:00
Robert Beckebans
d557c82b35 Improved RenderDoc logging 2022-02-21 22:08:04 +01:00
Robert Beckebans
1d93ad0a58 It can start and load a map! 2022-02-21 21:26:36 +01:00
Robert Beckebans
535e56f580 It's compiling! 2022-02-21 19:56:21 +01:00
Robert Beckebans
025ba4419e Added more missing files 2022-02-21 19:21:16 +01:00
Robert Beckebans
9b4b93e8ef Added missing files 2022-02-21 18:15:56 +01:00
Robert Beckebans
c37dc4e04e NVRHI merge by Stephen Pridham part 2 2022-02-21 17:59:13 +01:00
Robert Beckebans
16a21fdeb8 NVRHI merge by Stephen Pridham part 1 2022-02-21 16:29:53 +01:00
Robert Beckebans
2282cfb9d8 Differentiate between classic func_groups and TB layers 2022-02-19 14:43:49 +01:00
Stephen Saunders
922f9eddef Cinematic Video and Audio memory management fixes
(cherry picked from commit 40a9190283d30180a3b7e4ab9b77f3c3728dad4f)
2022-02-18 14:01:53 -05:00
Robert Beckebans
1f2df87be7 Fixed a couple of func_groups with TrenchBroom related bugs 2022-02-18 18:00:09 +01:00
Robert Beckebans
c23709c2db Formatted code with Astyle 2022-02-12 12:55:46 +01:00
Robert Beckebans
4bba6b3e46 Merge remote-tracking branch 'SRSaunders/gpu-support' 2022-02-12 10:54:56 +01:00
Stephen Saunders
1c6ec627f2 Minor fix for astyle-code.sh compatibility with macOS grep
(cherry picked from commit 82206ebeaac285d68add1042e1f151857e67e53b)
2022-02-10 10:40:43 -05:00
Stephen Saunders
d0d3917ba1 Simplify ffmpeg audio code, sync ffmpeg audio frames to video, enable Bink cinematic audio, ensure audio buffers are released
(cherry picked from commit 62853bfc0307d1507903f0454bd062f387f775e2)
2022-02-10 10:40:30 -05:00
Stephen Saunders
846c00c885 Fix XAudio2 cinematic audio and restore Windows build
(cherry picked from commit f09a3083e220f1a715816e097e0e5342ca48456d)
2022-02-05 21:08:27 -05:00
Stephen Saunders
3be85d9c4b ffmpeg 5 compatibility plus cinematic audio playback on OpenAL & XAudio2
(cherry picked from commit bcb683e8e6ba6cb23acac2f1121c6e3eece1ed01)
2022-02-05 21:08:11 -05:00
Robert Beckebans
cde21c018d Did a little Quake to Doom experiment 2022-02-05 15:49:50 +01:00
Stephen Saunders
813767feea Generalize handling of heap avoid flags in Vulkan and VMA Allocators
(cherry picked from commit 7c49b044d37ff65599470103d360b8d46045bfb5)
2022-02-01 14:38:59 -05:00
Stephen Saunders
6d41dae922 Add display of VK_MEMORY_HEAP_MULTI_INSTANCE_BIT to Vulkan_PrintHeapInfo console command
(cherry picked from commit 794d8e52c81448c09b537b4b9b9767d69dbfc563)
2022-02-01 01:18:27 -05:00
Robert Beckebans
2ea2db396d Fixed random alpha values within exportImagesToTrenchBroom cmd 2022-01-31 16:40:29 +01:00
Stephen Saunders
552ada02d7 macOS Vulkan: Check and disable MoltenVK's use of Metal argument buffers for shader allocation scalability
(cherry picked from commit 939ab3b6396bd7196ce7f0c16cf59c83ebdc6a4e)
2022-01-30 12:41:12 -05:00
Stephen Saunders
96da1f3eed Fix heap flags check in Vulkan Allocator and add heap flags check to VMA Allocator
(cherry picked from commit 488f8d27616570029de9429cf4794886f6d209e1)
2022-01-29 13:28:10 -05:00
Robert Beckebans
e978d92aeb Added TrenchBroom helper entities like func_door_model 2022-01-29 18:10:54 +01:00
Stephen Saunders
e4021513d1 Fixes for: Vulkan+BinkDec validation errors, BinkDec replay in PDAs, macOS Vulkan+BinkDec stall, VK_EXT_debug_utils handling, Vulkan gfxInfo on Windows & Linux, idVulkanAllocator::Free(), idCinematicLocal::GetStartTime(), ImGui timings for timedemo first pass
(cherry picked from commit 2a93ad2380374e1a327f7af4f8e71c27b2b51528)
2022-01-28 10:33:07 -05:00
Robert Beckebans
b31840bda1 Moved CommandlineProgressBar out of RenderCommon.h to its own files 2022-01-22 16:20:21 +01:00
Robert Beckebans
c7499aeb8e Bumped version to 1.4.0 2022-01-22 14:55:03 +01:00
Robert Beckebans
da947328f0 Fixed some wrong texture projections with convertMapToValve220 2022-01-21 19:38:58 +01:00
Robert Beckebans
92c5cbf758 convertMapToValve220 now works with just the .resource files 2022-01-21 18:33:42 +01:00
Robert Beckebans
7279cd5d05 Small export path change 2022-01-20 22:28:18 +01:00
Robert Beckebans
7a0ac78762 Added cmd exportImagesToTrenchBroom 2022-01-20 22:25:06 +01:00
Stephen Saunders
bf889b9631 Vulkan: Simplify Instance error checking, fix validation errors when using BINK decoder, check GPU's maxSamplerAnisotropy
(cherry picked from commit f0f7536e888e4a4b70a71510d5b61313aa4ebb6a)
2022-01-19 23:41:18 -05:00
Stephen Saunders
0c6e72be37 Improve Vulkan instance extension setup, add Vulkan instance and driver info to gfxInfo
(cherry picked from commit 631358eda14468bdc3f8dd5c0ed7998b8e0be0eb)
2022-01-19 23:40:45 -05:00
Robert Beckebans
b7f952ad80 Extended idFileSystem::ListFilesTree to recursive .resources files 2022-01-10 23:22:26 +01:00
Robert Beckebans
55abfc26aa Added entityDef misc_model helper for TB 2022-01-09 11:41:01 +01:00
Robert Beckebans
ef47fc9092 Fixed bug by last filesystem change 2022-01-08 18:33:55 +01:00
Robert Beckebans
c104fff7ea Autoremove rotation keyword for TrenchBroom 2022-01-08 14:30:19 +01:00
Robert Beckebans
3cc6c0744e Added exportModelsToTrenchBroom console command 2022-01-07 18:46:35 +01:00