Garux
d734199601
manage path routines
2021-01-22 02:21:54 +03:00
Garux
b0e62198ba
use safe strings more
2021-01-21 18:41:16 +03:00
Garux
0ab896b84a
remove MAC_STATIC hack
2021-01-21 16:17:23 +03:00
Garux
f3c26c791f
use safe strings more
2021-01-21 16:08:53 +03:00
Garux
8b204ac054
add and use class PathExtensionless
2021-01-21 15:15:07 +03:00
Garux
7fc079c658
merge duplicated path_ functions
...
handle backslashes, which is out of convention, but safer, as practically paths may contain them in many spots
2021-01-21 08:53:34 +03:00
Garux
15e4b8e850
manage model shaders remapping
2021-01-21 07:19:15 +03:00
Garux
fe5c0879b4
remove -tmpin & -tmpout switches, as at best they were prepending tmp/ to absolute path
2021-01-20 12:48:10 +03:00
Garux
3b39a5754d
prevent filename overflow in model .skin loader
...
strip model extension during filename construction
add variadic template operator to StringOutputStream for inline strings creation
2021-01-20 11:59:16 +03:00
Garux
cfa502df6e
safe string for globalCelShader
2021-01-19 22:40:58 +03:00
Garux
cbeccc7e3a
use safe string in GetIndexedShader
...
fix custom shader overflow check
2021-01-19 22:12:53 +03:00
Garux
c3437b7833
use safe strings in shaderInfo_s
...
turn ImageLoad() to expect extensionless path as input
2021-01-19 18:58:18 +03:00
Garux
9590d602d3
use String64 for shaderInfo_s::skyParmsImageBase
...
add variadic template operator to StringFixedSize for inline strings creation
2021-01-19 17:21:54 +03:00
Garux
da3b05728c
use safe string for shaderInfo_t.shader
2021-01-19 01:24:21 +03:00
Garux
3578370061
fix the build
2021-01-16 17:52:33 +03:00
Garux
13524d59ef
fix the build
2021-01-16 15:10:59 +03:00
Garux
fafa271a46
turn quake3 tools to cpp
2021-01-15 01:37:23 +03:00
Garux
2734cbd1e0
* ctrl + shift + z: redo alias
2021-01-05 01:40:44 +03:00
Garux
b2bc2077e5
prevent division by zero, which spreads darkness during bounces
...
source of the problem is located somewhere else
2021-01-05 01:34:55 +03:00
Garux
e62c6f4bb3
fix warnings
2021-01-03 06:24:58 +03:00
Garux
77439d8b66
fix [-Wdeprecated-copy]
2021-01-01 19:22:30 +03:00
Garux
9ec94f25aa
fix [-Wignored-qualifiers]
2021-01-01 18:31:20 +03:00
Garux
ba1a1b64f6
fix [-Wstringop-truncation]
2021-01-01 18:20:07 +03:00
Garux
155d633ae9
fix [-Wdeprecated-copy]
2021-01-01 17:44:18 +03:00
Garux
3cbe922765
fix UB: fwrite with buffer = NULL
2021-01-01 17:42:08 +03:00
Garux
d074634463
SetupGrid() after _ambient key read
2021-01-01 17:41:11 +03:00
Garux
97f0e61ccc
initialize rawGridPoints.ambient correctly
2021-01-01 17:40:06 +03:00
Garux
f401facb4f
fix main wnd splits being set before window is actually maximized/fullscreened
2020-12-30 12:51:04 +03:00
Garux
2f2140efa4
support map loading on autorestart from path with spaces
2020-12-20 17:01:23 +03:00
Garux
8b460b5318
* brush.icosahedron.truncate option
2020-12-14 08:46:36 +03:00
Garux
e1f3b25bc6
consider _decal in leak detection
...
point entities recognition is malformed in general
leak is about point entities, detection by origin key presence is weak, because there may exist entity w/o this key at 0 0 0
group entities may have origin too
detection by primitives presence haven't been working for _decal, as its primitive gets freed at this point
2020-12-14 08:36:55 +03:00
Garux
db07c3459d
* packer, repacker: handle nodraw patches correctly; warn on visible surface, having shader w/o maps (typically watercaulk)
2020-12-08 03:03:42 +03:00
Garux
5cedd26c75
* -repack -analyze switch: only analyze bsps and exit (to dump bsp resource calls)
2020-12-08 02:45:48 +03:00
Garux
dd3db2f147
bump -repack bsp list size
2020-12-08 02:34:55 +03:00
Garux
f30ee07376
* packer, repacker: also handle fogs without drawsurfaces
2020-11-25 10:29:49 +03:00
Garux
d346f1ee07
packer, repacker: emit warning on "model2" key been found
2020-11-24 20:33:33 +03:00
Garux
06267e67cb
repacker: fix odd WARNING3: %s : about to include shader for excluded texture
...
when repack.exclude has texture = shader from game.exclude
2020-11-24 19:59:51 +03:00
Garux
103ac6931e
* fix -fixaas
2020-11-08 13:04:29 +03:00
Garux
a28add796c
fix incompatible function type
2020-11-05 14:24:45 +03:00
Garux
58878b522a
fix libpng warning
...
https://sourceforge.net/p/libpng/bugs/165/
http://www.libpng.org/pub/png/libpng-manual.txt
2020-11-05 14:23:33 +03:00
Garux
e42d17b71f
fix color of obj without usemtl
2020-10-31 10:20:51 +03:00
Garux
c50c044a31
fix volatile text rendering artifacts with MSAA
...
a0a47640b0
2020-10-29 22:00:17 +03:00
Garux
af71efc0e6
* no shaderlist.txt or empty one = load all shaders
2020-10-25 09:07:29 +03:00
Garux
a5be520748
swap RotateSelectionClockwise, RotateSelectionAnticlockwise toolbar buttons for visual logic "right button rotates to right" and reverse
2020-10-13 08:23:19 +03:00
Garux
24bed23fdd
emit error on non ASCII home or radiant path
2020-09-02 11:21:42 +03:00
Garux
bd8a597016
enable console logging by default to simplify troubleshooting
...
it is enabled anyway in Sys_Print() if ( level == SYS_ERR ), but later
2020-08-28 19:55:35 +03:00
Thomas Debesse
1cf7b72e6b
q3map2/light_bounce: prevent infinite loop on obscure bias compute
...
New code produces same result without loop at all, so
it cannot fall in infinite loop, and it is faster in
use cases requiring more than one loop in previous code.
The Unvanquished vega map is known to trigger the bug:
https://github.com/UnvanquishedAssets/map-vega_src.dpkdir
I reproduced it multiple time on various hardware (8 core FX-9590,
12 core/24 thread Ryzen 9 3900X) with commit af40508 and using
final compilation profile edited to use -fastbounce instead
of -fast option.
The symptom is simple, q3map2 stucks there:
--- Radiosity (bounce 1 of 8) ---
--- RadCreateDiffuseLights ---
0...1...2...3..
Or somewhere else in that progression bar given your hardware
and the amount of core your CPU has.
When stuck, all the CPU cores are running 100% but the thread
never returns (a strace can reveals it, a gdb backtrace too).
Thanks to @slipher for the precious advices and improving my first
attempt to fix it.
For more information on the issue, I asked:
> which negative value never can become positive
> when incremented infinitely?
slipher said:
> for a double, any value less than -2^53 would have this property
> don't know for float off the top of my head
But then, it means that's theorically verified this loop was able
to run forever in some case.
I don't know what this code is doing anyway, but at least we can
keep the behaviour without requiring to understand it.
2020-08-19 08:32:36 +03:00
Garux
2944cff834
* entity inspector: select entities by key, value, key+value buttons
...
replaces and complements obscure behavior of SelectAllOfType with entity inspector shown
2020-08-19 08:23:04 +03:00
Garux
fdef42427d
change sentinel 0 -> nullptr (was causing crash with win64 gcc)
2020-07-22 20:05:35 +03:00
Garux
14d67694a5
.gitignore .vscode
2020-07-22 19:57:51 +03:00