Commit Graph

662 Commits

Author SHA1 Message Date
Rudolf Polzer 06afddfe80 Fix a possible bug in floodlighting/dirtmapping in conjunction with alphashadow surfaces 2013-03-28 12:26:46 +01:00
Rudolf Polzer dac8329952 Merge branch 'master' into divVerent/farplanedist-sky-fix
Conflicts:
	tools/quake3/q3map2/prtfile.c
	tools/quake3/q3map2/vis.c
	tools/quake3/q3map2/visflow.c
2012-05-15 11:58:06 +02:00
Rudolf Polzer 7fc621fc78 Merge remote-tracking branch 'ttimo/master'
Conflicts:
	config.py
	libs/missing.h
	plugins/model/cpicosurface.cpp
	plugins/vfspk3/unzip.cpp
	radiant/main.cpp
	radiant/mainframe.cpp
	radiant/mainframe.h
	radiant/missing.cpp
	radiant/pluginmanager.cpp
	radiant/preferences.cpp
	radiant/preferences.h
	tools/quake3/common/cmdlib.c
	tools/quake3/common/unzip.c
	tools/quake3/q3map2/image.c
2012-05-07 12:32:31 +02:00
Timothee 'TTimo' Besset 6476802ae8 dunno what happened there, someone brain farted hard 2012-05-06 15:55:10 -05:00
Timothee 'TTimo' Besset c40e0b3e57 unused 2012-04-15 11:24:38 -05:00
Timothee 'TTimo' Besset 943424faa1 fix q3map2 2012-04-14 17:31:10 -05:00
Timothee 'TTimo' Besset 85a66c9519 fix unzip code 2012-04-14 17:15:55 -05:00
Rudolf Polzer d005d46d64 oops, this was broken 2012-04-12 17:14:40 +02:00
Rudolf Polzer 62d99f889c Merge remote-tracking branch 'ttimo/master'
Conflicts:
	plugins/imagepng/plugin.cpp
	radiant/gtkdlgs.cpp
	radiant/radiant.ico
	tools/quake3/q3map2/image.c
2012-04-12 15:32:57 +02:00
michaelb 1f0271a988 fix invalid use of <glib/...> headers 2012-04-09 09:44:35 +02:00
alex8664 67411cb18e This is fix for failure of compilation on new libpng 2012-03-31 17:31:50 +04:00
Rudolf Polzer b7e36c120e Merge remote-tracking branch 'github/master'
Conflicts:
	.gitignore
	config.py
	libs/synapse/synapse.cpp
	plugins/imagehl/lbmlib.cpp
	plugins/surface_heretic2/surfacedialog.cpp
	plugins/surface_ufoai/surfacedialog.cpp
	radiant/brushscript.cpp
	radiant/main.cpp
	radiant/preferences.cpp
	tools/quake3/common/cmdlib.c
	tools/quake3/common/cmdlib.h
	tools/quake3/q3map2/path_init.c
	windows_compile_guide/index.html
2012-03-27 12:11:37 +02:00
Rudolf Polzer e4287c28bb my own uncrustify run 2012-03-27 12:03:21 +02:00
Rudolf Polzer 231225d6f9 Merge commit '515673c08f8718a237e90c2130a1f5294f966d6a'
Conflicts:
	.gitignore
	COMPILING
	CONTRIBUTORS
	ChangeLog
	DoxyConfig
	Doxyfile
	Doxygen_files/Doxyfile
	Doxygen_files/doxy_mainpage.h
	Doxygen_files/doxygen_gtkradiant_foot.html
	Doxygen_files/doxygen_gtkradiant_head.html
	Doxygen_files/doxygen_index.html
	Doxygen_files/doxygen_reference_foot.html
	Doxygen_files/doxygen_reference_head.html
	Doxygen_files/example/annotated.html
	Doxygen_files/example/classIEpair-members.html
	Doxygen_files/example/classIEpair.html
	Doxygen_files/example/classes.html
	Doxygen_files/example/files.html
	Doxygen_files/example/functions.html
	Doxygen_files/example/graph_legend.dot
	Doxygen_files/example/graph_legend.html
	Doxygen_files/example/index.html
	Doxygen_files/example/pages.html
	Doxygen_files/example/test_8c-source.html
	Doxygen_files/example/test_8c.html
	Doxygen_files/example/todo.html
	Doxygen_files/genDoxyfile
	Doxygen_files/gendoxfunctions
	Doxygen_files/reference1.html
	README.doxygen
	SConscript.q3map2
	SConscript.radiant
	TODO
	config.py
	contrib/bkgrnd2d/bkgrnd2d.vcproj
	contrib/bobtoolz/bobtoolz.vcproj
	contrib/camera/camera.vcproj
	contrib/gtkgensurf/gtkgensurf.vcproj
	contrib/hydratoolz/hydratoolz.vcproj
	contrib/prtview/prtview.vcproj
	contrib/ufoai/ufoai.vcproj
	gen.readme
	gendox
	libs/picomodel/picomodules.c
	plugins/eclassfgd/fgd.vcproj
	plugins/entity/entity.vcproj
	plugins/image/image.vcproj
	plugins/imagem8/imagem8.vcproj
	plugins/imagepng/imagepng.vcproj
	plugins/imagewal/imagewal.vcproj
	plugins/map/map.vcproj
	plugins/mapxml/mapxml.vcproj
	plugins/model/model.vcproj
	plugins/shaders/shaders.vcproj
	plugins/spritemodel/spritemodel.vcproj
	plugins/surface/surface.vcproj
	plugins/surface_heretic2/surface_heretic2.vcproj
	plugins/surface_quake2/surface_quake2.vcproj
	plugins/surface_ufoai/surface_ufoai.vcproj
	plugins/textool/textool.vcproj
	plugins/vfspak/vfspak.vcproj
	plugins/vfspk3/vfspk3.vcproj
	plugins/vfswad/vfswad.vcproj
	radiant.sln
	radiant/main.cpp
	radiant/mainframe.cpp
	radiant/preferences.cpp
	radiant/preferences.h
	radiant/radiant.vcproj
	setup/data/tools/plugins/bt/bt-el2.txt
	tools/quake3/q3map2/main.c
	tools/quake3/q3map2/q3map2.vcproj
	windows_compile_guide/index.html
2012-03-27 11:43:50 +02:00
Timothee TTimo Besset 6ac1b9cfd3 Merge branch 'master' of github.com:TTimo/GtkRadiant 2012-03-22 22:59:40 -05:00
Timothee TTimo Besset a5a1d8287b new version of glib is touchy 2012-03-22 22:57:36 -05:00
Ben Noordhuis f961a547ff q3map2: bump MAX_OS_PATH to 4096
Fixes a "buffer overflow detected" abort when compiled with _FORTIFY_SOURCE=1.

The realpath(3) function in glibc checks if the destination buffer is large
enough to hold up to PATH_MAX characters and aborts if that is not the case.
PATH_MAX doesn't have to be defined so assume that it's equal to 4096.

We should really be using pathconf(_PC_PATH_MAX) instead of a hard-coded value
but that means we can no longer use static buffers to hold paths.
2012-03-18 02:17:09 +01:00
Ben Noordhuis 3a959349ac q3map2: harden UNIX path sniffer against buffer overflows 2012-03-18 02:17:09 +01:00
Ben Noordhuis 808e1c9f6f q3map2: fix dangling pointer dereference
`last` was used but not initialized.

Also fixes a segmentation fault if PATH is not in the environment.
2012-03-18 02:17:09 +01:00
Ben Noordhuis d7e9dab03d q3map2: getpwent() result may not be persistent
Use getpwuid_r() instead and store the path in a static buffer.
2012-03-18 02:17:09 +01:00
Ben Noordhuis c2be26a9bd q3map2: add safe string copy functions
* Q_strncpyz()
* Q_strncat()
* Q_strcat()

