Commit Graph

3905 Commits

Author SHA1 Message Date
Denis Pauk 8d0261c6a0 models: add md5 support
Has:
 * no hacks for replace md2 with md5 automatically(TODO),
 * no logic for merge anim and mesh content as required by loader(TODO),
 * automaticlly converted md5 to md2 like internal format.

Part of https://github.com/yquake2/yquake2remaster/issues/4

Based on:
 * http://tfc.duke.free.fr/coding/md5-specs-en.html
 * https://github.com/Shpoike/Quakespasm/blob/qsrebase/Quake/gl_model.c (Normals code)

Also looked to:
 * https://github.com/Novum/vkQuake/blob/master/Quake/gl_model.c#L4181
 * https://github.com/fte-team/fteqw/blob/master/engine/common/com_mesh.c
 * 1b42134e11
2024-01-28 12:28:17 +02:00
Denis Pauk ab198a962e filesystem: remove unused Com_FilePath 2024-01-22 00:14:14 +02:00
Sajt 6479b41be7 models: Add normals convert code
Based on https://icculus.org/projects/qshed/
2024-01-22 00:13:17 +02:00
Denis Pauk b375239b61 models: fix mdl texture coordinates 2024-01-21 00:21:54 +02:00
Denis Pauk d5020ecd82 models: make MAX_LBM_HEIGHT check optional 2024-01-20 23:53:46 +02:00
atsb 744e33cdf2 Fixing an incorrect cvar 2024-01-20 14:13:55 +02:00
Denis Pauk e2b2efaa59 models: in mesh could be more than 16k glcmds 2024-01-17 01:11:39 +02:00
Denis Pauk 014dd11b2e clean up function definitions 2024-01-07 19:22:09 +02:00
Denis Pauk 9b3b4b44df Merge remote-tracking branch 'yquake2/master' 2024-01-07 14:51:26 +02:00
Yamagi ceee1c1d32
Merge pull request #1081 from protocultor/overbrightbits_revenge
Fixed gl1_overbrightbits limiter (for real now)
2024-01-07 11:39:11 +01:00
Jaime Moreira adf638d1f4 Controller buttons read more succinctly 2024-01-06 13:35:48 -03:00
Jaime Moreira fb46007bc3 Fixed gl1_overbrightbits limiter, for real now
Allowed values are 0, 1, 2 and 4 only.
Updated documentation, again.
2024-01-06 13:32:48 -03:00
Jaime Moreira 9f9c212648 OpenGL 1 errors are visible now
Needs DEBUG=1 to enable
2024-01-06 13:29:13 -03:00
Denis Pauk 7372623056 cleanup function definitions 2024-01-01 17:36:53 +02:00
Denis Pauk 13466185e6 models: update models min/max on load 2024-01-01 15:39:05 +02:00
Denis Pauk 6701ad8cc5 collision: add additional checks 2023-12-30 16:31:47 +02:00
Denis Pauk 59d6766e90 fix typo in 68e76c9c 2023-12-30 02:24:35 +02:00
Denis Pauk 68e76c9cfe models: set alias min/max in single place 2023-12-30 02:07:35 +02:00
Denis Pauk 4a6632dac6 models: Show list of model images in developer mode 2023-12-29 19:48:17 +02:00
Denis Pauk 057087b7dc renders: share R_CullAliasMeshModel 2023-12-29 17:23:47 +02:00
Denis Pauk f9a2fee5b3 render: extend vertex to short 2023-12-28 19:59:47 +02:00
Denis Pauk f89ea15d14 renders: Support embeded image use 2023-12-28 09:31:04 +02:00
Denis Pauk abce26bdff models: share image load on model read 2023-12-28 09:03:04 +02:00
Denis Pauk b2d58ee171 models: save embeded image 2023-12-28 08:46:45 +02:00
Denis Pauk 4d56576871 gl3,gl4: check worldmodel before dlight push
Fix crash if open multiplayer before load map.
2023-12-28 08:20:07 +02:00
Denis Pauk 083ea68a80 refresh: split models file to maps.c 2023-12-27 23:15:35 +02:00
Denis Pauk 22d36d6bfe Revert "client: Update stb_image_resize"
This reverts commit a08a8d35e1.

Fix visual glitches on texture edges in soft render.
2023-12-27 18:21:36 +02:00
Denis Pauk 985fa68b97 cinema: smaker video support if fully covered by avcodec 2023-12-27 17:50:25 +02:00
Denis Pauk 3e7bd79c5b models: model always has one mesh at least 2023-12-27 01:37:17 +02:00
Denis Pauk 531dc2f872 models: Use flex mesh type insteaad list of short 2023-12-27 00:54:30 +02:00
Denis Pauk be95a149dc models: Use internal dmdx_t format 2023-12-27 00:13:06 +02:00
Denis Pauk 519b72adc9 models: function naming cleanup 2023-12-26 22:22:04 +02:00
Denis Pauk d54f070246 gl3,gl4: cleanup light code 2023-12-26 14:59:10 +02:00
Denis Pauk 2a8e84ccd8 gl1,gl3,gl4,vk: sync R_LerpVerts 2023-12-26 14:14:31 +02:00
Denis Pauk 06ee407efa render: remove skin count limit 2023-12-25 14:44:44 +02:00
Denis Pauk d4aa45d6cb Version bump to 8.31RR3 2023-12-25 00:14:45 +02:00
Denis Pauk 8ecef62a5d clean up model list show 2023-12-25 00:05:38 +02:00
Denis Pauk 70b0b1c77a Update windows build instruction 2023-12-25 00:05:38 +02:00
Denis Pauk 6b4f197ac0 game: Add third person view
Based on codes:
 * Lazarus mod
 * KMQuake2 codes
 * Slight Mechanical Destruction mod

https://bitbucket.org/Knightmare66/kmquake2_stable/src/master/game/p_chase.c
2023-12-25 00:05:38 +02:00
Denis Pauk 45767961b0 win64: Add github action creaton of win64 binary 2023-12-24 23:58:54 +02:00
Denis Pauk 1c75ef7c07 readme: update code status 2023-12-21 19:47:43 +02:00
Denis Pauk 45413644bf gl4: remove GLES usage 2023-12-21 19:24:14 +02:00
Denis Pauk fc543be4f5 gl3,gl4: LIGHTMAPS: Add support for DECOUPLEDLM.
Based on 9cb349e6e9
2023-12-21 18:59:33 +02:00
Denis Pauk bd86f646da refresh: Sync lightmap function names 2023-12-21 17:15:52 +02:00
Denis Pauk a180fd3086 Merge remote-tracking branch 'yquake2/master' 2023-12-19 23:22:36 +02:00
Yamagi e40f5d1480
Merge pull request #1077 from apartfromtime/Fix-duplicate-entries
Fix duplicate menu key keyboard entries
2023-12-19 18:33:39 +01:00
Denis Pauk 1e6042ba35 client: fix cinematic run after load map
Fix regression from 51a8dfb6
2023-12-19 19:25:48 +02:00
Denis Pauk b423cf6865 soft: fix colorspace for direct cinema 2023-12-19 15:30:08 +02:00
Denis Pauk 2b24ee9b53 soft: scale small video
in case if aspect ratio is same as window
2023-12-19 01:40:18 +02:00
Denis Pauk fa3ec83253 soft: add warning if is already flushed 2023-12-19 00:39:45 +02:00