Commit Graph

363 Commits

Author SHA1 Message Date
Garux 2ed868d254 manage conflicting hotkeys in QComboBox, QLineEdit, QSpinBox 2022-12-20 23:41:16 +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 15ca706037 support DPI scaling by viewports rendering and input in certain scenarios
e.g. in mac, kde, wayland or after QT_SCALE_FACTOR=1.25 ./install/radiant
2022-11-07 19:02:40 +03:00
Garux f7a33dd4d3 manage camera events queue
fixes impossibility of wasd + freelook in linux
fixes jagged focused orbiting
2022-11-07 18:32:34 +03:00
Garux 9d3d204018 Qt 2022-10-27 09:10:31 +03:00
Walter Doekes dd81a7f0d7
Do not move symlinks when saving a map, overwrite target instead
If the user is editing a symlink to a target instead of a real file,
chances are high they want the symlink to stay in place.

Precondition:

  some.map -> /path/to/elsewhere.map

After save (before):

  some.bak -> /path/to/elsewhere.map
  some.map (real file)

After save (after):

  some.map -> /path/to/elsewhere.map

Closes #107.
2022-08-27 16:03:40 +02: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 cbde9574fb update assimp 2021-12-17 09:47:12 +03:00
Garux bf3f194cff * cloneSelected, cloneSelectedMakeUnique: select cloned stuff (was preserving original selected)
important for cloneSelectedMakeUnique usability and when objects order in .map matters
2021-11-24 23:49:46 +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 e62483970f double precision clipper points 2021-11-23 16:33:16 +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 cf8e0e1501 handle more cases in seamless patch<>brush tex paste 2021-11-16 00:38:47 +03:00
Garux 6c2d7767cf fix includes 2021-11-12 19:12:16 +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 c217ad981a remove Sys_DoubleTime() 2021-10-31 14:33:57 +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 da98e8fde3 various code cleanups 2021-10-30 16:04:31 +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 6a7550a6ba shorten special class members declarations 2021-10-14 23:31:07 +03:00
Garux 71c72527af refactor tokenizing 2021-10-06 23:37:12 +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 0e0a295330 * new: bsp export/import in json format; Usage: q3map2 -json <-unpack|-pack> [-v] <mapname> 2021-09-23 03:11:43 +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 bafb339c09 MergeMetaTriangles: epsilon compare st, improves merging imprecise sts, e.g. for nonplanar surfaces after q3map_tcgen or just brush face texture projection 2021-09-03 06:23:40 +03:00
Garux f0c393fcbf remove __attribute__ ((unused)) uses 2021-08-19 23:14:18 +03:00
Garux 41c3dfc96e add move constructor, assignment to String class 2021-08-18 01:24:53 +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 ee92bdd801 minor tweaks 2021-07-27 22:16:05 +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 4c0d049c02 prevent overflow in ostream_write( Decimal ) 2021-07-11 16:28:10 +03:00
Garux 4471302857 add and use BasicVector3.vec2() 2021-06-23 16:51:03 +03:00
Garux 7796044913 fix clang build error 2021-06-22 19:17:58 +03:00
Garux 089c100adc assimp: fix -Waddress-of-packed-member 2021-06-01 01:06:57 +03:00
Garux 6c00419653 fix spelling 2021-05-24 20:23: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 31e7829e2b * support negative misc_model scale 2021-05-11 19:05:54 +03:00
Garux c58749c72a apply custom assimp fixes 2021-05-07 14:49:50 +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