Commit Graph

278 Commits

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