Guard against buffer overruns, always zero terminate the result.
2012-03-18 02:17:09 +01:00
Ben Noordhuis 997811d430 q3map2: fix bogus empty string checks
qdir is an array, not a pointer, so `if (qdir)` is always true.
2012-03-18 02:17:09 +01:00
Ben Noordhuis ca8d032cfb fix warning: unused variable 'foo' 2012-03-18 02:17:09 +01:00
Ben Noordhuis 3311b00ae6 fix warning: format not a string literal and no format arguments 2012-03-18 02:13:11 +01:00
Timothee TTimo Besset 830125fad0 uncrustify! now the code is only ugly on the *inside* 2012-03-17 15:01:54 -05:00
Rudolf Polzer dba712acf6 query the online, not total, CPUs in case some were shut off 2012-03-03 17:31:03 +01:00
Lauri Kasanen 123f3fd962 q3map2: Small cleanups
Move one variable to the section it is used in, and remove one unnecessary
NULL check.

If si were NULL at that point, we would have segfaulted ages ago.

Signed-off-by: Lauri Kasanen <curaga@operamail.com>
2012-03-03 17:28:34 +01:00
Lauri Kasanen 053ca4041b Automatically determine the number of threads on linux
Signed-off-by: Lauri Kasanen <curaga@operamail.com>
2012-03-03 17:28:34 +01:00
Rudolf Polzer 747e474c40 remove internal libjpeg6 copy (patch by monad) 2012-03-01 10:24:29 +01:00
Rudolf Polzer e8f94f12dd Merge remote-tracking branch 'origin/divVerent/leak-fix' 2012-02-19 18:40:59 +01:00
Rudolf Polzer 312f954913 also select the best entity when a leak was found 2012-02-14 13:24:05 +01:00
Rudolf Polzer 11fdc6f6d0 .lin files: find optimal path from leak entity 2012-02-14 13:19:44 +01:00
Rudolf Polzer bca4840507 another experimental change: better handle leaky maps 2012-02-14 11:35:59 +01:00
Rudolf Polzer 917677bab9 fix drawindexes crash when loading BSP files 2012-02-13 21:09:11 +01:00
Rudolf Polzer f8bfc8d1df fix crash in -bsp 2012-02-13 11:22:07 +01:00
Rudolf Polzer 3a7c77d720 unlimit MAX_MAP_DRAW_INDEXES 2012-02-12 19:00:55 +01:00
Rudolf Polzer d5d6e98191 add option -nofastpoint; make old buggy behaviour default as it is typically a lot faster. To not use fast point lights, pass -nofastpoint but not -fast. 2012-02-09 11:28:49 +01:00
Rudolf Polzer 8dcd2d22e6 slow down non-fast operation but make it more accurate by not using falloff tolerance at all when -fast is not used 2012-02-09 10:51:09 +01:00
Rudolf Polzer c30d367a12 FIXME comment because falloffTolerance is checked in non-fast too for point lights, should we really do that? Maybe add a -slow then... 2012-02-09 10:41:17 +01:00
Rudolf Polzer 0c44cbd7ea fix falloff tolerance for sRGB 2012-02-09 10:41:09 +01:00
Rudolf Polzer c60d22dd26 swap values 0 and 1 for -exposure (now -exposure 0 does nothing, -exposure 1 did what 0 did before) 2012-02-09 10:40:48 +01:00
Rudolf Polzer 7bd87de737 fix deprecation with libpng 1.4 2012-01-23 17:25:22 +01:00
Rudolf Polzer d0df309a98 Xonotic: make sRGB compiles default 2011-12-31 14:37:43 +01:00
Rudolf Polzer a0b68611bc don't care for singular/plural in -shaderasbitmap vs -shadersasbitmap etc. 2011-12-30 20:01:02 +01:00
Rudolf Polzer 2f85cccd8c -onlyents: keep gridsize as stored in the bsp 2011-12-27 19:45:22 +01:00
Rudolf Polzer f536f829e5 add shorthand option -nosRGB to turn off all sRGB modes 2011-12-25 19:45:09 +01:00
Rudolf Polzer 56bbeb0552 Merge branch 'master' of /var/cache/git/xonotic/netradiant 2011-12-21 16:36:07 +01:00
Rudolf Polzer c4ff5f029f 256 surfaceparms 2011-12-21 16:35:44 +01:00
Rudolf Polzer 272a29bdd8 always use color normalization, vector normalization on colors is worng 2011-12-18 22:36:53 +01:00
Rudolf Polzer bb15de2ddc also support -sRGBcolor for floodlight 2011-12-14 09:51:15 +01:00
Rudolf Polzer 2b560b8348 sRGB convert all shader specified colors 2011-12-14 09:51:15 +01:00
Rudolf Polzer 084d085966 support -sRGBcolor for all _color keys 2011-12-14 09:51:15 +01:00
Rudolf Polzer 870333585c support -sRGBcolor for flares 2011-12-14 09:51:15 +01:00
Rudolf Polzer f4e45cb897 option: -sRGBcolor (unused yet) 2011-12-14 09:51:15 +01:00
Rudolf Polzer 48a8cb1d67 mark two shader checks nullable 2011-12-09 17:24:33 +01:00
Rudolf Polzer b104009ba6 no, we do NOT want to ignore caulk 2011-12-09 17:17:31 +01:00
Rudolf Polzer 35162b6b63 properly ignore caulk 2011-12-09 17:15:51 +01:00
Rudolf Polzer aef478a99a PROPERLY ignore sky brushes for minimap 2011-12-09 16:36:07 +01:00
Rudolf Polzer c3a3978aea -autolevel for minimap 2011-12-09 16:18:17 +01:00
Rudolf Polzer a75d633c49 fix lightstyle compare (SIGBUS on SPARC) 2011-12-08 14:11:06 +01:00
Rudolf Polzer 4afa1f6427 AllocWinding: fix handling of compiler enforced alignment of double 2011-12-08 12:20:56 +01:00
Rudolf Polzer 76dd045925 properly support -keeplights option. Current implementation never worked. 2011-12-01 16:47:35 +01:00
Rudolf Polzer 34d45e210f _farplanedist now ignores C_SKY leafs 2011-11-23 12:01:02 +01:00
Rudolf Polzer 6b01d68ba6 audit all uses of ClipWindingEpsilon and choose the strict variant or not, and explain why 2011-11-23 09:44:05 +01:00
Rudolf Polzer 323c01a983 try to fix the "-np surfaces disappear" bug 2011-11-22 12:10:26 +01:00
Rudolf Polzer 8bff7284c3 fix an obvious q3map2 bug that causes BSP leafs to be too big sometimes. Maybe improves fps. No other change. 2011-11-20 21:37:55 +01:00
Rudolf Polzer e8f27310d6 also new option: -sRGBtex, and renamed -sRGB to -sRGBlight 2011-10-29 16:33:46 +02:00
Rudolf Polzer aaa68ca620 fix spotScale implementation 2011-10-29 16:10:09 +02:00
Rudolf Polzer 2cc696a6e1 add separate spotlight scale -spotscale 2011-10-29 13:38:19 +02:00
Rudolf Polzer 98bf67071d add also a -nosRGB option to turn sRGB off 2011-10-22 15:38:56 +02:00
Rudolf Polzer 5c97bccbf6 experimental q3map2 command line option: -sRGB (store lightmaps in sRGB) 2011-10-21 17:25:09 +02:00
Rudolf Polzer d67672d1b3 alphashadow/lightfilter: bound the texcoords after converting to integer to guard against float accuracy issues 2011-10-18 17:07:24 +02:00
Rudolf Polzer 756d07eba3 add a missing memset 2011-10-18 11:12:31 +02:00
Rudolf Polzer 4b642e822f totally unlimit entities 2011-10-17 06:53:42 +02:00
Rudolf Polzer f15b9265ec Merge branch 'master' of git://de.git.xonotic.org/xonotic/netradiant 2011-10-17 06:47:47 +02:00
Rudolf Polzer ed1e2eb318 allow more entities 2011-10-17 06:47:29 +02:00
Rudolf Polzer 778563508d fix two obvious typos 2011-09-16 06:55:21 +02:00
Rudolf Polzer 9aa6996229 make runtime parameters for meta 2011-09-15 21:19:39 +02:00
Rudolf Polzer 33885f370c fix MAX_BBOX_DISTANCE path (not enabled) 2011-09-15 17:21:40 +02:00
Rudolf Polzer db1787bbfa handle forbidden dir exclusions properly now 2011-07-01 12:49:31 +02:00
Rudolf Polzer c75ae4296b forbidden dirs: allow wildcard patterns 2011-07-01 11:27:15 +02:00
Rudolf Polzer 11186bfec5 misc_model: also support _skin name; also support frame field name 2011-06-05 20:37:37 +02:00
Rudolf Polzer bf4ab34b0a more warnings done. Now q3map2 is warning free apart from libpng deprecation problems. 2011-06-05 19:47:08 +02:00
Rudolf Polzer 7db8ac9952 more warnings be gone 2011-06-05 19:43:21 +02:00
Rudolf Polzer 148c7d50d5 more warning fixes 2011-06-05 19:37:54 +02:00
Rudolf Polzer 098472b067 fix a slight memory leak 2011-06-05 19:37:50 +02:00
Rudolf Polzer 2af64392f8 fix uninitialized use of an int when filtering a patch into a tree - possible performance increase after this fix 2011-06-05 19:33:29 +02:00
Rudolf Polzer 770b8ea401 fix ignoring surface alpha for surfacemodels 2011-06-05 19:32:43 +02:00
Rudolf Polzer c75d4746fd some warning fixes 2011-06-05 19:32:39 +02:00
Rudolf Polzer dbaf1a8f00 fix some more warnings 2011-06-05 19:21:31 +02:00
Rudolf Polzer 772c8fda0f fix a scanf warning 2011-06-05 19:19:45 +02:00
Rudolf Polzer bbce294abb fix a possible bug that can cause ds->shaderInfo to be NULL 2011-06-05 18:43:31 +02:00
Rudolf Polzer 865fc23ebf fix compile errors 2011-05-15 22:26:46 +02:00
Rudolf Polzer d8518d0278 fix error 2011-05-15 22:24:57 +02:00
Rudolf Polzer f2ba0cbb0a support passing the home path to q3map2 as -fs_home (home dir only, ends with /. to request a dotdir name) and -fs_homepath (full path, including /.gamename) 2011-05-01 18:49:33 +02:00
Rudolf Polzer 410909df7d q3map2: accept -fs_home /home/rpolzer/.xonotic to set the home dir 2011-05-01 18:43:34 +02:00
Rudolf Polzer a15293c86f untested changes so DP might work with this again. Who knows if they even compile. 2011-04-29 10:55:57 +02:00
Rudolf Polzer d4500cb5d9 fix two more bugs 2011-04-20 17:50:29 +02:00
Rudolf Polzer 50e0a3fb24 add a missing #include 2011-04-20 17:49:36 +02:00
Rudolf Polzer 9b15142ec2 q3map2: use "My Games" directory if exists on Win32 2011-04-20 17:44:27 +02:00
rambetter 88f8603d62 8MB stack size linker options on all VC2008 proj files.
git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@485 8a3a26a2-13c4-0310-b231-cf6edde360e5
2011-04-06 04:12:34 +00:00
rambetter 33da149be0 Backing out commit 483. Going to set linker flags instead.
git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@484 8a3a26a2-13c4-0310-b231-cf6edde360e5
2011-04-06 04:08:22 +00:00
rambetter e39f6f4bae Increasing stack size on Windows build.
git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@483 8a3a26a2-13c4-0310-b231-cf6edde360e5
2011-04-06 03:56:18 +00:00
rambetter a62e98a1f9 Fixing a Sys_Printf() in main() for "q3map2 -convert". The usage message was
copied from "-scale" and was incorrect.  Thanks to Ensiform from ioquake3 IRC
room for reporting this bug.


