Garux
df02774ff5
tweak StringOutputStream use
...
auto str = StringOutputStream()(bla) use form was not doing copy elision or move, but copy
2024-01-29 16:54:08 +06:00
Garux
b4e44bc8ed
refactor StringFixedSize, auto str = String64()() use form was not doing copy elision
2024-01-25 23:46:01 +06:00
Garux
88a03b07be
normalize rendered light color for display consistency (compiler normalizes it anyway)
...
lower 3d light sphere brightness to reduce occlusion
#63
2022-12-17 02:15:38 +06:00
Garux
9bbb84ea5a
fix some clang warnings & errors
2022-10-29 01:07:30 +03:00
Aciz
2d156a33af
Fix build on Arch
2022-05-24 15:22:31 +03:00
Garux
41d37cf57d
* skylight extension: q3map_skylight amount iterations optional[horizon_min horizon_max sample_color]
...
horizon_min horizon_max: two spherical angles, defining portion of sphere to emit light from.
Default is 0 90, which is upper hemisphere. -90 90 will be whole sphere.
sample_color: Default = 1: sample color of each individual light from skybox images, if they are present.
0: use shader color, set by q3map_lightRGB/q3map_lightImage/_up skybox image/qer_editorImage.
* q3map_skylight may be used multiple times in a single shader
2022-01-09 16:50:04 +03:00
Garux
76017a8ce3
unify angles key reading
2021-11-08 21:39:38 +03:00
Garux
d1610b49ff
move Timer class to header, use it in q3map2
2021-11-04 17:25:04 +03:00
Garux
396fe81cd2
Q_MKDIR: use std::filesystem::create_directories
2021-11-02 22:14:08 +03:00
Garux
522f6f907e
rename cmdlib and imagelib to fix name clashes
2021-10-31 14:13:02 +03:00
Garux
b0b997e493
manage stl includes
2021-10-31 12:38:53 +03:00
Garux
512f0a959b
manage headers
2021-10-31 10:54:57 +03:00
Garux
da98e8fde3
various code cleanups
2021-10-30 16:04:31 +03:00
Garux
2b59253b26
wrap bit flags operations
2021-10-28 14:39:58 +03:00
Garux
0c390241c8
fix formatting
2021-10-26 18:16:24 +03:00
Garux
977781a621
minor tweaks
2021-10-26 17:26:35 +03:00
Garux
bf6389fc26
use #pragma once
2021-10-22 02:19:50 +03:00
Garux
f5b2653b0d
add automatic MemBuffer storage for file loading routines
2021-10-17 23:10:02 +03:00
Garux
6a7550a6ba
shorten special class members declarations
2021-10-14 23:31:07 +03:00
Garux
5283b70a83
* fix decompilation of brushes with edge case face normal ( -0.577350259 -0.577350259 0.577350259 ) and MakeNormalVectors() in general
2021-10-14 14:33:44 +03:00
Garux
f3a4877ce7
* support inline /* */ comments
2021-10-07 22:14:50 +03:00
Garux
93898d3990
#include <errno.h>
2021-10-07 21:11:12 +03:00
Garux
5c67990859
remove q3data and dependencies
...
looks like it has no any use today
2021-10-07 21:10:12 +03:00
Garux
d897de13d5
refactor scripts parsing
2021-10-07 18:58:00 +03:00
Garux
71c72527af
refactor tokenizing
2021-10-06 23:37:12 +03:00
Garux
9660fbb6f1
* unlimit MAX_IMAGES
2021-10-06 10:51:32 +03:00
Garux
44ced506e3
autopacker: use LoadBSPFilePartially
...
LoadBSPFilePartially: support RBSP
2021-10-05 13:44:30 +03:00
Garux
1fe4ab8bd8
remove #define NAME_MAX 255
...
check filename_inzip overflow
2021-10-04 23:06:16 +03:00
Garux
3960adf898
remove ExtractFilePath() ExtractFileBase() ExtractFileExtension()
2021-10-04 11:34:15 +03:00
Garux
b6d60fb17c
add and use path_extension_is()
2021-10-03 17:13:12 +03:00
Garux
a0e79e8ecd
refactor autopk3
...
unlimit list sizes
* -pk3, -repack: support multiple bsp files input by command line
2021-10-02 19:13:28 +03:00
Garux
efa324ebe6
remove unused stuff
2021-09-27 15:12:53 +03:00
Garux
02a3b9c026
use ostream_write( CopiedString )
2021-09-18 15:30:11 +03:00
Garux
b78513f9f8
refactor InitPaths()
...
get rid of MAX_OS_PATH
2021-09-17 19:50:36 +03:00
Garux
97ad9bf5c5
separate path manipulating functions
...
unlimit VFS_MAXDIRS
2021-09-15 08:07:05 +03:00
Garux
e1186dd734
subdivide files
2021-09-13 22:29:44 +03:00
Garux
5c5f698c28
use standard [[ noreturn ]] attribute
...
add ENSURE macro
2021-09-13 18:22:44 +03:00
Garux
160c1d33db
remove -texrange business (assuming it's not relevant for decades)
...
optimize -meta (shave off 1/3 in worst case)
2021-08-27 12:18:56 +03:00
Garux
1372ea440b
more move semantics
2021-08-15 15:15:30 +03:00
Garux
bb1931b745
* sort pk3s, so content of later (zzz) overrides earlier, like in radiant and engine
...
* fix strong performance penalty with large amount of files in pk3s
store pak file path once per pk3, not per each file inside
2021-08-13 03:20:07 +03:00
Garux
4beae3d362
* support entries with .shader extension in shaderlist.txt
...
vfsListShaderFiles (empty shaderlist = load all shaders, -pk3, -repack):
only list pk3 .shaders from scripts/ folder
support non scripts/ shaderPath (e.g. jka)
unlimit shader files count
case insensitive shaderlist entries, so duplicates aren't loaded twice
2021-08-12 11:23:59 +03:00
Garux
aa5de2fee9
wrap winding_next logic
...
prevent crash in AddWindingToConvexHull()
2021-08-11 18:18:38 +03:00
Garux
f492ab27eb
more c++ in q3map2
2021-08-10 22:41:43 +03:00
Garux
f49639c697
std::list<light_t> lights
2021-08-03 07:28:53 +03:00
Garux
c3041cc2f8
using winding_t = std::vector<Vector3>
2021-07-31 18:28:38 +03:00
Garux
dbfb22e273
using winding_accu_t = std::vector<DoubleVector3>;
2021-07-30 12:20:56 +03:00
Garux
89b7bcdf53
* read .map brush plane points and store brush planes for windings calculation in double precision (fixes cracks between brush faces)
2021-07-27 20:04:35 +03:00
Garux
44907db895
Add KTX and ETC1 texture support by @Triang3l
...
https://github.com/xonotic/netradiant/pull/1
https://gitlab.com/xonotic/netradiant/-/issues/5
This pull request adds support for Khronos Textures to NetRadiant and Q3Map2, with OpenGL ES 2.0 formats, Ericsson Texture Compression version 1, and BGR/BGRA.
The patent-free Ericsson Texture Compression format will be used in the next version of Warsow to significantly reduce VRAM usage on mobile GPUs and the integrated GPU of Intel Broadwell.
2021-07-18 16:18:49 +03:00
Garux
4697d7940c
fix new gcc build error: ‘N’ is not a constant expression, while using offsetof
2021-06-22 20:49:42 +03:00
Garux
6c00419653
fix spelling
2021-05-24 20:23:09 +03:00