Commit Graph

160 Commits

Author SHA1 Message Date
Denis Pauk b337bb07f8 Version bump 1.0.8
* port changes from yquake2
* support remaster maps light extensions
2024-07-28 11:28:22 +03:00
Denis Pauk 1d3679584e Add LIGHTGRID_OCTREE support 2024-07-24 23:21:50 +03:00
Denis Pauk 352fc5328f partial sync code style with remaster repository 2024-07-23 13:42:10 +03:00
Denis Pauk ecf2d7d829 sync shared.c code
93178d0f6b
2024-07-23 11:44:29 +03:00
BraXi dbdebb38ef Rename functions r_dlightframecount parameter to lightframecount
Renders has global variable with such name that used as parameters
for R_MarkLights shared function.

Fixes:
 * https://github.com/yquake2/yquake2remaster/issues/17
 * https://github.com/yquake2/yquake2/issues/1093

764c977106
2024-07-23 11:14:32 +03:00
Denis Pauk 89c69a3e6d pcx: fix support of bytes_per_line
https://github.com/yquake2/yquake2/issues/1119

bfeb842bd3
2024-07-23 11:10:30 +03:00
Denis Pauk 28566d3fcb
Merge pull request #50 from hbokh/feature/apple-silicon-build
Update Makefile to build on Apple Silicon
2024-06-19 19:49:14 +03:00
Henk 9bdfc4c643
Update Makefile to build on Apple Silicon
- Added additional info to README.md
- Some markdownlinting / nitpicking on README.md
2024-06-19 11:29:42 +02:00
Yamagi 61be37b183 Port ref_vk to SDL3.
* Makefile support for SDL3.
* Change API to match SDL3.
* Bump renderer API to version 7 and communicate SDL version to client.
2024-04-06 11:55:09 +02:00
Denis Pauk a7c5cca923 Add github action based windows build
For more info look to:
 * https://github.com/marketplace/actions/setup-msys2
