Commit Graph

387 Commits

Author SHA1 Message Date
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 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 11186bfec5 misc_model: also support _skin name; also support frame field name 2011-06-05 20:37:37 +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 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 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