Quake/Hexen 2 Map compiling tools - branch of http://disenchant.net/utils
Go to file
Jonathan 146f20f677 qbsp_plane_t is now used by other structures, and contains a faster epsilonEqual; since the majority of planes (especially nodes) are going to be axial, there's no need to use the slower full comparison when we can check if the axial component is ready. 2022-07-27 22:44:09 -04:00
.github/workflows ci: try enabling on all branches 2022-05-04 23:38:28 -06:00
3rdparty remove delabella 2022-07-21 20:06:33 -04:00
bspinfo bspinfo, bsputil: rename options -> bspinfo_options, bsputil_options 2022-07-10 17:32:23 -06:00
bsputil add in a "validator" setting which is just a thin wrapper to another setting type allowing for an additional validation step 2022-07-16 10:45:24 -04:00
cmake docs: build and package new Sphinx docs on macOS 2022-01-29 17:09:15 -07:00
common Squashed commit of the following: 2022-07-27 05:38:50 -04:00
docs docs: document -basedir/-gamedir 2022-07-07 00:36:29 -06:00
include qbsp_plane_t is now used by other structures, and contains a faster epsilonEqual; since the majority of planes (especially nodes) are going to be axial, there's no need to use the slower full comparison when we can check if the axial component is ready. 2022-07-27 22:44:09 -04:00
light use a reader/writer-esque lock (shared_mutex) instead of exclusive-only recursive lock to speed up plane stuff 2022-07-24 19:05:28 -04:00
lightpreview Run clang-format pass 2021-10-05 15:54:06 -04:00
qbsp qbsp_plane_t is now used by other structures, and contains a faster epsilonEqual; since the majority of planes (especially nodes) are going to be axial, there's no need to use the slower full comparison when we can check if the axial component is ready. 2022-07-27 22:44:09 -04:00
testmaps qbsp: rewrite of q1 contents representation in bspfile.cc 2022-07-27 02:31:49 -06:00
tests qbsp: rewrite of q1 contents representation in bspfile.cc 2022-07-27 02:31:49 -06:00
vis vis: rename options -> vis_options 2022-07-10 17:26:55 -06:00
.clang-format clang-format: change brace style to Linux 2022-04-09 21:43:58 -06:00
.gitattributes add gitattributes 2021-10-06 21:51:56 -06:00
.gitignore gitignore: ignore .chop.map 2022-05-04 23:32:49 -06:00
.gitmodules remove delabella 2022-07-21 20:06:33 -04:00
CMakeLists.txt tests: unify tests under one target 2022-07-10 16:36:15 -06:00
COPYING Import initial sources 2006-08-28 23:58:10 +09:30
README.md docs: setup Sphinx build on Ubuntu 2022-01-29 17:23:42 -07:00
appveyor.yml ci: move appveyor build to separate .ps1 script 2021-09-19 23:26:27 -06:00
build-appveyor.ps1 tests: unify tests under one target 2022-07-10 16:36:15 -06:00
build-linux-64.sh ci: "release only" tests are too slow to run with asan, at least for now 2022-07-13 01:14:37 -06:00
build-osx.sh ci: "release only" tests are too slow to run with asan, at least for now 2022-07-13 01:14:37 -06:00
changelog.md docs: update changelog, convert to markdown 2020-02-25 01:06:10 -07:00
clang-format-all.sh Clang format pass 2021-09-14 02:32:26 -04:00
gpl_v3.txt docs: add license note 2016-06-17 23:07:17 -06:00
testmaps.hh.in testqbsp: export .bsp's to quake dir 2022-04-17 02:58:40 -06:00

README.md

ericw-tools

Original tyurtils:

Build status

About

ericw-tools is a branch of Tyrann's quake 1 tools, focused on adding lighting features, mostly borrowed from q3map2. There are a few bugfixes for qbsp as well. Original readme follows:

A collection of command line utilities for building Quake levels and working with various Quake file formats. I need to work on the documentation a bit more, but below are some brief descriptions of the tools.

Included utilities:

  • qbsp - Used for turning a .map file into a playable .bsp file.

  • light - Used for lighting a level after the bsp stage. This util was previously known as TyrLite

  • vis - Creates the potentially visible set (PVS) for a bsp.

  • bspinfo - Print stats about the data contained in a bsp file.

  • bsputil - Simple tool for manipulation of bsp file data

See the doc/ directory for more detailed descriptions of the various tools capabilities. See changelog.md for a brief overview of recent changes or https://github.com/ericwa/ericw-tools for the full changelog and source code.

Compiling

Dependencies: Embree 3.0+, TBB (TODO: version?), Sphinx (for building manuals)

Ubuntu

sudo apt install libembree-dev libtbb-dev cmake build-essential g++
sudo apt install python3-pip
python3 -m pip install sphinx_rtd_theme
export PATH="~/.local/bin/:$PATH"
git clone --recursive https://github.com/ericwa/ericw-tools
cd ericw-tools
mkdir build
cd build
cmake ..

Windows

Example using vcpkg (32-bit build):

# TODO: sphinx installation

git clone --recursive https://github.com/ericwa/ericw-tools
cd ericw-tools
git clone https://github.com/microsoft/vcpkg
.\vcpkg\bootstrap-vcpkg.bat

# NOTE: vcpkg builds for 32-bit by default
# NOTE: takes 30+ minutes
.\vcpkg\vcpkg install embree3
mkdir build
cd build

# PowerShell syntax for getting current directory -
# otherwise, replace with absolute path to "vcpkg/scripts/buildsystems/vcpkg.cmake"
cmake .. -DCMAKE_TOOLCHAIN_FILE="$(pwd)/../vcpkg/scripts/buildsystems/vcpkg.cmake" -DCMAKE_GENERATOR_PLATFORM=Win32

macOS 10.15

brew install embree tbb
python3 -m pip install sphinx_rtd_theme
git clone --recursive https://github.com/ericwa/ericw-tools
cd ericw-tools
mkdir build
cd build
cmake .. -GXcode -DCMAKE_PREFIX_PATH="$(brew --prefix embree);$(brew --prefix tbb)"

Credits

  • Kevin Shanahan (AKA Tyrann) for the original tyrutils
  • id Software (original release of these tools is at https://github.com/id-Software/quake-tools)
  • rebb (ambient occlusion, qbsp improvements)
  • q3map2 authors (AO, sunlight2, penumbra, deviance are from q3map2)
  • Spike (hexen 2 support, phong shading, various features)
  • MH (surface lights based on MHColour)
  • mfx, sock, Lunaran (testing)
  • Thanks to users at func_msgboard for feedback and testing

License

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

Builds using Embree are licensed under GPLv3+ for compatibility with the Apache license.