git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@482 8a3a26a2-13c4-0310-b231-cf6edde360e5
2011-03-06 19:14:50 +00:00
Rudolf Polzer f43d2c575d Revert "also load DDS files the way DarkPlaces stores them (does DDS loading even work?)" because Radiant does not support this yet, and it won't be easy to do the same hack in Radiant.
This reverts commit 8850310690.
2011-02-23 13:25:27 +01:00
Rudolf Polzer 8850310690 also load DDS files the way DarkPlaces stores them (does DDS loading even work?) 2011-02-23 13:24:47 +01:00
Rudolf Polzer 4d276901a6 also support the alpha channel hack for JPEG that DarkPlaces supports (foo.jpg + foo_alpha.jpg) 2011-02-23 13:22:07 +01:00
Rudolf Polzer 6b48a837f9 forgot to check lightDeluxel for NULL here 2011-02-22 17:48:30 +01:00
rambetter 561e062c87 This is a major change that updates the 3rd party libs on Windows builds.
A couple of things are broken right now:
- OpenGL font in Windows not appearing (expected to be broken, will fix)
- Linux build broken because it loads some .vcproj files that are removed
- 3rd party libs are downloaded from porky.nerius.com, not id Software


git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@473 8a3a26a2-13c4-0310-b231-cf6edde360e5
2011-02-21 14:37:49 +00:00
Rudolf Polzer 9aec6744f5 (by LordHavoc) game_etut uses BSP format version 47 too 2011-01-30 16:02:01 +01:00
Forest Hale 53af03faff use bsp version 47 for the appropriate games, this unbreaks a previous
commit


git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@440 8a3a26a2-13c4-0310-b231-cf6edde360e5
2011-01-30 03:18:05 +00:00
Rudolf Polzer b56d42b971 custom surfaces as used by reaction quake 2011-01-22 16:13:00 +01:00
rambetter 7dceb250fe Modifying game_reaction.h (for the game Reaction) to add custom surfaces.
This is more convenient than using custinfoparms.txt.  TTI (from the
Reaction team) game these to me.


git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@434 8a3a26a2-13c4-0310-b231-cf6edde360e5
2011-01-22 07:03:51 +00:00
Rudolf Polzer ccb417b54d fix the game_ file to match this q3map2 version 2011-01-20 14:36:18 +01:00
rambetter 1f2be9e1a6 In function AddGamePath() in path_init.c for q3map2,
only adding path if it's not already added (remove duplicates).
It's cleaner this way.

git-svn-id: https://zerowing.idsoftware.com/svn/radiant/GtkRadiant/trunk@432 8a3a26a2-13c4-0310-b231-cf6edde360e5
2011-01-20 14:35:44 +01:00
Rudolf Polzer 857d05d90f Adding game_reaction.h to q3map2. We cannot use "-game quake3" because
we use ~/.Reaction instead of ~/.q3a .  Oh well.  This is for Reaction Quake III.

git-svn-id: https://zerowing.idsoftware.com/svn/radiant/GtkRadiant/trunk@431 8a3a26a2-13c4-0310-b231-cf6edde360e5

Conflicts:

	tools/quake3/q3map2/q3map2.h
2011-01-20 14:35:30 +01:00
rambetter 083f7c7d6a In function AddGamePath() in path_init.c for q3map2,
only adding path if it's not already added (remove duplicates).
It's cleaner this way.