2023-12-14 18:01:33 +02:00
Denis Pauk ba37a2b3ba Sync comments with ReRelease and version bump 2023-11-19 00:02:18 +02:00
Denis Pauk f360fa740a
Merge pull request #48 from devnexen/yquake2_constify_port
porting recent change on yquake2 here for message based callbacks
2023-09-24 01:31:55 +03:00
David CARLIER bd6e048a1e porting recent change on yquake2 here for message based callbacks 2023-09-23 21:07:31 +01:00
Denis Pauk 24933bce91 Code path clean up 2023-09-10 18:00:42 +03:00
Denis Pauk ede4069a44 cleanup rserr_invalid_fullscreen 2023-09-10 17:46:28 +03:00
Denis Pauk 6537a0e81a Fix compile warnings 2023-08-23 12:32:56 +03:00
Denis Pauk 5ba12c08b4
Merge pull request #47 from 0lvin/rerelease
Support lightmap from Q2 ReRelease
2023-08-22 17:08:18 +03:00
Denis Pauk 193e509a41 Add r_lightmap support to model render 2023-08-22 16:56:22 +03:00
Denis Pauk 0e55c57bf0 Fix BSPX:DecoupledLM header load 2023-08-22 15:53:30 +03:00
Daniel Svensson 8a0797e484 LIGHTMAPS: Add support for DECOUPLEDLM.
Decouples texture coordinates from lightmap coordinates to allow for
higher resolution lightmaps, and also avoids lightmap misalignment when
shadows span surfaces with differing texture scale.
2023-08-22 15:16:38 +03:00
Daniel Svensson 366c0efc0f LIGHTMAPS: Add support for LMSHIFT.
Could be extended to support the LMSHIFT BSPX blob. Currently mostly a
cleanup to make DECOUPLEDLM changes more readable.
2023-08-22 01:00:46 +03:00
Denis Pauk 831b29b8c5 Realloc s_blocklights if small
Use r_lightmap for show lightmap
2023-08-21 18:07:53 +03:00
Denis Pauk f1b00d6f84
Merge pull request #46 from yquake2/rerelease
Add Re-Release initial support
2023-08-13 17:07:49 +03:00
Denis Pauk c46f524a61 Add colormap generation code 2023-08-13 15:45:09 +03:00
Denis Pauk e54c635c21 Support Quake2 ReRelease textures 2023-08-13 15:30:01 +03:00
Denis Pauk dc678793ea Rework: Add nolerp filtering by * 2023-08-13 15:20:26 +03:00
Denis Pauk b31e174966 Update shared.c
030af432f7
2023-07-17 00:50:52 +03:00
Denis Pauk 8d0f6aadb1 Apply additional fix for sprites/frames count 2023-07-16 23:58:45 +03:00
Denis Pauk 6291bcb84c
Add 32 bit colors in DrawStretchRaw (#45)
Sync with 146e5615af
2023-07-16 23:24:02 +03:00
David Carlier 2df43a26d5 sync with yquake2 2023-06-18 12:47:06 +03:00
David CARLIER 81afaac7bc micro optimisations proposal 2023-06-10 20:33:36 +03:00
David CARLIER 8ba435d831 fix header validation with unitialised var 2023-06-01 21:44:13 +01:00
Denis Pauk 57a1efa727 Fix sprites/skins load overflow 2023-05-24 23:28:17 +03:00
Denis Pauk bd4c07f6ea fix heretic2 like sprite path 2023-05-24 00:27:53 +03:00
Denis Pauk b3e90ada4f Reuse vk_window and sync stb_image
5f03705c5d
2023-05-14 15:27:02 +03:00
Yamagi d66959e15e Chance render API bump to version 6, make renderer high dpi aware.
This ports the high dpi awareness stuff from the GL3 renderer to the
Vulkan renderer. The approach is the same: Implement a new function
`SDL_Vulkan_GetDrawableSize()` and hook it into the extended renderer
API, the client uses to determine the actual drawable size which is
communicated back into the renderer. Like GL3 Vulkan has a second
representation of the drawable size in the `vid` struct, overwrite
that with the actual drawable size.

Note: Starting with this commit an up to date client which implements
renderer API version 6 is needed. Older clients won't load the renderer.
2023-05-14 09:49:25 +02:00
Denis Pauk bcd0cd9e56 Version bump to 1.0.5 2023-04-08 18:26:01 +03:00
Denis Pauk 192ca4d5fd vk_model: sync code style with gl1_model 2023-03-26 00:44:27 +02:00
Daniel Gibson ca801b6445 Fix crash in DDays "wake" map, #978
the HunkAlloc size calculated in calTexinfoAndFacesSize() was too
small because that map has a *massive* water poly.
Unfortunately it's not feasible to calculate the correct size
(it depends on the size of the poly, for which I'd need the vertex
coordinates, but to get them I'd have to load them first, which requires
the allocation...), but allocating 5MB extra (instead of 1) made it work

c2d80c64ee
2023-03-26 00:40:16 +02:00
David CARLIER 3950773186 Mod_LoadFlexModel fix uninit var 2023-02-24 20:48:14 +02:00
Denis Pauk c6ce695406 Add dkm models support (daikatana)
Based on:
 * [TrenchBroom](https://github.com/TrenchBroom/TrenchBroom/blob/master/common/src/IO/DkmParser.cpp)
 * [dkm2md2](http://charles.hollemeersch.net/daikatana-tools/)
2023-02-17 23:57:00 +02:00
David Carlier 40af78f13a silencing few static analyzers warnings. 2023-01-29 09:26:23 +00:00
Denis Pauk bc7cec0e14 update docs 2023-01-28 23:22:35 +02:00
Denis Pauk f985309ad9
Merge pull request #29 from yquake2/mdl_models
MDL/FM models support
2023-01-23 01:12:17 +02:00
Denis Pauk e20dd0a717 Add fm/heretic2 model support
Save additional list of meshes between dmdl_t and list of skins.

https://sourceforge.net/p/quark/code/HEAD/tree/runtime/trunk/plugins/ie_fm_import.py
2023-01-23 01:08:09 +02:00
Denis Pauk 175454e302 Add Quake mdl format support
http://tfc.duke.free.fr/coding/mdl-specs-en.html
2023-01-23 00:48:56 +02:00
Denis Pauk 127de0b1e0 rename vk_polyblend to r_polyblend 2023-01-23 00:27:29 +02:00
Denis Pauk 4bcaa90af7 Share R_CullBox and R_SetFrustum
0cd2eed28b
2023-01-22 00:30:47 +02:00
Denis Pauk 4c6bc1a14c Share R_MarkLights
32ab1e1815
2023-01-22 00:21:00 +02:00
Denis Pauk f9ae8da233 Share R_AreaVisible
d326b1be51
2023-01-22 00:10:34 +02:00