Shiny Metagross
3f3cc5bbc3
IQM Refactor start
...
- Refactored IQM and calculateBones to process TRS at runtime which resolves some of the faulty animations with large rotations. Will also make bone manipulations much easier to do
2022-10-31 11:34:55 +01:00
Marisa the Magician
c36da35e37
Fix inconsistent distance and hit position on traces that skip everything.
...
As it currently stood, only traces that never found anything in traversal had their distance and final position corrected.
Meanwhile, traces that skipped everything would return the distance and position of the last thing they crossed instead.
This change makes both cases consistent by "filling out" the remainder of the trace line for the latter.
2022-10-30 15:20:01 +01:00
Magnus Norddahl
181eda0a83
Fix canvas textures getting clipped by wrong scissor box
2022-10-28 18:01:59 -04:00
Magnus Norddahl
1a1adc5c29
Fix vulkan backend clearing the canvas textures to undefined contents
2022-10-28 14:53:05 -04:00
Christoph Oelckers
4ce0ef41b5
- made DMover and subclasses non-abstract so they can be inherited from.
...
This is needed for interpolated custom floor/ceiling movers.
2022-10-26 17:45:02 +02:00
Christoph Oelckers
6eab875ec2
- added option to show hub and episode names on the alt HUD.
...
Still very much work in progress because few mods have set this up.
CVARs default to off and are not exposed to the menu.
2022-10-26 17:44:51 +02:00
Christoph Oelckers
7cd7630dbd
- deleted some obsolete settings from project.
2022-10-26 17:44:51 +02:00
Christoph Oelckers
7e0084f56b
- Backend update from Raze.
2022-10-25 07:02:45 +02:00
Christoph Oelckers
2b805e196d
- do two-step init of CVARs to ensure that flag and mask vars always find their master CVar.
2022-10-24 19:27:04 +02:00
alexey.lysiuk
da33b0f9c3
- removed obsolete defaults from Cocoa backend
...
This legacy code from the time of exclusive fullscreen mode began to crash after changes in console variables handling
2022-10-24 09:57:36 +03:00
Christoph Oelckers
671b8696bb
- made CVar declarations type safe again.
2022-10-22 09:29:38 +02:00
Christoph Oelckers
453688ccc6
- reworked CVARs to not use a linked list and to be initialized manually.
...
This solves two problems:
* The linked list is too slow, a map is better. A map cannot be used with statically allocated CVARs because order of initialization is undefined.
* The current CVAR system is an unordered mishmash of static variables and dynamically allocated ones and the means of identification are unsafe. With this everything is allocated on the heap so it can all be handled the same by the cleanup code.
2022-10-21 18:56:43 +02:00
Christoph Oelckers
ef887403cf
- marked a few Printf calls in critical error paths as PRINT_NONOTIFY.
2022-10-20 23:55:29 +02:00
Christoph Oelckers
07f08de474
- fixed some warnings.
2022-10-20 22:22:30 +02:00
Christoph Oelckers
7abe718abb
- removed some stuff from CMake that no longer applies.
2022-10-20 22:16:34 +02:00
Christoph Oelckers
0ba5803111
- two more CMake checks that are not needed anymore.
...
Neither of these function is in use so we do not need to check for them.
2022-10-20 21:19:01 +02:00
Christoph Oelckers
9e76faff1f
- removed some 32bit only CMake code.
2022-10-20 21:11:18 +02:00
Christoph Oelckers
5a52f61096
- fixed: R_LoadVoxelDef did not fully initialize the voxel descriptor it creates.
2022-10-20 20:23:35 +02:00
Christoph Oelckers
96e98fc4a8
- use field initializers for VoxelOptions
2022-10-20 20:17:14 +02:00
Christoph Oelckers
70df444660
- Backend update from Raze
...
* fix for serializing vector arrays.
* a few adjustments for asan on Windows.
* NOMUSICCUTOFF flag for movie player.
* a bit of cleanup.
2022-10-20 20:12:06 +02:00
Christoph Oelckers
ca8897028f
- stupid typo...
2022-10-20 19:06:07 +02:00
Christoph Oelckers
ba8a334862
- removed two bogus asserts from the script compiler.
2022-10-20 18:39:51 +02:00
Christoph Oelckers
1855edba37
- don't crash on null pointers in V_GetFont.
2022-10-20 18:18:22 +02:00
Christoph Oelckers
4686d10f41
- zero the velocity of crunched sprites.
...
Since their size is zeroed, they are no longer subject to collision detection and may slide out of the level otherwise.
2022-10-20 17:12:43 +02:00
Christoph Oelckers
6ba4295136
- don't crash when destroying incomplete textures.
...
This can happen during TEXTURES parsing in case of an error.
2022-10-20 17:12:43 +02:00
Christoph Oelckers
b6c5232fea
- try to keep the engine stable for as long as possible if a VM exception occurs in OnDestroy while running a cleanup.
...
This will still crash, but run long enough for the exception message to be visible.
2022-10-20 17:12:43 +02:00
Christoph Oelckers
936e89e3d4
- fixed F2DDrawer::SetClipRect.
2022-10-20 17:12:43 +02:00
Christoph Oelckers
54e0201204
- added vanilla donut handling to compat_floormove.
2022-10-20 17:12:43 +02:00
nashmuhandes
8394de00ca
Fixed: voxel models pitch/roll properties weren't initialized correctly
2022-10-20 08:05:14 -04:00
Christoph Oelckers
457b9b71d9
- disable the native part of coronas as well.
2022-10-20 07:50:53 +02:00
nashmuhandes
80a31b074d
Disable coronas for now
2022-10-19 22:52:27 +02:00
inkoalawetrust
29421e6975
Added QF_SHAKEONLY
...
The QF_SHAKEONLY flag changes the behavior of earthquakes with a damage radius, so that they only shake actors around, without also harming them.
2022-10-19 22:50:50 +02:00
inkoalawetrust
457ad97553
Added QF_AFFECTACTORS.
...
The QF_AFFECTACTORS flag makes the thrusting and harming of damaging earthquakes also affect monsters. Monsters with DONTTHRUST will not be flung around by earthquakes.
2022-10-19 22:50:50 +02:00
inkoalawetrust
05a5a4be51
Added the QF_GROUNDONLY flag.
...
The QF_GROUNDONLY flag makes earthquakes only shake the player while they are standing on the ground.
2022-10-19 22:50:50 +02:00
Shiny Metagross
7722784de6
Voxels did not have an animationID causing a crash
...
- Needed to assign -1 to the first index of animations for voxels or a crash occurs
2022-10-19 22:48:57 +02:00
Shiny Metagross
7972afc350
Revert "Before moving boneSelector from unsigned complete"
...
This reverts commit 8f2b8fa8789a5d4aff3890334e2f7368efa99572.
2022-10-19 22:48:57 +02:00
Shiny Metagross
ee7c467a17
Before moving boneSelector from unsigned complete
...
- boneSelector being unsigned might be the reason why gles is having a hard time. Just stashing this commit here as a bookmark in case I need it
2022-10-19 22:48:57 +02:00
Shiny Metagross
13edabac19
Fixed crash on Intel cards with less than 64 uniform block align
...
- This should fix the crash with Intel cards. Sprite blinking appears to not occur either
2022-10-19 22:48:57 +02:00
Shiny Metagross
a8bab6a21d
Intel fix
...
- GZDoom can launch for Intel users - IQMs work for Intel too
2022-10-19 22:48:57 +02:00
Shiny Metagross
5b60118af2
HUD models now render properly
...
- IQM HUD Models will now render properly
2022-10-19 22:48:57 +02:00
Shiny Metagross
6564adf310
Fixed a couple bugs
...
- MODELSAREATTACHMENTS was basically being applied anyways
- Fixed a crash related to using an animation that never had the vertex buffer drawn because it was never used as a model
2022-10-19 22:48:57 +02:00
Shiny Metagross
be9a671217
Update models_iqm.cpp
...
- Fixed an issue with IQMs exported from blender that caused some issues in the blend weights
2022-10-19 22:48:57 +02:00
Shiny Metagross
ab7be9b4a4
This fixes models without animation clips
...
- IQMs lacking animation clips would not appear
2022-10-19 22:48:57 +02:00
Shiny Metagross
b7c1c53eb0
Almost done with To-Dos
...
- The compile errors should be fixed
- Implemented a way for skeletal models using the MODELSAREATTACHMENTS flag to not upload duplicate bones to the bone buffer
2022-10-19 22:48:57 +02:00
Shiny Metagross
3f8141ed04
I'm not done with this
...
- I need to figure out how I'm gonna reference the same boneStartIndex between the indices. Maybe some property in smf? The problem is that even though the bone calculations are done just once per instance of the actor when the flag is enabled, the bone buffers are being copied still, and if there's too much data, some will quit uploading because it's full. Besides doing this, I may just see about increasing the buffer size if possible. It's really just not very big.
2022-10-19 22:48:57 +02:00
Shiny Metagross
3c9a1ffe5e
Give a fatal error when no mesh data is loaded
...
- Part of having mesh data in an IQM includes joints. If a model doesn't have any mesh data to it, it won't have joints, and those are necessary. Poses are a different story however.
2022-10-19 22:48:57 +02:00
Shiny Metagross
5f0bf8eda6
Update models.cpp
...
- Removed an unnecessary bool
2022-10-19 22:48:57 +02:00
Shiny Metagross
5670e6f54c
Some of the to-dos
...
- Implemented Animation parameters for A_ChangeModel
- Made a modeldef flag to treat additional model indices as just attachments, meaning they will use armature data from index 0
- Fixed an issue with A_ChangeModel where generated indices lower than smf frame amounts could not actually generate anything
2022-10-19 22:48:57 +02:00
Shiny Metagross
e9e919b54c
Changes before To-Dos
...
- Removed redundant AttachAnimationData functions from derived model classes
- Fixed indentation in IQM loader
- Fixed a merging issue in the MD3 FindFrame
- Fixed a formatting issue in FindFrame in Model.h?
2022-10-19 22:48:57 +02:00
Shiny Metagross
08f520f1c6
IQM Support Implemented
...
More info to come
2022-10-19 22:48:57 +02:00
Christoph Oelckers
dbd6a9dea1
- fixed DrawLine commands by giving them a consistent floating point interface.
2022-10-19 20:39:41 +02:00
Christoph Oelckers
57add9a45c
- fixed some warnings and updated vectors.h
2022-10-15 12:10:01 +02:00
Christoph Oelckers
1241b277f3
- fixed direct native interface for Draw(Thick)Line.
2022-10-15 09:10:49 +02:00
Christoph Oelckers
c0c9f8e15c
- Backend update from Raze.
2022-10-14 20:11:05 +02:00
Christoph Oelckers
169053587c
- fixed: The main loop never checked the cutscene flag for disabling wipes.
2022-10-14 07:10:15 +02:00
Chris Robinson
9aee7415eb
Sync movie video playback to the audio, when possible
2022-10-14 07:10:06 +02:00
Christoph Oelckers
f34ba48e3e
- constant update.
2022-10-12 19:30:16 +02:00
Magnus Norddahl
37039721bd
Fix washed out colors in Vulkan HDR mode
2022-10-11 00:10:02 +02:00
Chris Robinson
d2f8c57136
Make frame timing consistent between movie players
2022-10-10 08:33:23 +02:00
Chris Robinson
bf2e7c210d
Use a MovieAudioTrack for synchronized audio with MvePlayer
2022-10-10 08:33:23 +02:00
Chris Robinson
573784b37f
Handle the SoundStream in MvePlayer instead of InterplayDecoder
2022-10-10 08:33:23 +02:00
Chris Robinson
bf933b3904
Decode audio and video separately in InterplayDecoder
2022-10-10 08:33:23 +02:00
Chris Robinson
fa2cea3e5b
Read whole chunks at a time from Interplay MVE files
2022-10-10 08:33:23 +02:00
Chris Robinson
80bf62cb3c
Start the VPX audio track on the first frame
...
MoviePlayer::Start is called about a second (potentially) before
MoviePlayer::Frame starts getting called to actually play the video, causing
the audio to start early and require significant synchronization adjustment.
This isn't ideal to constantly check if the audio track needs to play in
MoviePlayer::Frame, but it's better than starting prematurely.
2022-10-10 08:33:23 +02:00
Chris Robinson
5e465a65e2
Make a common class to help with movie audio streams
2022-10-10 08:33:23 +02:00
Chris Robinson
d11e2ef1ac
Always output 16-bit samples from SmackerDecoder
2022-10-10 08:33:23 +02:00
Chris Robinson
3b6723e6f2
Better report the number of Smacker audio tracks
2022-10-10 08:33:23 +02:00
Chris Robinson
1a692f5c28
Synchronize Smacker movie audio tracks
2022-10-10 08:33:23 +02:00
Chris Robinson
5d00b96e5f
Read Smacker video and audio data separately
2022-10-10 08:33:23 +02:00
Chris Robinson
19a4eb79aa
Read in full packets at a time from smacker files
2022-10-10 08:33:23 +02:00
Chris Robinson
7401e02a14
Include the source latency for movie audio synchronization
2022-10-10 08:33:23 +02:00
Chris Robinson
23fff7791e
Update and use OpenAL Soft's extension headers
2022-10-10 08:33:23 +02:00
Chris Robinson
c825ff3543
Use a more reasonable buffer size for the movie audio stream
2022-10-10 08:33:23 +02:00
Chris Robinson
a2f0c1aee6
Update the audio offset when skipping a full update
2022-10-10 08:33:23 +02:00
Chris Robinson
1a233b08c3
Synchronize the VPX "soundtrack" with the frame clock
2022-10-10 08:33:23 +02:00
Chris Robinson
78f40fe99c
Add a method to retrieve the play position of a SoundStream
2022-10-10 08:33:23 +02:00
Chris Robinson
c808aad595
Play the VPX "soundtrack" as a SoundStream
2022-10-10 08:33:23 +02:00
Christoph Oelckers
94b249172a
- normalize the timer with the app start, not the epoch.
...
This ensures smaller values and less wraparounds with integer values in scripts.
2022-10-09 14:52:08 +02:00
Christoph Oelckers
b225a910a0
- Backend update from Raze
2022-10-09 13:44:43 +02:00
Kevin Caccamo
83373d117d
Fix compilation on POSIX (Linux/macOS) systems
2022-10-02 22:04:40 +02:00
Christoph Oelckers
2c29a93f1f
- fixed compile.
2022-10-02 20:45:00 +02:00
Christoph Oelckers
519005ff4d
- snd_reset cannot be shared.
2022-10-02 20:22:23 +02:00
Christoph Oelckers
00bb258d58
- moved some stuff from wipe.h to wipe.cpp.
2022-10-02 19:26:23 +02:00
Christoph Oelckers
207913bced
- added a config getter to the interface.
...
Now the only external reference left in the backend code is the call to GameMain.
2022-10-02 18:42:08 +02:00
Christoph Oelckers
e6615629b3
- move two more backend->frontend calls to the interface
2022-10-02 18:29:57 +02:00
Christoph Oelckers
b19b0db150
- moved language CVAR to backend.
2022-10-02 17:59:39 +02:00
Christoph Oelckers
73142ef2cf
- handle menu customization via callbacks.
2022-10-02 17:49:39 +02:00
Christoph Oelckers
a084667bed
- move hud scale CVARs to the backend.
2022-10-02 17:33:49 +02:00
Christoph Oelckers
9076145319
- handle autoload flags in startup through function parameters instead of directly accessing the CVARs.
2022-10-02 17:12:34 +02:00
Christoph Oelckers
f63d4d8a12
- handle Build tiles via explicit callback to the init function.
2022-10-02 16:54:43 +02:00
Christoph Oelckers
8aaab153fa
- add a system interface for CheckCheatmode and moved some sound code to the backend.
2022-10-02 16:48:56 +02:00
Christoph Oelckers
75afc69306
- moved IWAD CVARs to backend.
2022-10-02 14:42:26 +02:00
Christoph Oelckers
c596095fe0
- minor cleanup.
2022-10-02 14:36:49 +02:00
Christoph Oelckers
8e6bdd72fa
- moved UpdateVRModes, AppActive and gamestate into the backend.
2022-10-02 14:28:40 +02:00
Christoph Oelckers
65f6e788eb
- moved gitinfo.h into the backend
2022-10-02 14:20:15 +02:00
Christoph Oelckers
307ff4e163
- pass filename to I_WriteIniFailed as parameter.
...
This accessed game data from the backend.
2022-10-02 14:08:07 +02:00
Christoph Oelckers
34f30ee70b
- remove gi.h includes in backend code.
2022-10-02 14:04:24 +02:00
Christoph Oelckers
01f8131969
- moved chatmodeon to the backend.
2022-10-02 14:01:43 +02:00
Christoph Oelckers
12adee5256
- fixed a few includes
2022-10-02 13:57:36 +02:00
Player701
78360c1888
- Exported GetDisplayTopOffset for font characters to ZScript
2022-09-30 10:07:41 +02:00