git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@432 8a3a26a2-13c4-0310-b231-cf6edde360e5
2011-01-20 07:15:47 +00:00
rambetter 89f0eeeb28 Adding game_reaction.h to q3map2. We cannot use "-game quake3" because
we use ~/.Reaction instead of ~/.q3a .  Oh well.  This is for Reaction Quake III.


git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@431 8a3a26a2-13c4-0310-b231-cf6edde360e5
2011-01-20 06:31:26 +00:00
Rudolf Polzer 391d71d9ba remove unnecessary code found by Rambetter 2011-01-19 08:02:00 +01:00
rambetter cb169716fe Fixing a 45 degree model clipping problem.
Introducing Q3MAP2_EXPERIMENTAL_MODEL_CLIPPING_FIX to control the new code,
current value is 1 (enable the fix).
This code fixes the q3map2 regression test model_clipping_45_degrees.


git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@429 8a3a26a2-13c4-0310-b231-cf6edde360e5
2011-01-19 06:41:33 +00:00
Rudolf Polzer cfbdf38d39 fix another misapplied diff 2011-01-13 21:18:04 +01:00
Rudolf Polzer 34a1e2074b ::zerowing-base=428 2011-01-12 13:58:55 +01:00
rambetter 3b0589dd8b Renaming #define constants:
EXPERIMENTAL_HIGH_PRECISION_MATH_Q3MAP2_FIXES ->
  Q3MAP2_EXPERIMENTAL_HIGH_PRECISION_MATH_FIXES
EXPERIMENTAL_SNAP_NORMAL_FIX ->
  Q3MAP2_EXPERIMENTAL_SNAP_NORMAL_FIX
EXPERIMENTAL_SNAP_PLANE_FIX ->
  Q3MAP2_EXPERIMENTAL_SNAP_PLANE_FIX


git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@423 8a3a26a2-13c4-0310-b231-cf6edde360e5
2011-01-12 03:21:31 +00:00
Rudolf Polzer 94cb905da9 ::zerowing-base=422 2011-01-11 14:39:55 +01:00
rambetter 098fe8f8d5 Increasing the values of 3 constants that control how much space is reserved
for the stack and/or static memory for holding arrays of structures.
MAX_ORIGINAL_EDGES changed from 0x10000 to 0x20000 (x2 increase).
MAX_MAP_BRUSHES changed from 0x8000 to 0x10000 (x2 increase).
MAX_MAP_DRAW_VERTS changed from 0x80000 to 0x100000 (x2 increase).
This is pertaining to q3map2 only.
There is a real-world case where increasing these constants is needed.
That case is when compiling Icy World for Urban Terror.
Besides that, increasing these does not hurt anything (other than requiring
more memory).


git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@422 8a3a26a2-13c4-0310-b231-cf6edde360e5
2011-01-11 09:49:45 +00:00
rambetter ea589bedcc As per TTimo's suggestion, turning all three experimental q3map2 fixes on
in q3map2.h: EXPERIMENTAL_HIGH_PRECISION_MATH_Q3MAP2_FIXES,
EXPERIMENTAL_SNAP_NORMAL_FIX, and EXPERIMENTAL_SNAP_PLANE_FIX.  These are all
set to 1 now.


git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@421 8a3a26a2-13c4-0310-b231-cf6edde360e5
2011-01-11 08:25:10 +00:00
rambetter a16ee23adf Importing code changes for q3map2 from Rambetter-math-fix-experiments branch
into trunk.  Right now all the new code that fixes problems is turned off. 
There are three	new #defines in q3map2.h:
EXPERIMENTAL_HIGH_PRECISION_MATH_Q3MAP2_FIXES, EXPERIMENTAL_SNAP_NORMAL_FIX,
and EXPERIMENTAL_SNAP_PLANE_FIX.  All of these are currently set to 0, which
means don't enable that new code.  You can easily edit these to be 1 in order
to enable the new code.

There are very very minor changes to the code even with these three #defines
disabled.  They are as follows.

- In PlaneEqual() in map.c, now considering deltas equal to given epsilon
values as "far enough to be different".  Previously, the '<=' operation was
used, now '<' is being used.

- In FindFloatPlane() in map.c, considering delta equal to distanceEpsilon
(for plane distance) to be sufficiently far away.  Before, delta had to be
strictly greater than distanceEpsilon.

- VectorNormalize() in mathlib.c is more accurate now. 	This change itself
causes at least	one regression test to succeed.  The previous implementation
of VectorNormalize() caused excessive errors to	be introduced due to sloppy
arithmetic.

Note, the epsilon changes account for the possibility that the epsilons 
are set to 0.0 on the command-line.


git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@416 8a3a26a2-13c4-0310-b231-cf6edde360e5
2011-01-10 06:15:47 +00:00
Rudolf Polzer 6ce0c65e77 fix two bugs cppcheck found 2011-01-08 20:59:46 +01:00
Rudolf Polzer b15b0b849f treat entity leak different from entity in solid (the latter should not cause a leak message, but a proper "in solid") 2011-01-02 20:42:33 +01:00
Rudolf Polzer 8f04ed28bf fix these options more 2011-01-01 20:19:57 +01:00
Rudolf Polzer 8b586748c4 fix option checking for -grid* options 2011-01-01 20:15:20 +01:00
Rudolf Polzer 7a04b6fdea Author: rambetter
Date: Thu Dec 30 21:03:13 2010
New Revision: 390

Modified:
GtkRadiant/trunk/libs/mathlib.h
GtkRadiant/trunk/libs/mathlib/mathlib.c
GtkRadiant/trunk/tools/quake3/common/polylib.c
Log:
Undoing commits r363 and r371 as it pertains to polylib.c, mathlib.c,
and mathlib.h (the regression tests have not been removed).
Trunk is now restored to a state that it was in before I started
trying to fix the math accuracy errors in q3map2.  Commits r363 and
r371 were "correct" and did improve math accuracy significantly, but
unfortunately the underlying cause of math accuracy issues is something
else, which is being addressed in branch Rambetter-math-fix-experiments
currently.  I'm taking the BSD approach here, which is "we not going to
partially fix the problem.  it's all or nothing".  Otherwise it's just
too risky in my opinion.  I don't like playing Whack-A-Mole.

Someday, we might merge Rambetter-math-fix-experiments branch to trunk.
Sorry about all these needless commits to trunk.
2010-12-31 18:54:33 +01:00
rambetter 5526da8cdc Undoing commits r363 and r371 as it pertains to polylib.c, mathlib.c,
and mathlib.h (the regression tests have not been removed).
Trunk is now restored to a state that it was in before I started
trying to fix the math accuracy errors in q3map2.  Commits r363 and
r371 were "correct" and did improve math accuracy significantly, but
unfortunately the underlying cause of math accuracy issues is something
else, which is being addressed in branch Rambetter-math-fix-experiments
currently.  I'm taking the BSD approach here, which is "we not going to
partially fix the problem.  it's all or nothing".  Otherwise it's just
too risky in my opinion.  I don't like playing Whack-A-Mole.

Someday, we might merge Rambetter-math-fix-experiments branch to trunk.
Sorry about all these needless commits to trunk.


