Commit Graph

127 Commits

Author SHA1 Message Date
Eric Wasylishen 227a92f8a2 build: get rid of "bin" subdirectory 2024-02-04 19:52:16 -07:00
Jonathan Linat 39074b8249
CI: Enable Qt5 + lightpreview (#406)
* chore(CI): refine current 'cmake.yml' file content

* chore(CI): enable Qt5 on Linux and macOS

* Appveyor.yml: remove deploy step

we are deploying from GitHub Actions now

* build-linux-64.sh: adjust .zip wildcard

to hopefully not break on PR builds

* build-linux-64.sh: remove fragile unzip/readelf lines

* lightpreview\CMakeLists.txt: only install Qt on Win/Mac

* lightpreview: attempt to fix mac Qt packaging

* lightpreview: apple fixes

* Install qtdbus on macOS

* try alternate dbus module name

* try cmake find_package for dbus

* also find Qt5PrintSupport

* build-osx.sh: remove coreutils install

we don't use sha256sum anymore

* lightpreview/CMakeLists.txt: create .app bundle on macOS

* Update CMakeLists.txt

* build-*: run cpack as part of the build command

on my macOS test system, running cpack separately
is doubling the build time

* cmake: factor out add_loader_path_to_rpath function, apply to all targets

* chore(CI): add steps to re-pack the 'doc' and 'bin' directories

* chore(CI): remove GitHub release-related step (to be re-introduced)

* chore(CI): adjust inflating destination directories

---------

Co-authored-by: Eric Wasylishen <ewasylishen@gmail.com>
2024-01-08 20:16:41 -07:00
Eric Wasylishen 28d4fd3715 lightpreview: comment out some debug spam 2024-01-05 12:30:33 -07:00
Daniel Svensson e1ad344949
lightpreview: Frustum culling and cull freeze. (#398)
* lightpreview: Frustum culling and cull freeze.

* lightpreview: Remove unused desired vis tracking.
2024-01-05 12:08:21 -07:00
Daniel Svensson 04c3a5117a
lightpreview: Add support for fence textures. (#402) 2024-01-04 16:05:22 -07:00
Eric Wasylishen f47602050b lightpreview: disable "uploaded {} bytes face visibility texture" debug spam 2023-12-24 16:40:44 -07:00
Eric Wasylishen a928b13464 lightpreview: wrap properties panel in a vertical scroll bar 2023-12-24 16:29:11 -07:00
Maik Merten c62633f1a3 lightpreview: Add arrow-keys and pageUp/pageDown-keys for navigation.
This is useful for keyboards where WASD isn't practical, e.g., AZERTY-layout (France).
2023-12-14 23:15:24 -07:00
Jonathan 1eaf2170f8 Merge branch 'brushbsp' of https://github.com/ericwa/ericw-tools into brushbsp
# Conflicts:
#	light/trace_embree.cc
2023-12-07 14:13:36 -05:00
Jonathan 9ed4f3d042 bunch of double -> float
fix Q2 animated textures
2023-12-07 14:11:46 -05:00
Eric Wasylishen 9388d43b1c lightpreview: add checkbox for skipping light
fixes #394
2023-11-25 19:24:17 -07:00
Eric Wasylishen de0f66c16e lightpreview: fix vis culling with large .bsp's (use buffer textures rather than 1D textures)
disable VisualizeLeafs call as it has crashes that need to be investigated
2023-11-23 19:50:31 -07:00
Eric Wasylishen db0951dc40 light: support embree4 in addition to 3 2023-11-19 14:14:22 -07:00
Eric Wasylishen 7e5ad9a39b lightpreview: add support for Q1 visdata 2023-11-06 22:54:21 -07:00
Jonathan b83c4a6440 use fold expr instead of for statements in vec3
fix a bunch of clang warnings
2023-11-04 19:01:08 -04:00
Eric Wasylishen e84ba4cc68 lightpreview: leaf visualization: draw leaf outlines 2023-10-19 23:58:39 -06:00
Eric Wasylishen d6fbefaf0e lightpreview: decompile hulls for leaf visualization 2023-10-19 00:10:42 -06:00
Eric Wasylishen 7abfec9dc2 lightpreview: enable highdpi support, set larger default window size 2023-10-01 18:47:33 -06:00
Eric Wasylishen a109dfca28 lightpreview: add "show bmodels" checkbox 2023-09-30 15:18:14 -06:00
Eric Wasylishen 248ed7c614 lightpreview: render Q1 faces with missing textures 2023-09-30 11:41:34 -06:00
Eric Wasylishen 872f5fe8a0 build: copy + install mingw dll's libgcc_s_seh-1.dll, libstdc++-6.dll, libwinpthread-1.dll 2023-09-16 14:28:06 -06:00
Josh Dowell 04044dd76d
lightpreview: fix texture mips not being generated (#385)
This was happening because allocateStorage allocates space for the texture and its mips up-front, the user of QOpenGLTexture is required
to determine the number of mips required for a texture beforehand.
allocateStorage was allocating space for mip 0 and no others, leading to no additional mips being generated.

This also adds explicit format and type to allocateStorage for only this instance, although it still remains optional.
2023-09-13 23:18:51 -06:00
Eric Wasylishen dedc524f6a lightpreview: add fixme 2023-09-11 19:35:20 -06:00
Eric Wasylishen 741b0b77ed lightpreview: fix loading a .bsp failing if there were light options set in the ui 2023-09-09 16:50:05 -06:00
Eric Wasylishen 2859f80465 build: lightpreview is enabled by default 2023-09-09 16:24:56 -06:00
Eric Wasylishen 1924954758 build: fix clang-cl build 2023-09-04 00:42:00 -06:00
Eric Wasylishen 5c285052d1 lightpreview: note some threading bugs 2023-09-03 23:20:36 -06:00
Eric Wasylishen 832d7d0413 lightpreview: add .lit loading 2023-09-03 11:31:41 -06:00
Eric Wasylishen b8132be96e lightpreview: fix crash on Q1 maps with missing textures 2023-08-30 23:08:36 -06:00
Eric Wasylishen c42dee4749 lightpreview: add Alt+1..5 shortcuts for render modes 2023-08-28 21:43:43 -06:00
Eric Wasylishen 2e0e4141cf lightpreview: set dark theme 2023-08-28 21:34:22 -06:00
Eric Wasylishen 6c6bed2597 lightpreview: add "Draw Translucency as Opaque" checkbox 2023-08-27 14:58:08 -06:00
Jonathan e4ca86c846 Merge branch 'brushbsp' of https://github.com/ericwa/ericw-tools into brushbsp 2023-08-15 07:51:39 -04:00
Jonathan 131e395470 add common args 2023-08-15 07:51:35 -04:00
Eric Wasylishen 7608a78b44 style: use std::min/std::max/std::clamp and remove using 2023-08-07 15:42:29 -06:00
Eric Wasylishen 89b21b2612 lightpreview: set QSurfaceFormat::DebugContext on debug builds 2023-08-06 11:09:34 -06:00
Eric Wasylishen 6b83f36b6f lightpreview: fix glsl syntax error 2023-08-05 20:21:02 -06:00
Eric Wasylishen 9f7ba65758 lightpreview: fix bmodel rendering when vis culling is in use 2023-07-30 12:21:54 -06:00
Eric Wasylishen 7b83aa5976 lightpreview: add vis culling checkbox 2023-07-30 11:26:59 -06:00
Eric Wasylishen edb664f200 lightpreview: preliminary vis culling
- q2 only
- not handling bmodels properly
2023-07-29 15:49:36 -06:00
Eric Wasylishen 07020ceeae lightpreview: add "Show Tris (See Through)" option 2023-07-29 15:49:36 -06:00
Eric Wasylishen 4994ab4f1d lightpreview: format code 2023-07-29 15:49:36 -06:00
Eric Wasylishen c243be2b14 lightpreview: open dialog: start in directory of current file 2023-07-10 21:59:33 -06:00
Jonathan aa70d6dc00 draw lines and portals
disable leakdist by default
2023-07-09 15:44:23 -04:00
Eric Wasylishen 72d89f582d lightpreview: don't crash on unknown flags 2023-07-05 17:59:44 -06:00
Eric Wasylishen fbea58d679 code formatting pass 2023-06-25 18:29:48 -06:00
Eric Wasylishen 10581327b3 build: remove some unneeded includes from bspfile.hh 2023-06-25 16:35:26 -06:00
Eric Wasylishen 5243fd8751 build: fix deprecation warnings 2023-06-25 16:02:03 -06:00
Jonathan 15f0f97fb3 remove __debugbreak 2023-06-19 15:38:44 -04:00
Jonathan caa7418375 async threading for map progress, etc. no cancelling yet 2023-06-19 15:38:16 -04:00