Commit Graph

827 Commits

Author SHA1 Message Date
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