Denis Pauk
025764db79
make cppcheck little more happy
2019-03-20 21:56:28 +02:00
Denis Pauk
0f9e3cc69a
Move patches authors to about menu
...
With whole respect to original authors
2019-03-20 21:28:42 +02:00
Denis Pauk
fbe42511c1
Add resolution autodetect
2019-03-20 20:59:34 +02:00
Denis Pauk
0ab41ee0df
Use boolean for r_outof*
2019-03-20 20:45:15 +02:00
Denis Pauk
5e7082e72d
Fix for light without current entity
2019-03-20 20:43:54 +02:00
Daniel Gibson
3b296c43a0
GL1, SW: Calculate needed hunk size in Mod_LoadBrushModel()
...
same as last commit but for the other renderers
2019-03-17 20:24:40 +01:00
Daniel Gibson
ec6d743d46
GL3: Calculate needed hunk size in Mod_LoadBrushModel()
...
The real needed size can't be derived from the .bsp file size, because
* many generated structs contain pointers
* there's lots of data generated per face..
* _especially_ for warped faces that are subdivided
2019-03-17 18:10:07 +01:00
Yamagi Burmeister
e4665547a8
Try to fix gun fov calculations in the softrenderer.
...
Until now the softrenderer calculated the fov relative to a hard coded
aspect of 4/3. That's wrong, because we're supporting arbitrary aspects
and we aren't calculating a fov but just a scaling factor to the global
fov which takes the aspect into the account.
Fix this by not taking any aspect calculations into account. BUT: While
this renders the gun with a correct perspective it's positioned much
nearer to the camera / player then in the GL renderers. The GL renderers
work around that problem by enforcing a minimal Z distance of 4 units,
which can't do because we're just calculating a scaling factor...
2019-02-04 13:43:34 +01:00
Denis Pauk
2a19bfe6cd
make variables local
2019-01-31 22:40:16 +02:00
Denis Pauk
3a85943118
Show func in .Sys_Error and .R_Printf
2019-01-31 22:09:33 +02:00
Denis Pauk
b7cac7f8aa
Use INT_MIN instead -999999
2019-01-30 23:27:59 +02:00
Denis Pauk
c80820500b
Fast lights clean
2019-01-30 23:22:00 +02:00
Denis Pauk
e43859de4a
Fast lights clean
2019-01-30 23:19:10 +02:00
Denis Pauk
dcc2892de0
Use resize stb image
2019-01-30 23:06:25 +02:00
Denis Pauk
1dfb54bf38
Add code for retore mips
2019-01-30 23:03:38 +02:00
Denis Pauk
203bc4b202
Update stb_image and add stb_image_resize code
2019-01-30 22:43:54 +02:00
Denis Pauk
07c472cfd2
Remove adivtab
2019-01-30 22:42:21 +02:00
Yamagi Burmeister
aa57ec9f7b
Fix oversight in last commit, the '/ 2' is evil.
2018-11-22 21:15:09 +01:00
Yamagi Burmeister
e137ff1168
Fix stupid bug in brush model indix block size calculations.
...
We're taking indices and converting them to pointer relative to the
hunks base. Yes, that's dirty. Since the indices are stored as 32 bit
values and hunks are generally small using 32 bit pointers is enough,
even on 64 bit platforms. So the code took the size of void* / 2...
See the problem? Yes, that's not a good idea on 32 bit platforms. Bite
the bullet and just take the size of void*. Shouldn't be a problem,
because the indices are the first thing that's loaded and the hunk is
trimmed right after it anyways. If, and just if, we really need each and
every byte in the early stages of map loading we need two cases. One for
64 bit and one for 32 bit.
This fixes issue #346 . Kudos to @ricardosdl for the analysis.
2018-11-22 17:41:55 +01:00
Denis Pauk
25498be7ca
Support retextured images.
...
Code based on www.quakewiki.net/quakesrc/39.html
Code ignores skin images, and is disabled by default.
2018-11-12 23:02:23 +02:00
Denis Pauk
0307361101
Remove unused cvars
2018-11-12 23:01:08 +02:00
Denis Pauk
64babe9422
Allocate hunk equal to filesize
2018-10-08 22:29:45 +03:00
Denis Pauk
659d8e15c5
Add support for 32k+ marksurfaces in map
2018-10-08 22:29:45 +03:00
Denis Pauk
316918c29b
cleanup code in sw_surf
2018-10-08 22:29:45 +03:00
Denis Pauk
26e9c6e5c4
cleanup code in sw_polyse
2018-10-08 22:29:45 +03:00
Denis Pauk
c30cffd1ed
Use local currentmodel
2018-10-08 22:29:45 +03:00
Denis Pauk
0ff5dc804d
Use local currententity
2018-10-08 22:29:45 +03:00
Yamagi Burmeister
a896e17efa
Fix a compiler warning, do not assign a variable to itself.
2018-09-05 17:07:42 +02:00
Denis Pauk
c45e1e7f8c
correct check for zstep
2018-09-04 22:51:20 +03:00
Denis Pauk
6adc4cc81c
Revert "rename gl_anisotropic to r_anisotropic"
...
This reverts commit 49af62477a
.
2018-09-03 21:22:01 +03:00
Denis Pauk
e265252170
Remove unused function parameter
2018-09-03 21:16:36 +03:00
Denis Pauk
a52db8bc85
support for lower version of SDL
2018-09-03 21:16:05 +03:00
Denis Pauk
1a0c6fe05c
add check for overwrite triangle_spans
2018-09-03 21:15:58 +03:00
Denis Pauk
3b4c6c41c1
get rid separate surface usage
2018-09-03 21:15:51 +03:00
Denis Pauk
136d6890ff
small cleanups
2018-09-03 21:15:40 +03:00
Denis Pauk
aa3a688495
remove all aliases for vid.width
2018-09-03 21:15:33 +03:00
Denis Pauk
01ca7db6f4
remove unused functions
2018-08-28 23:22:40 +03:00
Denis Pauk
2812ef30dd
Reuse GLimp_InitGraphics for create window
2018-08-28 23:22:40 +03:00
Denis Pauk
8fc5bafb64
move render prepere staff to separate function
2018-08-28 23:22:40 +03:00
Denis Pauk
f1bf4d2b44
Directly use of currentpalette
...
* remove conversion currentpalette to SDL pixel format
* create textures with RGBA format with same struct as currentpalette
2018-08-28 23:22:40 +03:00
Yamagi Burmeister
25a1f08656
Merge branch 'buildcleanup'
2018-08-15 17:48:30 +02:00
Yamagi Burmeister
93aa8270ad
No need to print that the renderer as retexturing support.
...
Retexturing support has been non-optional for years.
2018-08-14 11:53:35 +02:00
Denis Pauk
49af62477a
rename gl_anisotropic to r_anisotropic
2018-08-10 23:33:46 +03:00
Denis Pauk
ba38bf4f88
Small cleanups
...
* Use window width as maximum value for spancount
* Reuse GLimp_Shutdown
2018-08-10 23:04:19 +03:00
Denis Pauk
6e8170e187
Check possible span scan step by zindex
2018-08-10 22:59:29 +03:00
Denis Pauk
59133c77aa
use zvalue_t for z values
2018-08-10 22:59:29 +03:00
Denis Pauk
48f67501fc
Fix pitch compare vid.width
2018-08-10 22:59:29 +03:00
Denis Pauk
6affc10ceb
use only one increment in loop
2018-08-10 22:59:29 +03:00
Denis Pauk
0d69454b54
revert nack a little
2018-08-10 22:59:29 +03:00
Denis Pauk
a3406b38a3
use memset for copy pixel to pixel range
2018-08-10 22:59:29 +03:00