Commit Graph

425 Commits

Author SHA1 Message Date
Eric Wasylishen 2673d9d8c3 qbsp: fix broken clipping hulls on rotating objects 2017-01-25 14:59:40 -07:00
Eric Wasylishen cc71ad024f qbsp: origin brush support
light: allow model offset on any brush entity with "origin" key set, not just ones with a "rotate_*" classname
2017-01-24 21:39:03 -07:00
Eric Wasylishen 986aad52c2 qbsp: save _mincolor to the .texinfo file 2016-11-02 17:10:01 -06:00
Eric Wasylishen e5f5b99584 qbsp: bounds check some array accesses 2016-11-02 16:52:12 -06:00
Eric Wasylishen 05447ee0b9 qbsp: use a mtexinfo_t for texinfo before writing to bsp 2016-11-02 16:45:41 -06:00
Eric Wasylishen 1b9d5538c2 qbsp: make BuildSurfaces not rely on map iteration order 2016-11-01 15:07:58 -06:00
Eric Wasylishen 40c090c604 qbsp: SaveFacesToPlaneList: reduce redunant map lookups 2016-11-01 14:58:51 -06:00
Eric Wasylishen a96aa4de70 qbsp: fix stupid perf bug in BuildSurfaces that I introduced
(unnecessary insertions and redundant lookups to a map)
2016-11-01 14:38:50 -06:00
Eric Wasylishen 2094114a18 qbsp: rename brushbsp.c -> .cc and convert tabs to spaces 2016-10-31 20:32:07 -06:00
Eric Wasylishen 27e93b3546 qbsp: import brushbsp.c from https://raw.githubusercontent.com/id-Software/Quake-2-Tools/master/bsp/qbsp3/brushbsp.c 2016-10-31 20:30:34 -06:00
Eric Wasylishen a6468984bf all: finish c++ification 2016-10-17 19:52:17 -06:00
Eric Wasylishen cc12810da3 qbsp: brush primitives support 2016-10-04 22:39:13 -06:00
Eric Wasylishen e3775e7f09 qbsp: accept absolute paths to map file (thanks lurq) 2016-09-24 12:34:29 -06:00
Eric Wasylishen 299e68e7e5 build: support Ubuntu 14.04 2016-09-23 15:13:58 -06:00
Eric Wasylishen 9340ce223a build: clean up request for C++11. require cmake 3.1 (which introduced CMAKE_CXX_STANDARD) 2016-08-09 16:00:09 -06:00
Eric Wasylishen 939778bd23 build: add snprintf wrapper from QuakeSpasm (vs2013 compat) 2016-08-06 15:47:40 -07:00
Eric Wasylishen afbc17d1ea qbsp, common: raise BOGUS_RANGE to 65536 2016-06-09 01:18:35 -06:00
Eric Wasylishen 7f31e6d4fd qbsp: don't warn about \b escape sequence 2016-04-29 10:36:26 -06:00
Eric Wasylishen b087f0f010 build: specify c99 2016-04-18 14:22:33 -06:00
Eric Wasylishen ed48508070 qbsp: fix usage of offsetof() with a non-compile time constant, was erroring on gcc 2016-03-16 10:55:39 -06:00
Eric Wasylishen 8773e0bb15 build: fix build error on Linux due to missing target_link_libraries(qbsp ) 2016-03-16 10:48:00 -06:00
Eric Wasylishen 1340529234 qbsp: add -splitsky and -splitturb, finer control over -splitspecial 2016-04-16 22:53:33 -06:00
Eric Wasylishen 91f321493e qbsp: fix wrong return type in ParseEntity 2016-04-07 21:11:53 -06:00
Eric Wasylishen 2121e73386 qbsp: fix -onlyents, broken in c++-ifying 2016-04-03 18:20:31 -06:00
Eric Wasylishen 177e037de3 qbsp: better bounds checking for mapbrush_t::face and mapentity_t::mapbrush 2016-03-20 20:02:39 -06:00
Eric Wasylishen 86e92ee6b3 qbsp: add missing include 2016-03-20 14:08:34 -06:00
Eric Wasylishen 60c0b64906 qbsp: change mapdata_t to use std::vector 2016-03-20 14:02:31 -06:00
Eric Wasylishen f3639eb1e3 qbsp: csg: rewrite planefaces structure to use std::map 2016-03-12 14:23:26 -07:00
Eric Wasylishen 4ee88ede3b qbsp: turn map.num* into functions 2016-03-12 13:50:24 -07:00
Eric Wasylishen 3db441eea2 qbsp: rename files to .cc 2016-03-12 13:02:28 -07:00
Eric Wasylishen ecff3f77a8 qbsp: add casts to compile as c++ 2016-03-12 13:00:33 -07:00
Eric Wasylishen 923118dfc6 qbsp: convert qbsp.c to c++ 2016-03-11 20:43:05 -07:00
Eric Wasylishen 4f66bd7ddc qbsp: grow texinfo array as needed 2016-03-11 19:30:20 -07:00
Eric Wasylishen 6e94f6a1c2 qbsp: c++ compat changes 2016-03-11 19:25:55 -07:00
Eric Wasylishen a4c24ac0fa qbsp: add -objexport flag to export to obj 2016-03-11 18:29:24 -07:00
Eric Wasylishen 41972a376a qbsp, light: Strip texinfo flags other than TEX_SPECIAL.
Write extended ones to a "mapname.texinfo" file.
Support "_dirt" and "_minlight" flags on func_detail/group.
2016-03-05 00:26:54 -07:00
Eric Wasylishen 492d94c1fe light: new phong shading keys, "_phong_angle" and "_phong".
"_phong" "1" is a shortcut for "_phong_angle" "89".
"_phong_angle" sets the max angle in degrees between faces that will get smoothed.
2016-03-02 20:00:05 -07:00
Eric Wasylishen 1a436d8f13 qbsp: fix for comments not incrementing line count.
fixes https://github.com/ericwa/tyrutils-ericw/issues/11
2016-02-25 13:17:53 -07:00
Eric Wasylishen 7128a8e956 code formatting, normalize most whitespace to 4 spaces 2016-02-15 16:20:29 -07:00
Eric Wasylishen 1da64c0db4 Fix bspx lump padding logic 2016-02-15 16:20:29 -07:00
Eric Wasylishen 1f05b7976a fix wrong FindTexinfo call
fix Lightmap_ForStyle call
change M_PI to Q_PI
switch to Q_strncasecmp
2016-02-15 16:18:51 -07:00
Eric Wasylishen 1630b8756e tyrutils-ericw-spike rebased on to 998c9d3acb 2016-02-15 16:16:37 -07:00
Eric Wasylishen 998c9d3acb qbsp: add hint to use -bsp2 to fix "Too many vertices" error. 2015-12-16 12:27:57 -07:00
Eric Wasylishen ab268ab9ba qbsp: CheckFace: print position of non-convex face 2015-12-10 15:58:40 -07:00
Eric Wasylishen 99d5a4d4f9 build: setup CPack to package binaries in a zip file 2015-12-09 16:23:36 -08:00
Eric Wasylishen dd440699fc qbsp: remove 128 character limit on key+value line 2015-12-08 23:25:53 -07:00
Eric Wasylishen 063786bf02 build: fix spurious errors in VS2015 IDE 2015-12-07 14:37:46 -08:00
Eric Wasylishen 420125cc67 replace tabs with spaces.
for FILE in $(find . -name "*.h" -or -name "*.c"); do cat $FILE | expand > temp; cat temp > $FILE; done
2015-12-07 15:08:48 -07:00
Eric Wasylishen 0ec1c96a06 build: fix warning 2015-12-07 14:40:44 -07:00
Eric Wasylishen c149ed2bf6 build: VS2015 support 2015-12-07 14:23:13 -07:00