git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@390 8a3a26a2-13c4-0310-b231-cf6edde360e5
2010-12-31 03:03:13 +00:00
Rudolf Polzer 469cba24be Author: rambetter
New Revision: 379
Undoing revision 377 (reverting just those files modified by that
commit).  I have disovered the fundamental problem to the math error problems,
and although this commit (r377) is "correct", it fails to address the
fundamental problem.  Therefore, I'd rather leave the code in a state that
has the exact same behavior as before until I get a chance to address the
fundamental issue.
2010-12-29 17:41:57 +01:00
Rudolf Polzer 7aa95f5ab5 svn r377 by Rambetter:
Continuing work on BaseWindingForPlane() in polylib.c.  In fact I'm pursuing
the approach that was committed in r375 (but was then backed out).  I can't
believe my eyes, but I seem to be getting 0.000000% error in some of my
regression tests.  The trick is to scale by a power of 2 and never do a
VectorNormalize().
2010-12-29 17:38:21 +01:00
Rudolf Polzer 7daa362c91 Author: rambetter
New Revision: 376
Undoing revision 375 because it did not offer measured accuracy improvements
in the q3map2 math calculations.
2010-12-29 17:36:09 +01:00
rambetter f62ab305fc Undoing revision 377 (reverting just those files modified by that
commit).  I have disovered the fundamental problem to the math error problems,
and although this commit (r377) is "correct", it fails to address the
fundamental problem.  Therefore, I'd rather leave the code in a state that
has the exact same behavior as before until I get a chance to address the
fundamental issue.


git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@379 8a3a26a2-13c4-0310-b231-cf6edde360e5
2010-12-29 09:00:47 +00:00
rambetter f36b40ae62 Continuing work on BaseWindingForPlane() in polylib.c. In fact I'm pursuing
the approach that was committed in r375 (but was then backed out).  I can't
believe my eyes, but I seem to be getting 0.000000% error in some of my
regression tests.  The trick is to scale by a power of 2 and never do a
VectorNormalize().


git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@377 8a3a26a2-13c4-0310-b231-cf6edde360e5
2010-12-29 04:32:35 +00:00
rambetter 52fd922c64 Undoing revision 375 because it did not offer measured accuracy improvements
in the q3map2 math calculations.


git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@376 8a3a26a2-13c4-0310-b231-cf6edde360e5
2010-12-28 20:05:50 +00:00
Rudolf Polzer 887435af2b Fix by Rambetter (svn r371):
Following up on r371; found another optimization for math rounding errors
in BaseWindingForPlane().  This allows me to get rid of an extra call to
VectorSetLength() which contain floating point multiplications.  Behavior
of BaseWindingForPlane() has been verified against base_winding regression
test (comparing output w/ logging patch).
2010-12-28 20:31:25 +01:00
rambetter 05e2114294 Following up on r371; found another optimization for math rounding errors
in BaseWindingForPlane().  This allows me to get rid of an extra call to
VectorSetLength() which contain floating point multiplications.  Behavior
of BaseWindingForPlane() has been verified against base_winding regression
test (comparing output w/ logging patch).


git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@375 8a3a26a2-13c4-0310-b231-cf6edde360e5
2010-12-28 19:26:52 +00:00
Rudolf Polzer b20c63153a better help for -convert 2010-12-28 13:50:14 +01:00
Rudolf Polzer 74ca0f3701 change -convert arguments to get -readmap, -readbsp arguments 2010-12-28 13:47:29 +01:00
Rudolf Polzer ec64df5697 Author: rambetter
Date: Tue Dec 28 04:02:11 2010
New Revision: 371

Rewriting BaseWindingForPlane() in polylib.c from the ground up.  The behavior is totally unchanged, and I verified this by running extensive tests.  The only difference is that the math precision is much much better now.  Performance should be better as well (but that is not tested).  This is a major milestone because it fixes two regression tests: disappearing_sliver2 and sparkly_seam.
Improvements to math precision is ongoing and more improvements can probably be made even after this patch.
I will update the README.txt files in the regression tests in a separate commit.  This commit only includes the actual fixed code.
2010-12-28 11:24:25 +01:00
rambetter c5449b8cc5 Rewriting BaseWindingForPlane() in polylib.c from the ground up. The behavior
is totally unchanged, and I verified this by running extensive tests.  The
only difference is that the math precision is much much better now.
Performance should be better as well (but that is not tested).
This is a major milestone because it fixes two regression tests:
disappearing_sliver2 and sparkly_seam.
Improvements to math precision is ongoing and more improvements can probably
be made even after this patch.
I will update the README.txt files in the regression tests in a separate
commit.  This commit only includes the actual fixed code.


git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@371 8a3a26a2-13c4-0310-b231-cf6edde360e5
2010-12-28 10:02:11 +00:00
Rudolf Polzer 1bd74f2b3c use forward slashes in .mtl files 2010-12-27 12:44:03 +01:00
Rudolf Polzer 5245aefcbe also -deluxemapsastexcoord 2010-12-26 00:18:13 +01:00
Rudolf Polzer bd191dea07 fix warnings 2010-12-23 12:54:38 +01:00
Rudolf Polzer fa46a28662 improved lightmap handling 2010-12-23 12:52:10 +01:00
Rudolf Polzer b80d1ce478 fix file extension 2010-12-23 10:25:23 +01:00
Rudolf Polzer 4853a12dc8 fix some file name bugs 2010-12-23 10:23:53 +01:00
Rudolf Polzer 5097e3d49d option -lightmapsastexcoord to extract lightmap UV 2010-12-23 10:10:54 +01:00
Rudolf Polzer 4e12b14cdf make it callable 2010-12-23 09:39:59 +01:00
Rudolf Polzer c19e7448fa initial obj support 2010-12-23 09:38:40 +01:00
Rudolf Polzer 780e5b6e21 make names unique again 2010-12-23 09:14:48 +01:00
Rudolf Polzer 6f9e9fd122 intermediate commit to add .obj conversion support 2010-12-23 09:11:47 +01:00
TTimo 7c46911658 rebuilt gtk binary dependencies file
fixed/optimized a number of VC9 project settings
fixed sprintf being hijacked by intl.dll stuff


