Jaime Moreira
749e70b988
GL1 unified draw calls, part 3
...
Batching / buffered procedure, applied to multitexture surfaces.
This solves the issue with gl1_overbrightbits, when jumping
between 0 and 2-4.
2024-07-15 09:05:21 -04:00
Jaime Moreira
4461128255
GL1 unified draw calls, cont.
...
Batching procedure from previous commit, applied this time to GLPoly
/ single texture surfaces; alpha and liquid included.
2024-07-15 08:23:43 -04:00
Jaime Moreira
50aebd2de4
GL1 unified draw calls, init
...
Implemented a batching procedure, to try to group meshes in a buffer
and use a final GL call to draw them all in one step, instead of the
many GL draw calls existing today.
For now, only 2D textures are included, especifically console text
("conchars"), scrap and tiles. It's not worth doing this for
individual 2D elements (e.g. crosshair).
2024-07-15 06:56:02 -04:00
Denis Pauk
1a9733bd75
images: replace generated palette with first image one
2024-07-15 11:53:42 +03:00
Denis Pauk
4e61cbccc2
images: more strict check of pcx
...
checked with https://samples.ffmpeg.org/image-samples/pcx/
2024-07-15 04:47:39 +03:00
Jaime Moreira
4503333b3a
GL1: lighting for brushes on the entity list...
...
...is being "preprocessed" before regenerating lightmaps, so there
are no additional changes to the lightmaps when drawing those brushes.
2024-07-14 20:20:27 -04:00
Jaime Moreira
1bae1e359f
GL1: removed many fruitless glTexParameteri calls
...
They were in this form:
glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MAG/MIN_FILTER,GL_LINEAR)
Only appeared at startup, but we didn't need so many of them.
2024-07-14 19:31:00 -04:00
Denis Pauk
3ba0f35636
images: pcx make buffer const
2024-07-15 00:44:15 +03:00
Denis Pauk
2e32da65bd
images: pcx add support 2/4 bits in single plane
2024-07-15 00:23:20 +03:00
Denis Pauk
d8f754f003
images: pcx single bit per plane
...
based on https://git.ffmpeg.org/gitweb/ffmpeg.git/blob/HEAD:/libavcodec/pcx.c
2024-07-14 16:37:38 +03:00
Denis Pauk
5d5e01e1e1
images: allocate pcx palette only for 8bit
2024-07-14 15:36:36 +03:00
Yamagi
fd2ebb8891
Update CHANGELOG for 8.40.
2024-07-13 16:19:14 +02:00
Denis Pauk
84e461e07b
images: support 24 bit pcx images
2024-07-11 23:37:15 +03:00
Denis Pauk
66da110472
image: move pcx RLE to separate function
2024-07-11 23:34:45 +03:00
Denis Pauk
1efc45612c
soft: scale down wall if texture is prescalled
2024-07-11 23:34:45 +03:00
Denis Pauk
e08490d3de
renders: simplify LoadImage_Ext
2024-07-11 23:34:45 +03:00
Denis Pauk
0390db7aec
images: move wal decode to vid/images
2024-07-11 23:34:45 +03:00
Denis Pauk
6de0e06c4a
images: move m8 decode to vid/images
2024-07-11 23:34:45 +03:00
Denis Pauk
8e4c329351
images: show file name in error message
2024-07-11 23:34:45 +03:00
Denis Pauk
829b1a014e
renders: simplify swl/pcx load code
2024-07-11 23:34:45 +03:00
Denis Pauk
dec5897052
images: Use only pcx manufacturer and version as ident
2024-07-11 23:34:45 +03:00
Denis Pauk
cfebe51ec9
Merge remote-tracking branch 'yquake2/master'
2024-07-11 23:33:04 +03:00
Yamagi
2a2f3e0b2f
Merge pull request #1123 from BjossiAlfreds/helpmsg-always
...
Workarounds for naggy help icons
2024-07-11 21:29:26 +02:00
Yamagi
7b6518060e
Merge pull request #1122 from devnexen/fix_dyn_symb_loading_sig
...
consistenly cast dynamic loading from generic pointer to fn pointer s…
2024-07-11 21:15:51 +02:00
BjossiAlfreds
6a25ba5118
Workarounds for naggy help icons
2024-07-09 13:11:12 +00:00
Denis Pauk
36f42a6a8b
Merge remote-tracking branch 'yquake2/master' into images
2024-07-06 23:11:56 +03:00
David Carlier
2b4598d536
consistenly cast dynamic loading from generic pointer to fn pointer signature.
2024-07-06 18:40:13 +01:00
Yamagi
8c0904f0c8
Merge pull request #1121 from 0lvin/backport
...
Improve pcx support and cleanup soft render
2024-07-06 18:49:29 +02:00
Denis Pauk
3db882c6c8
renders: little bit revert pvx load code
...
Use additional checks from previous renders/files/pcx load code.
2024-07-06 18:52:01 +03:00
Denis Pauk
ac2a50cb4a
soft: scale model texture s,t values
...
ref_gl renders use 0.0..1.0 float texture coordinates in gl commands
and skin ratio/resolution could be any.
ref_soft render uses absolute coordinates as result textures with
different to expected size are applied incorrectly.
Fix will not add support of scalled retextured skins, just fix case
when ratio is incorrect after scale down such or place a incorrect
pcx skin to the model directory.
2024-07-06 16:48:20 +03:00
Denis Pauk
79c71c7a68
soft: get rid unused R_PolysetUpdateTables
2024-07-06 16:41:52 +03:00
Denis Pauk
bfeb842bd3
pcx: fix support of bytes_per_line
...
https://github.com/yquake2/yquake2/issues/1119
2024-07-06 16:32:45 +03:00
Denis Pauk
c5841b7c2f
pcx: fix support of bytes_per_line
...
https://github.com/yquake2/yquake2/issues/1119
2024-07-06 15:04:37 +03:00
Denis Pauk
50de5e091a
renders: move m32 load to vid/image code
2024-07-06 15:03:57 +03:00
Denis Pauk
ce37d4b748
renders: move swl load to vid/image code
2024-07-06 15:03:57 +03:00
Denis Pauk
cf144ef2ca
fix load mapfix for juggernaut/jug13
2024-07-06 14:30:48 +03:00
Denis Pauk
4c9a04efc5
Merge remote-tracking branch 'yquake2/master'
2024-07-06 14:27:25 +03:00
Yamagi
3f6a0a3689
Merge pull request #1118 from devnexen/few_more_build_chg
...
fix few warning builds.
2024-07-06 09:50:37 +02:00
Yamagi
af5a876be4
Fix a typo.
2024-07-06 09:20:04 +02:00
Yamagi
4c4759b73b
Merge pull request #1120 from BjossiAlfreds/jug13-mapfix
...
Mapfix for map jug13 (The Civic Center) in Juggernaut
2024-07-06 08:51:58 +02:00
BjossiAlfreds
298dd69def
Mapfix for map jug13 (The Civic Center) in Juggernaut
2024-07-05 15:26:22 +00:00
David Carlier
a8a15ddff3
fix few warning builds.
2024-06-30 23:07:03 +01:00
Denis Pauk
689950068a
soft: fix model skin textures
...
Soft render still uses downscalled skins and wall, code fixes case
when skin(s,t) size defined in model is slightly different to real
skin dementions. Code checks skin size in model and image asset size
and scale.
2024-06-30 23:30:32 +03:00
Denis Pauk
96b8707825
Merge remote-tracking branch 'yquake2/master'
2024-06-30 23:06:16 +03:00
Denis Pauk
25fa88ca9b
renders: load swl as paletted image
2024-06-30 23:05:44 +03:00
Denis Pauk
161f703b90
renders: scale pcx before use
2024-06-30 23:05:35 +03:00
Denis Pauk
23ff8f6dea
soft: update light code
2024-06-30 23:05:24 +03:00
Denis Pauk
214556728d
renders: rename MAX_LBM_HEIGHT to MAX_LBM_WIDTH
2024-06-30 23:05:13 +03:00
Denis Pauk
e4849dc9d4
soft: remove unused R_PolysetUpdateTables
2024-06-30 23:03:21 +03:00
Yamagi
a315b15494
Merge pull request #1116 from devnexen/prev_fix_sec_optim
...
micro optimisations for previous security mitigations.
2024-06-30 20:54:08 +02:00