Commit Graph

148 Commits

Author SHA1 Message Date
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
Jonathan da2e6936d1 allow toggling BSPX loading 2023-06-16 03:40:04 -04:00
Eric Wasylishen 8f6edf946c lightpreview: fix typo 2023-06-11 23:21:26 -06:00
Eric Wasylishen e9ba89e45f lightpreview: handle settings::quit_after_help_exception 2023-06-11 23:20:16 -06:00
Eric Wasylishen 35fa5bd129 lightpreview: add "Nearest filter" checkbox 2023-06-11 23:20:07 -06:00
Jonathan 4500b164b6 proper skybox rotations 2023-06-08 23:11:37 -04:00
Jonathan cd27dae7e1 Merge branch 'brushbsp' of https://github.com/ericwa/ericw-tools into brushbsp 2023-06-08 22:23:16 -04:00
Eric Wasylishen b626d9447f lightpreview: wip fixing skybox rendering 2023-06-08 20:22:29 -06:00
Jonathan 0663707fe3 Merge branch 'brushbsp' of https://github.com/ericwa/ericw-tools into brushbsp 2023-06-08 22:18:37 -04:00
Jonathan 9d3b0f9878 alpha test 2023-06-08 22:18:32 -04:00
Eric Wasylishen 89e714a077 lightpreview: don't render frames when not interacting 2023-06-06 23:30:50 -06:00
Eric Wasylishen 062c458913 lightpreview: use a placeholder texture for missing textures 2023-06-06 20:58:05 -06:00
Eric Wasylishen f2ecb9fe1c lightpreview: add "Open Recent" submenu 2023-06-03 14:02:34 -06:00
Eric Wasylishen 83967699aa lightpreview: convert to dock widgets. add placeholder output log 2023-06-03 12:31:14 -06:00
Jonathan 1e91b21989 use timed file watching, so we only compile any given map once 2023-05-30 12:14:56 -04:00
Jonathan c3461a107b Merge branch 'brushbsp' of https://github.com/ericwa/ericw-tools into brushbsp 2023-05-29 04:38:08 -04:00
Jonathan 6c2b4f6f04 sky rendering (still needs work)
wireframe slightly easier to work with
2023-05-29 04:37:23 -04:00
Eric Wasylishen 3e51f2aeaa lightpreview: report camera position to main window 2023-05-28 00:27:52 -06:00
Jonathan c90113c892 always refresh lightstyle list 2023-05-27 23:58:29 -04:00
Eric Wasylishen 442237de02 lightpreview: also use QCursor::pos() in case it helps reduce stuttering 2023-05-25 20:46:17 -06:00
Eric Wasylishen a35c8abe74 lightpreview: fix jerky camera movement + flying issue 2023-05-25 20:27:25 -06:00
Jonathan 2a7bb05cee lightstyle init fixes 2023-05-24 21:58:08 -04:00
Jonathan 18a5b37d4f lightstyle stuff 2023-05-24 21:48:39 -04:00
Eric Wasylishen 901e87bce8 lightpreview: prompt for screenshot path 2023-05-24 00:55:31 -06:00
Eric Wasylishen 0d0d11314c lightpreview: support map as command line arg
- fix splitter behaviour to not resize left pane
2023-05-24 00:42:39 -06:00
Eric Wasylishen 2d60b017d7 lightpreview: support FACENORMALS bspx lump 2023-05-23 22:44:13 -06:00
Jonathan 228f2057a2 pass in a settings, so BSP loading can use paths from light 2023-05-23 22:12:11 -04:00
Jonathan f73d71a7ca fix crash on empty args 2023-05-23 22:04:25 -04:00
Jonathan 9cbe13caae Merge branch 'brushbsp' of https://github.com/ericwa/ericw-tools into brushbsp 2023-05-23 21:55:18 -04:00
Jonathan 297a35e8df load BSPX data for lightmaps if available
checkbox to keep origin between different BSP files
2023-05-23 21:55:07 -04:00
Eric Wasylishen 2acc0a305e lightpreview: adjust near plane for less z-fighting 2023-05-23 19:14:34 -06:00
Eric Wasylishen a173b633b5 lightpreview: add screenshot menu item 2023-05-23 18:17:39 -06:00
Eric Wasylishen 474bf83a0b lightpreview: start adding file menu 2023-05-23 00:48:31 -06:00
Eric Wasylishen 51b6f10d88 lightpreview: implement showtris 2023-05-22 19:34:17 -06:00
Eric Wasylishen 6e12d90a03 lightpreview: offset rotators to the correct position 2023-05-22 16:24:26 -06:00
Eric Wasylishen 85fb61f682 lightpreview: install qt windows plugin (required) 2023-05-22 16:11:23 -06:00
Eric Wasylishen 65de3bb53c lightpreview: flat shading 2023-05-22 15:45:07 -06:00
Eric Wasylishen 915ee9f870 lightpreview: normals rendering 2023-05-22 15:00:06 -06:00
Eric Wasylishen b27c660022 lightpreview: add fullbright checkbox 2023-05-22 12:20:48 -06:00
Eric Wasylishen 9a4f1ecca7 lightpreview: add "Lightmap Only" checbox 2023-05-22 00:31:35 -06:00
Eric Wasylishen 4599549ac5 lightpreview: render q2 translucency 2023-05-21 22:51:22 -06:00
Eric Wasylishen b9cea32be2 lightpreview: persist settings
saves in AppData\Roaming\ericw-tools\lightpreview.ini
2023-05-21 21:29:17 -06:00
Jonathan 45fd6ac588 lightpreview: render bmodels 2023-05-21 22:39:00 -04:00
Jonathan 4ed857715a Merge branch 'brushbsp' of https://github.com/ericwa/ericw-tools into brushbsp 2023-05-21 22:26:13 -04:00
Jonathan 444a8e23ae lightpreview: spawn at first info_player_start
lightpreview: don't mipmap lightmap; mipmap and anisotropy on textures though
2023-05-21 22:26:05 -04:00
Eric Wasylishen 509f1dd658 lightpreview: use WIN32_EXECUTABLE target property
this disables the console window when the .exe is launched directly
2023-05-21 19:53:28 -06:00
Eric Wasylishen 9c2892ef3f lightpreview: add Q/E bindings for fly down/fly up 2023-05-21 14:16:43 -06:00
Eric Wasylishen 3e55518ec0 lightpreview: mousewheel controls fly speed
- require RMB to look
- use precise timer for WASD movement
2023-05-21 14:13:07 -06:00
Eric Wasylishen 0531b79b0b lightpreview: add reload button 2023-05-21 13:27:05 -06:00
Eric Wasylishen 17f085d6a8 lightpreview: show filename in titlebar 2023-05-21 13:21:43 -06:00
Eric Wasylishen 4815e77f1f lightpreview: reduce stuttering when using WASD + mouselook together 2023-05-21 12:46:53 -06:00
Jonathan b43e1a5b7e Merge branch 'brushbsp' of https://github.com/ericwa/ericw-tools into brushbsp 2023-05-21 11:07:39 -04:00
Jonathan 0f5690bf6d allow light 0 to work
fix bad std::move
2023-05-21 11:07:33 -04:00
Eric Wasylishen 229f9fed25 lightpreview: hack in quote parsing for qbsp/vis/light args 2023-05-21 00:29:22 -06:00
Eric Wasylishen 295dc4a537 lightpreview: add text fields for qbsp/vis/light options 2023-05-21 00:03:32 -06:00
Eric Wasylishen 2bf311def6 lightpreview: add overbright lighting scale factor 2023-05-20 23:22:37 -06:00
Eric Wasylishen c2f7cdbb7c lightpreview: clear data before reloading 2023-05-20 23:09:42 -06:00
Eric Wasylishen c7985dad3e lightpreview: hook up reloading in response to file watcher 2023-05-20 22:24:57 -06:00
Eric Wasylishen b17fac1eb3 lightpreview: change background color 2023-05-20 21:18:24 -06:00
Eric Wasylishen 9a09dfffa9 lightpreview: render lightmap 2023-05-20 13:32:44 -06:00
Eric Wasylishen ce25e9c3d0 lightpreview: fix lack of depth testing / backface culling 2023-05-19 20:16:38 -06:00
Eric Wasylishen b33591fe0f lightpreview: wip textured rendering 2023-05-19 01:30:05 -06:00
Eric Wasylishen 1df614daf2 lightpreview: wip basic level rendering 2023-05-17 00:19:53 -06:00
Eric Wasylishen d466deed91 lightpreview: reboot
- link against qbsp + vis + light + embree + tbb + fmt
- remove .pro, .ui
- setup filesystem watcher
- accept .map files via dnd, run qbsp + light + vis
2023-05-15 00:23:30 -06:00
Eric Wasylishen b17633f746 cleanup: set PackConstructorInitializers: Never 2023-02-20 10:23:59 -07:00
Eric Wasylishen eda6155844 cleanup: run ./clang-format-all.sh
clang-format version 15.0.7
2023-02-18 22:59:43 -07:00
Eric Wasylishen 1726f95484 use <fmt/core.h> instead of <fmt/format.h>
Should lighten compile times.