git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@345 8a3a26a2-13c4-0310-b231-cf6edde360e5
2010-12-13 04:21:05 +00:00
TTimo e393e112f4 compiles again on win32, trashed mhash
git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@338 8a3a26a2-13c4-0310-b231-cf6edde360e5
2010-11-26 05:59:17 +00:00
Rudolf Polzer c792ef6379 also fix the unhashed case 2010-11-19 06:43:29 +01:00
Rudolf Polzer 40292b11c8 minor fix for plane snapping 2010-11-19 06:41:58 +01:00
namespace 11bb5b5720 pthread_join Fix from Nerius Landys
git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@333 8a3a26a2-13c4-0310-b231-cf6edde360e5
2010-11-13 13:36:27 +00:00
Rudolf Polzer fa9d3a210a new args -meta and -patchmeta to -convert with .map file argument 2010-11-13 08:31:56 +01:00
Rudolf Polzer 32f2674d17 option -forcereadbsp for -convert to allow forcing the BSP reading code in the radiant build menu 2010-11-13 08:03:39 +01:00
Rudolf Polzer cf84ba8be2 new light option -fill to improve lossy compression of lightmaps (should have no other impact) 2010-10-31 12:38:58 +01:00
Rudolf Polzer 62fdec79ee local variables ALSO work better when declared 2010-10-30 18:10:23 +02:00
Rudolf Polzer b7a62893a4 add a floodlightDirectionScale value to the _floodlight key too (whatever it does) 2010-10-30 18:07:37 +02:00
Rudolf Polzer 39182c67ef no half lambert for xonotic please, it sucks ;) 2010-10-30 18:00:09 +02:00
Rudolf Polzer 020a3febce no need to artificially limit lightmap position for random supersampling 2010-10-30 16:37:04 +02:00
Rudolf Polzer aa00101d5e dirtmapping: PROPERLY prevent hitting sky 2010-10-30 16:36:53 +02:00
Rudolf Polzer 4553078f35 better override lightSamplesInsist (-samples +1, +2, +3, +4 skip the samples preset loading) 2010-10-22 09:41:48 +02:00
Rudolf Polzer 91ea2ae81c be more verbose about randomsamples presets 2010-10-22 09:36:40 +02:00
Rudolf Polzer d1e3042389 support search box size in randomsamples too (although useless) 2010-10-22 09:35:41 +02:00
Rudolf Polzer 10dfced6cb -randomsamples: special handling of -samples 1, 2, 3, 4 as quality presets (to be more consistent with typical -samples use) 2010-10-21 20:35:35 +02:00
Rudolf Polzer cc6bdd4869 Merge branch 'master' of ssh://icculus.org/netradiant 2010-10-14 10:07:39 +02:00
jal 8c7ca79ef5 Ignore transparent surfaces when floodlighting 2010-10-13 16:26:28 +02:00
Rudolf Polzer 05b62ff70f warn on wrong -convert use, always allow .map input 2010-10-09 21:54:55 +02:00
Rudolf Polzer cf1b60d899 don't write the bsp twice when pseudo compiling 2010-10-09 21:29:15 +02:00
Rudolf Polzer 6980df0b21 EXPERIMENTAL: make the pseudo compiler able to output a .bsp file:
q3map2 -game xonotic -convert -format xonotic filename.map
note that this is a quite bad compile (no tjunctions, no models, nothing, but lightning fast)
2010-10-09 21:22:22 +02:00
Rudolf Polzer af9f1a2e22 add missing EndBSPFile() call 2010-10-09 19:47:13 +02:00
Rudolf Polzer 8442ecbb14 .ase also works from .map! 2010-10-09 19:37:43 +02:00
Rudolf Polzer 1b73f1f78b the decompiler now can convert .map files too 2010-10-09 19:28:19 +02:00
Rudolf Polzer 205771e916 initial code for converting .map to .map 2010-10-09 18:25:19 +02:00
Rudolf Polzer 43f30dc837 fix issues with embedded models 2010-10-08 20:38:30 +02:00
Rudolf Polzer b56cb7b42e properly export texdef origin brushes 2010-10-08 06:30:36 +02:00
Rudolf Polzer 266de1d7bb fix "bad texdef" 2010-10-08 06:22:47 +02:00
Rudolf Polzer b5c33b5fd7 decompiler now outputs somewhat correct texdef 2010-10-07 21:04:54 +02:00
Rudolf Polzer e5e8f67120 break break break ;) 2010-10-07 17:56:41 +02:00
Rudolf Polzer f5fc3cd9f9 fix compile errors 2010-10-07 17:43:05 +02:00
Rudolf Polzer c5745ac942 experimental non-BrushPrimit map decompiling (probably won't even compile yet) 2010-10-07 17:38:45 +02:00
Rudolf Polzer 18c11bf55e YEAH! I think this fixes the lightmaps-of-patches bug! 2010-10-05 18:50:24 +02:00
Rudolf Polzer cadab3422e more warnings 2010-10-05 15:06:52 +02:00
Rudolf Polzer d5a9782200 fix some more warnings 2010-10-05 15:04:45 +02:00
Rudolf Polzer 4487b4d44f fix "ExpandPath called without qdir set" as qdir is never set in Xonotic/Nexuiz/any other nonquake 2010-10-05 11:24:42 +02:00
rpolzer 5ec3a47e10 q3map2 is now waring free 2010-10-05 10:57:07 +02:00
rpolzer 5f1f257a1c add a missing VectorClear 2010-10-04 10:48:22 +02:00
Rudolf Polzer 4c13f31535 use a Gaussian-like random distribution for random subsampling 2010-10-03 21:14:54 +02:00
Rudolf Polzer 02d17b50a7 also subsample the deluxemap (this was forgotten all the time!) 2010-10-03 20:50:09 +02:00
Rudolf Polzer 61d0c06cc6 option -randomsamples: makes -samples use adaptive random subsampling (only subsamples near edges, uses random distribution for luxels then) 2010-10-03 20:23:14 +02:00
Rudolf Polzer 8ff9eafc50 fix bugs in skin load code 2010-10-01 12:13:36 +02:00
Rudolf Polzer 5c389d3f8a fix segfault 2010-10-01 11:55:29 +02:00
Rudolf Polzer 43b05f81bc skinfiles: use the VFS 2010-10-01 11:49:38 +02:00
Rudolf Polzer 7b7d0471b6 fix warnings 2010-10-01 11:29:51 +02:00
Rudolf Polzer 3dd2ff55b1 support .skin files for models (modelname_<n>.skin) like Q3A and DP 2010-10-01 11:29:51 +02:00
Rudolf Polzer 1773a1823c Merge branch 'master' of ssh://git.xonotic.org/netradiant 2010-09-27 09:58:57 +02:00
Rudolf Polzer 20eed03c3f remove some unused code 2010-09-27 09:58:50 +02:00
Rudolf Polzer 511f7bd2c2 remove some debug code that is potentially dangerous 2010-09-27 09:58:22 +02:00
Rudolf Polzer 30a8c2c22c more deluxemap+surfacelight fixes 2010-09-23 08:30:17 +02:00
Rudolf Polzer c13784bc3a force subsampling only where REALLY needed 2010-09-22 08:49:43 +02:00
Rudolf Polzer 382e2da9a0 fix compile error 2010-09-22 08:28:00 +02:00
Rudolf Polzer d14718daef force going all the way down when subsampling grates 2010-09-22 08:26:54 +02:00
Rudolf Polzer fd6d38c979 force the first stage of subsampling on luxels that are hit through an alphashadow surface 2010-09-22 08:22:26 +02:00
Rudolf Polzer 33dae6db13 try to help subsampling with grates 2010-09-22 07:28:51 +02:00
Rudolf Polzer 1ec2aec67e deluxemapping: ignore light contribution from the other side of a surface 2010-09-22 07:17:33 +02:00
Rudolf Polzer 4243255b4a new funny option: -samplessearchboxsize, tunes the size of the search box of -samples (default 1 = "correct" size, can be up to 4) 2010-09-22 06:38:02 +02:00
Rudolf Polzer 5522a08f6c fix the maths REALLY 2010-09-22 06:23:27 +02:00
Rudolf Polzer 07cf00e0a2 fix a small math error in -samples causing it to only ever consider 2/3 of the length of each luxel 2010-09-21 22:04:55 +02:00
Rudolf Polzer f0215523f0 do not break tjunctions :P 2010-09-01 08:30:09 +02:00
Rudolf Polzer 526654d3dd another debug print 2010-09-01 07:52:20 +02:00
Rudolf Polzer 1875137f28 improve area calculation by a shift width to simulate fragments 2010-09-01 07:51:01 +02:00
Rudolf Polzer 76e61abc01 favor blocky triangles over thin triangles a bit 2010-09-01 07:14:16 +02:00
Rudolf Polzer 08dc2f96dc bsp: new option -maxarea, selects more GPU friendly face surface splitting algorithm 2010-08-31 16:46:17 +02:00
Rudolf Polzer bb104da06f do not REPEATEDLY blow up _skybox surfaces 2010-08-08 20:56:47 +02:00
Rudolf Polzer 2ddfb486e9 we can move the <glib.h> include a bit more then 2010-08-08 16:42:40 +02:00
merlijn 4d04ade414 include glib.h instead of limits.h 2010-08-08 16:30:20 +02:00
merlijn 5dffa316df fix PATH_MAX error, thanks CU|CUdyin 2010-08-07 19:50:16 +02:00
Rudolf Polzer 9ca6835a26 vfspk3 in q3map2: also support -fs_forbiddenpath 2010-08-07 17:32:57 +02:00
Rudolf Polzer fa0fce3cfa CRLF 2010-07-30 16:02:39 +02:00
Rudolf Polzer 1bae0620f3 Merge remote branch 'icculus/master' 2010-07-25 17:13:35 +02:00
Rudolf Polzer e6ca10bec7 crlf fixes 2010-07-18 16:32:03 +02:00
Rudolf Polzer dab02ced76 fix a nasty bug breaking "deformvertexes move" 2010-07-16 12:51:56 +02:00
jal 8ff62be8fd Merge branch 'master' of ssh://icculus.org/netradiant 2010-07-11 12:16:26 +02:00
jal 6661c1a8e8 On grid lighting, redistribute the 25% of the floodlight as omnidirectional ambient light, and use only the 75% of it as top-down directional light. 2010-07-11 12:16:08 +02:00
Rudolf Polzer 2e0af6a7a0 qtrue too 2010-07-04 19:24:23 +02:00
Rudolf Polzer 3408e1c959 it is qfalse 2010-07-04 19:23:51 +02:00
Rudolf Polzer e778c332b0 fix arg parsing 2010-07-04 19:17:15 +02:00
Rudolf Polzer b9177e76bf q3map2 -scale: new arg -spawn_ref - sets reference point in spawnpoints 2010-07-04 19:11:23 +02:00
Rudolf Polzer 64144b4a07 Merge branch 'icculus' 2010-06-24 12:30:02 +02:00
Rudolf Polzer 0138fccfb8 allow 64 directories, no longer 8 2010-06-24 12:27:26 +02:00
jal 1e42a4f095 Fix vertexlighting and gridlighting being too dark when using floodlight and bounce (stop floodlighting being re-applied to lightmaps with each bounce stage) 2010-06-14 19:50:45 +02:00
jal ff8feb8f31 Apply floodlight to vertex lighting (there seems to remain some problem with
vertexlighting not receiving enough bounced light)
2010-06-12 13:36:06 +02:00
jal 778af4dde0 add shader key q3map_noDirty, which disables the dirty pass on the surface. It's handy for lightmapped terrain models where dirty produces odd darkness on mesh splits. 2010-05-29 12:22:02 +02:00
Rudolf Polzer d539f09864 Merge branch 'master' of ssh://icculus.org/netradiant into icculus 2010-05-10 18:30:58 +02:00
Rudolf Polzer e0e905ce5d actually activate -game xonotic in q3map2 :( 2010-05-02 18:38:41 +02:00
jal be4e243888 Increase the influence of directional lights on the deluxemap by a)Ignoring angle attenuation for directional contribution and b)Scaling down by 1/4 the contribution of radiosity (deeper explanation in a comment at LightContributionToSample). 2010-04-30 11:32:11 +02:00
Rudolf Polzer 7b2ae7cf2f mark some TODOs for overflows reported on the GtkRadiant mailing list 2010-04-27 17:43:42 +02:00
jal 36e9024e86 fix deluxemapping when using floodlight. Also, add to floodlight the same trick as it's done to ambient to have a minimum normal assigned. 2010-04-22 12:07:00 +02:00
jal d5283a9692 Allow transparent surfaces on misc_models to be made solid when clipmodel bitflag is enabled. 2010-04-21 19:11:50 +02:00
jal 7e29447498 Testing my commit ability 2010-04-19 09:59:10 +02:00
Rudolf Polzer 54ccfc9f18 fix lots of CRLFs 2010-04-17 21:02:26 +02:00
Rudolf Polzer e34729907c -game xonotic support in q3map2 2010-04-12 07:34:36 +02:00
Rudolf Polzer 99342abdf7 new option -extradist to improve lighting a bit, also a light entity field _extradist of the same purpose 2010-04-06 17:03:50 +02:00
Rudolf Polzer e40ea7c332 vfs: support .pk3dir like in darkplaces engine - directories auto-added to the search path 2010-03-19 14:55:47 +01:00
Rudolf Polzer 3868f5b6a8 fix VectorCopy uses in MergeMetaTriangles 2010-03-01 07:30:53 +01:00
Rudolf Polzer c34caf11ef more explicit vec3_t use, no change in behaviour 2010-02-20 21:47:30 +01:00
Rudolf Polzer fd055332dc improve patch collision generation a little, should now be "as good as possible" 2010-02-20 21:08:01 +01:00
Rudolf Polzer f92c4fa256 fix patch collision issue by linking patches into all nodes that touch a
bbox of a 3x3 segment of the patch, instead of subdividing the patch.
Otherwise, different subdivisions can cause patch visibility or
collision issues.
2010-02-19 22:50:19 +01:00
Rudolf Polzer 23a825c1f1 half lambert lighting by jal (option: -lightanglehl) 2010-02-14 20:12:11 +01:00
Rudolf Polzer b8839b8771 small fix by jal regarding normal vectors from lighting 2010-02-14 20:09:15 +01:00
divverent 7bf5f3438d fix a typo that shouldn't have an impact on most maps though
git-svn-id: svn://svn.icculus.org/netradiant/trunk@411 61c419a2-8eb2-4b30-bcec-8cead039b335
2010-01-04 15:18:05 +00:00
TTimo 8f437051fa misc
git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@328 8a3a26a2-13c4-0310-b231-cf6edde360e5
2009-12-31 18:24:36 +00:00
divverent 187727f4c3 qfusion: new defaults
git-svn-id: svn://svn.icculus.org/netradiant/trunk@407 61c419a2-8eb2-4b30-bcec-8cead039b335
2009-12-30 10:35:17 +00:00
divverent ec87692d94 don't bounce from trans surfaces
git-svn-id: svn://svn.icculus.org/netradiant/trunk@405 61c419a2-8eb2-4b30-bcec-8cead039b335
2009-12-30 10:27:35 +00:00
divverent 04a61593c3 ToggleGridSnap command (beware of it)
git-svn-id: svn://svn.icculus.org/netradiant/trunk@401 61c419a2-8eb2-4b30-bcec-8cead039b335
2009-10-04 19:15:55 +00:00
divverent da366187d6 as patchshadows is broken for grid... turn it off for grid
git-svn-id: svn://svn.icculus.org/netradiant/trunk@400 61c419a2-8eb2-4b30-bcec-8cead039b335
2009-10-04 15:33:45 +00:00
divverent 4631d505d9 make it not loop endlessly :P
git-svn-id: svn://svn.icculus.org/netradiant/trunk@399 61c419a2-8eb2-4b30-bcec-8cead039b335
2009-10-04 15:28:46 +00:00
divverent ee71ec8dcb lightgrid search fix; increase max vertices of poly
git-svn-id: svn://svn.icculus.org/netradiant/trunk@398 61c419a2-8eb2-4b30-bcec-8cead039b335
2009-10-04 15:17:11 +00:00
divverent 714c463815 allowing to customize how directional the light is
git-svn-id: svn://svn.icculus.org/netradiant/trunk@397 61c419a2-8eb2-4b30-bcec-8cead039b335
2009-10-04 13:32:41 +00:00
divverent cf98832704 allow more light contributions to the grid; remove a weird fudge
git-svn-id: svn://svn.icculus.org/netradiant/trunk@396 61c419a2-8eb2-4b30-bcec-8cead039b335
2009-10-04 13:23:54 +00:00
divverent dbe011759a supposedly, RTCW and W:ET use BSP format 47... so let's use that
git-svn-id: svn://svn.icculus.org/netradiant/trunk@394 61c419a2-8eb2-4b30-bcec-8cead039b335
2009-08-02 18:57:39 +00:00
divverent 5d6da89f89 disable the max bbox distance feature for now, it seems to cause bad things to happen
git-svn-id: svn://svn.icculus.org/netradiant/trunk@386 61c419a2-8eb2-4b30-bcec-8cead039b335
2009-07-14 06:09:58 +00:00
divverent 2b7668ee33 possibly speed up MergeMetaTriangles, will benchmark it later
git-svn-id: svn://svn.icculus.org/netradiant/trunk@385 61c419a2-8eb2-4b30-bcec-8cead039b335
2009-07-12 17:54:07 +00:00
divverent 12a8e70662 support "none" in the _celshader key
git-svn-id: svn://svn.icculus.org/netradiant/trunk@384 61c419a2-8eb2-4b30-bcec-8cead039b335
2009-07-12 17:39:51 +00:00
divverent d89df783c3 always allocate bspEntData
git-svn-id: svn://svn.icculus.org/netradiant/trunk@383 61c419a2-8eb2-4b30-bcec-8cead039b335
2009-06-18 08:38:25 +00:00
divverent b5bff46ac3 try to fix FindFloatPlane bug
unlimit entity count


