Commit Graph

218 Commits

Author SHA1 Message Date
Garux f3ffdf9f28 support 16bit png loading in radiant 2024-03-30 09:22:58 +05:00
Garux 129d54e33f deduplicate entity connecting code 2024-02-11 22:44:29 +06:00
Garux 0b43b1744f fix return reference to local variable added in c6252fe3fc 2024-02-11 22:21:09 +06:00
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 ecdad801b9 * light radiuses: don't render biggest radius, make them less occluding in 3D
closes #63
2024-01-19 12:27:45 +06:00
Garux 9b9e1df066 * light entity radius: support negative intensity display and adjustment (keep sign while adjusting)
closes #163
	* fix: do not modify light intensity on transformations besides light radius transformation
fixes #156
2024-01-17 21:05:17 +06:00
Garux 3fb507e860 skip *.pk3dir in root in DirectoryArchive::forEachFile 2023-07-04 14:24:45 +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 4010e94bec redraw scene on light entity _color, _light, light, fade, scale, spawnflags keys change 2022-11-02 12:34:48 +03:00
Garux 9bbb84ea5a fix some clang warnings & errors 2022-10-29 01:07:30 +03:00
Garux 9d3d204018 Qt 2022-10-27 09:10:31 +03:00
Garux f61e0dcb67 * view->filter->sky: Q3 shader based skies (skyParms keyword) 2022-07-18 18:28:56 +03:00
Garux d3e48d8c31 * render Q3 shader based skyboxes
logic: load 6 skybox textures when shader gets used by scene, don't unload dynamically, just on 'flush'
texture browser only uses normal preview image and doesn't trigger potentially heavy box loading
also fix R_ResampleTexture for [2+x upscaling
2022-07-18 10:05:19 +03:00
Garux ea21eee225 fix 1bd3e7ae18 2021-12-23 17:23:57 +03:00
Garux f739e53eab * add Inter-Quake Model (IQM) support (via assimp) 2021-12-18 17:21:45 +03:00
Garux e1be2c5620 fix assimp build 2021-12-17 09:48:49 +03:00
Garux 1bd3e7ae18 * model shader paths guessings: use material names, starting with textures/ or models/ as is
so materials named intentionally as ingame shaders shall work as expected
2021-12-16 03:06:30 +03:00
Garux 1f7d0250b0 * fix: don't rename target/names without numeric suffix on paste to non clashing namespace 2021-11-24 18:00:37 +03:00
Garux 6c129e546f store winding points in double precision 2021-11-23 14:48:00 +03:00
Garux 86ba294cf4 replace enums use for compile time constants 2021-11-22 12:29:43 +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 0c390241c8 fix formatting 2021-10-26 18:16:24 +03:00
Garux d812cbd4d4 replace ArrayRange by tcb::span (reproduction of std::span) 2021-10-24 08:32:10 +03:00
Garux bf6389fc26 use #pragma once 2021-10-22 02:19:50 +03:00
Garux b6d60fb17c add and use path_extension_is() 2021-10-03 17:13:12 +03:00
Garux 02a3b9c026 use ostream_write( CopiedString ) 2021-09-18 15:30:11 +03:00
Garux b58408344c Q2 optional brush face flags in BP, 220 mapformats 2021-08-24 18:55:34 +03:00
Garux 4c49b81c3a shorten g_archives syntax 2021-08-19 13:16:38 +03:00
Garux aa4f3a1f72 reduce the use of GSlist
Quake3FileSystem::forEachFile: avoid double extension check, support "*", as advertised
2021-08-19 12:28:56 +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 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 4471302857 add and use BasicVector3.vec2() 2021-06-23 16:51:03 +03:00
Garux 6c00419653 fix spelling 2021-05-24 20:23:09 +03:00
Garux 5c3b7d842c * entity keys: prefer "angles" over "angle", "modelscale_vec" over "modelscale" if both are set 2021-05-16 21:50:09 +03:00
Garux da98f5f9d9 add and use Entity::getClassName(), Entity::hasKeyValue()
do not return default value from getKeyValue()
2021-05-16 10:13:42 +03:00
Garux ed04f90497 * .ent: "direction" attribute presence enables -1/-2 angle support for EclassModel, GenericEntity
* .ent: "angles" attribute presence enables angles support for EclassModel
2021-05-15 23:38:41 +03:00
Garux 155c2624b1 * .ent: support setting default model value of MiscModel type (<model key="model" name="Model File" value="ass/spider.mdc">) 2021-05-15 18:10:34 +03:00
Garux 31e7829e2b * support negative misc_model scale 2021-05-11 19:05:54 +03:00
Garux 427ef0874b * improve ase export compatibility
write normals after faces
write vertex normals right after their face normal
2021-05-08 14:15:17 +03:00
Garux 6b699527a3 * fix rendering of direction arrow of group entities, when origin key is set 2021-05-07 14:50:16 +03:00
Garux 75c7c09903 * replace model loaders by assimp library (40+ formats)
* auto split big model meshes to <= maxSurfaceVerts chunks (avoids excess meta process for vertexlit ones)
2021-05-07 14:47:39 +03:00
Garux 89110afef6 fix default model box 2021-04-14 16:44:01 +03:00
Garux 5008fa278f simplify TYPE_CONSTANT code 2021-03-25 21:59:31 +03:00
Garux dc5dea6d21 delete copy constructors and assignment operators explicitly 2021-03-24 15:48:29 +03:00
Garux 2222100316 indent classes, align by spaces 2021-03-24 00:25:15 +03:00
Thomas Debesse 42c00bfc67 plugins/shader: remove unused Texture_ForName function declaration
It looks to be a leftover from QE4.
2021-03-20 20:22:31 +03:00
Garux 95f4b3e504 * only scale light radius by mouse while it is displayed 2021-03-20 02:32:42 +03:00
Garux e200ffc762 minor tweaks 2021-03-20 02:30:11 +03:00