The only loss here is we'll no longer inherit e.g. "float" format specifiers for qvec3f.
2022-09-29 19:49:48 -06:00
Jonathan 52839d4e7f Run clang-format pass 2021-10-05 15:54:06 -04:00
Jonathan 41b9a79e83 Merge branch 'qbsp-contentflags' into type-cleanup
# Conflicts:
#	bsputil/bsputil.cc
#	common/bspfile.cc
#	common/cmdlib.cc
#	include/common/bspfile.hh
#	include/common/cmdlib.hh
#	qbsp/brush.cc
#	qbsp/portals.cc
#	qbsp/writebsp.cc
#	vis/vis.cc
2021-09-23 18:42:25 -04:00
Jonathan 326626f127 Remove some old stuff
Cleanup/rework of logging system. I'm not too happy about it still, but, it's at least a bit easier to follow now.
Started cleanup of file-related stuff.
2021-09-19 18:17:28 -04:00
Jonathan 4e7542b111 Clang format pass
typedef -> using
include guards -> pragma once
typedef struct x { } y; -> struct y { }
some fixes to extremely old code that shouldn't be required any more
2021-09-14 02:32:26 -04:00
Eric Wasylishen 527c63f55f build: remove obsolete cmake min required in subprojects 2021-09-12 01:30:20 -06:00
Eric Wasylishen 045303eeb9 lightpreview: tweak ui file 2017-04-29 10:42:06 -06:00
Eric Wasylishen 36df66ed2e lightpreview: fix up GLView constructor 2017-04-28 16:54:14 -06:00
Eric Wasylishen 428a169f95 lightpreview: add mousewheel support 2017-04-28 16:42:42 -06:00
Eric Wasylishen 9f1c337e68 lightpreview: install qt dll's 2017-04-28 14:07:52 -07:00
Eric Wasylishen ca15434e67 lightpreview: update minimum CMake version to avoid policy warnings on windows 2017-04-28 13:29:06 -07:00
Eric Wasylishen 62f70ec852 stub for lightpreview tool 2017-04-28 13:29:37 -06:00