git-svn-id: svn://svn.icculus.org/netradiant/trunk@382 61c419a2-8eb2-4b30-bcec-8cead039b335
2009-06-18 06:45:31 +00:00
divverent ba342c2f4a up MAX_BUILD_SIDES to match MAX_BRUSH_SIDES
git-svn-id: svn://svn.icculus.org/netradiant/trunk@381 61c419a2-8eb2-4b30-bcec-8cead039b335
2009-06-12 21:00:52 +00:00
divverent c2c3a2ed3d increase MAX_PORTALS, also show an error if exceeded
git-svn-id: svn://svn.icculus.org/netradiant/trunk@376 61c419a2-8eb2-4b30-bcec-8cead039b335
2009-05-24 18:08:22 +00:00
divverent 1ffb1aef2e same bug, different place :P
git-svn-id: svn://svn.icculus.org/netradiant/trunk@375 61c419a2-8eb2-4b30-bcec-8cead039b335
2009-05-23 18:30:13 +00:00
divverent 52098ce5f1 fix "invalid tracenode: 0" bug
git-svn-id: svn://svn.icculus.org/netradiant/trunk@374 61c419a2-8eb2-4b30-bcec-8cead039b335
2009-05-23 18:23:14 +00:00
divverent bd6c5c2da0 fix -rawlightmapsizelimit
git-svn-id: svn://svn.icculus.org/netradiant/trunk@373 61c419a2-8eb2-4b30-bcec-8cead039b335
2009-05-22 14:35:19 +00:00
divverent 25b38e8a0e new option -rawlightmapsizelimit to limit the size of RAW lightmaps (so you can use large lightmap size and still get small lightmap size-like limiting)
git-svn-id: svn://svn.icculus.org/netradiant/trunk@372 61c419a2-8eb2-4b30-bcec-8cead039b335
2009-05-22 14:14:09 +00:00
divverent 75641556de fux segv
git-svn-id: svn://svn.icculus.org/netradiant/trunk@371 61c419a2-8eb2-4b30-bcec-8cead039b335
2009-05-22 06:56:10 +00:00
divverent 581bc2c769 -lightmapsearchpower
-lightmapsearchblocksize
to optimize lightmap search for darkplaces and other lightmap-merging engines


git-svn-id: svn://svn.icculus.org/netradiant/trunk@370 61c419a2-8eb2-4b30-bcec-8cead039b335
2009-05-22 06:07:19 +00:00
divverent 45b03632d6 fix one bug in last commit
git-svn-id: svn://svn.icculus.org/netradiant/trunk@369 61c419a2-8eb2-4b30-bcec-8cead039b335
2009-05-20 18:54:39 +00:00
divverent b81233b07d fix segv in nolightmapsearch
git-svn-id: svn://svn.icculus.org/netradiant/trunk@368 61c419a2-8eb2-4b30-bcec-8cead039b335
2009-05-20 17:59:40 +00:00
divverent 8b11f84691 only reserve ONE lightmap at once, not TWO (but make this a #define to allow later customization)
git-svn-id: svn://svn.icculus.org/netradiant/trunk@367 61c419a2-8eb2-4b30-bcec-8cead039b335
2009-05-20 17:48:32 +00:00
divverent cde1f3c0d5 nolightmapsearch by LH
git-svn-id: svn://svn.icculus.org/netradiant/trunk@366 61c419a2-8eb2-4b30-bcec-8cead039b335
2009-05-20 14:48:26 +00:00
divverent c379aae1d4 merge content and compile flags of all surfaces of a brush (experimental; fixes issues with not working detail brushes; please check for regressions)
git-svn-id: svn://svn.icculus.org/netradiant/trunk@364 61c419a2-8eb2-4b30-bcec-8cead039b335
2009-05-12 08:42:51 +00:00
divverent 37f408f643 consistently handle the aliases to _clone
git-svn-id: svn://svn.icculus.org/netradiant/trunk@363 61c419a2-8eb2-4b30-bcec-8cead039b335
2009-05-07 11:12:53 +00:00
divverent e51048cf0e set stack size to 8 MB explicitly, should fix light compile crash on OS X
git-svn-id: svn://svn.icculus.org/netradiant/trunk@362 61c419a2-8eb2-4b30-bcec-8cead039b335
2009-05-06 08:04:10 +00:00
divverent 4218236572 disable threads if MAC_STATIC_HACK is set
git-svn-id: svn://svn.icculus.org/netradiant/trunk@361 61c419a2-8eb2-4b30-bcec-8cead039b335
2009-05-06 07:46:54 +00:00
divverent 015b27d7a1 a Q3 map origin to origin brush converter to fix maps that this q3map2 no longer compiles correctly
git-svn-id: svn://svn.icculus.org/netradiant/trunk@360 61c419a2-8eb2-4b30-bcec-8cead039b335
2009-05-05 09:59:40 +00:00
divverent c005536caf _lightmapsamplesize entity key by jal
git-svn-id: svn://svn.icculus.org/netradiant/trunk@359 61c419a2-8eb2-4b30-bcec-8cead039b335
2009-05-01 10:45:24 +00:00
divverent 64bbc7deef use warsow defaults for minimap in qfusion game
git-svn-id: svn://svn.icculus.org/netradiant/trunk@356 61c419a2-8eb2-4b30-bcec-8cead039b335
2009-04-29 15:54:29 +00:00
divverent 65fcedfc4c better shadeangle support by jal
git-svn-id: svn://svn.icculus.org/netradiant/trunk@355 61c419a2-8eb2-4b30-bcec-8cead039b335
2009-04-29 15:27:46 +00:00
divverent 3abfa74a05 qfusion now keeps aspect too
git-svn-id: svn://svn.icculus.org/netradiant/trunk@349 61c419a2-8eb2-4b30-bcec-8cead039b335
2009-04-27 17:33:27 +00:00
divverent 0280d96637 minimap: -boost = contrast boost (like in darkplaces)
git-svn-id: svn://svn.icculus.org/netradiant/trunk@348 61c419a2-8eb2-4b30-bcec-8cead039b335
2009-04-27 17:20:32 +00:00
divverent 0b6479c18b new modes for minimap: -black = black on transparent, -white = white on transparent, -gray = white on black
git-svn-id: svn://svn.icculus.org/netradiant/trunk@347 61c419a2-8eb2-4b30-bcec-8cead039b335
2009-04-27 16:57:55 +00:00
divverent 3963252e6d use "minimaps" directory for warsow
git-svn-id: svn://svn.icculus.org/netradiant/trunk@346 61c419a2-8eb2-4b30-bcec-8cead039b335
2009-04-27 16:36:51 +00:00
divverent 1497c06cef allow not keeping aspect
git-svn-id: svn://svn.icculus.org/netradiant/trunk@345 61c419a2-8eb2-4b30-bcec-8cead039b335
2009-04-27 15:03:55 +00:00
divverent 83ce35b16a make minimap parameters game dependent
git-svn-id: svn://svn.icculus.org/netradiant/trunk@344 61c419a2-8eb2-4b30-bcec-8cead039b335
2009-04-27 14:58:50 +00:00