ewasylishen
1afac37661
Fence texture support on brush models, e.g. for rmqdemo2 e1m6rq.bsp. Based on Baker's implementation in Fitz Mark V. Consistent with Fitz Mark V, RMQEngine, FTEQW rendering.
...
Not implemented for world polys (afaik it's useless for world polys) but could be added if needed.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@970 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-08-19 02:20:12 +00:00
ewasylishen
3cb4226ddc
Change Cvar_Cycle_f to use Q_atof to be consistent with other cvar code. Q_atof("0.3"), a float, does not == atof("0.3"), a double.
...
Fixes "cycle r_wateralpha 0.3 0.6 1" not working reported by AAS.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@969 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-08-18 17:12:39 +00:00
ewasylishen
6e48bea4d9
r_brush.c: small optimization in R_DrawSequentialPoly; move the drawing of fullbrights to a separate function, and draw them in a separate pass through the polys of the brush mode. This reduces the amount of texture binding. The extreme case would be, e.g. 1000 polys with one texture (with fullbrights), before would require 2000 binds, after would require 2 binds. This gets part way to the performance of https://sourceforge.net/p/quakespasm/patches/14/ with much less code change
...
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@968 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-08-17 21:12:54 +00:00
ewasylishen
4f6b138921
Raise MAX_ENT_LEAFS from 16 to 32, fixes disappearing/flickering bmodels in some situations. In particular fixes an elevator in fort_driant-fullvis.bsp, and a grate (func_door) in jam1_ionous.bsp.
...
From what I understand, if an entity touches more than MAX_ENT_LEAFS, it will only be visible
if the player happens to be standing in one of the first 'MAX_ENT_LEAFS' (so essentially random).
See discussion of MAX_ENT_LEAFS here:
http://celephais.net/board/view_thread.php?id=60310
For more detail (mh has an alternate fix, used in DirectQ/RMQEngine, haven't looked in to what he did):
http://forums.inside3d.com/viewtopic.php?t=2376&postdays=0&postorder=asc&start=23
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@967 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-08-13 06:40:07 +00:00
ewasylishen
fff78c696a
new fsaa support patch. commandline flag is -fsaa, cvar is vid_fsaa. cvar is only read in VID_Init, changing it prints a message that the new value will only be used upon restart
...
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@966 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-08-12 19:39:20 +00:00
ewasylishen
34bc355f9e
revert r962 and r963 (first attempt at multisampling)
...
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@965 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-08-12 19:25:14 +00:00
svdijk
e6c61b562b
Add a Bourne Shell PAK file writer (remove qpakman dependency).
...
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@964 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-08-11 19:59:52 +00:00
ewasylishen
faf85380af
cleanup fsaa patch, from szo. removes sdl version checks because qs requires sdl >= 1.2.10
...
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@963 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-08-11 08:08:15 +00:00
ewasylishen
53c7b3a1e8
fsaa support, borrowing from uhexen2. cvar is vid_multisample, cmdline arg is -fsaa (inconsistent..)
...
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@962 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-08-11 06:58:42 +00:00
sezero
0e53d9edfd
fix broken libFLAC builds from previous commit.
...
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@961 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-08-10 11:00:26 +00:00
sezero
4aed68b149
recompile libflac and libmodplug (again.)
...
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@960 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-08-10 07:47:33 +00:00
ewasylishen
c5690fbb78
bump MAX_EFRAGS to 4096 (from 2048) and MAX_CHANNELS to 1024 (from 512). For ijed's map - has over 500 ambient sounds, causing it to hit the channel limit, and a lot of static entities, which I guess cause it to exceed the old efrags limit. For future reference, according to mh, the efrags array can be removed entirely in glquake ( http://forums.inside3d.com/viewtopic.php?t=1930 ) and each efrag allocated in the hunk memory.
...
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@959 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-08-10 03:33:59 +00:00
ewasylishen
77b3403561
sv_aim: change default to 1 (autoaim off) and CVAR_NONE
...
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@958 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-08-07 18:47:37 +00:00
ewasylishen
55bb3124c4
Image_LoadImage: read pixel data in 1K chunks instead of calling getc in a loop
...
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@957 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-08-05 20:41:47 +00:00
ewasylishen
accee1263e
AllocBlock: cache index of last used lightmap, start search there
...
Can speed up map loading by multiple seconds on levels with a lot of lightmaps, at a cost of using slightly more lightmaps (about 5% more).
https://sourceforge.net/p/quakespasm/patches/20/
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@956 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-08-05 18:22:58 +00:00
sezero
7a02718fb9
cd_sdl: add back the informative message (was accidentally reverted in r953.)
...
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@955 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-08-05 18:20:29 +00:00
sezero
d868716c4e
... apply a CD device stops workaround only for linux for now.
...
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@954 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-08-05 17:45:22 +00:00
sezero
c89e61cc0d
revert the all-platforms form of CD device stops workaround from r948/r949 ...
...
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@953 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-08-05 17:43:45 +00:00
ewasylishen
0fe09138e0
sfx lowpass filter patch
...
cvar changes:
The "sndspeed" cvar / "-sndspeed" command-line option now control whether the low-pass filter is applied. If it's set to 11025 you get the low-pass filter, otherwise it's not used.
New "snd_mixspeed" cvar (and the "-mixspeed" command-line option); these default to 44100 and just control the sample rate we request from SDL. Not archived.
New “snd_filterquality” cvar, value can be 1-5. Not archived. The “5” setting closely matches the Windows resampler, and the “1” setting closely matches the OS X resampler. The default depends on the OS, “5” is used on windows builds, otherwise “1”, because I wanted the sfx to sound the same as they do with 0.85.9 on each platform. TODO is checking if a setting other than 1 sounds closer to the system resampler on linux (though it probably depends on the distro).
The lowpass filter is only used for sndspeed=11025 and snd_mixspeed=44100, though these are the defaults.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@952 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-08-05 05:40:34 +00:00
sezero
71c17d7e89
cd_sdl: prev and next commands must handle data tracks properly.
...
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@951 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-08-04 21:20:09 +00:00
stevenaaus
cebc9431a6
'cd next', 'cd prev' commands. 'cd play' plays track 1.
...
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@950 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-08-04 00:08:22 +00:00
sezero
797b3bd0f8
minor cd_sdl cleanup after r948
...
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@949 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-08-02 11:00:09 +00:00
stevenaaus
542d5fa7af
Work around some CD device stops. Oz - 'CDROMSTOP ioctl causes any ioctls following immediately to fail for a considerable time'.
...
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@948 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-08-02 07:51:24 +00:00
sezero
96b54ac281
remove dirent stuff from msvc project after r946.
...
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@947 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-08-01 11:25:11 +00:00
sezero
7607413752
- ExtraMaps_Init: instead strstr(), directly compare the file extension bsp.
...
- Modlist_Init: cleanup: instead strstr(), compare the file extension pak.
no need extra checking for "." and ".." in the inner while loop. break out
of the inner while loop as soon as a pak file or progs.dat is found.
- ExtraMaps_Init, Modlist_Init, windows: instead of using dirent emulation,
use windows' native FindFirstFile/FindNextFile/FindClose directly. adapted
from fitzquake-0.85.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@946 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-08-01 11:21:54 +00:00
sezero
55a53448bd
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@945 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-08-01 11:15:58 +00:00
sezero
87ea0aa428
update README files to reflect further 0.85.10 changes so far.
...
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@944 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-07-30 11:15:17 +00:00
sezero
0e61048c3a
remove unused var
...
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@943 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-07-30 09:45:07 +00:00
sezero
03d4fbd008
reset all models and set mod_numknown to 0 upon gamedir changes.
...
fixes issue described at:
http://celephais.net/board/view_thread.php?id=60452&start=825
also see http://forums.inside3d.com/viewtopic.php?f=12&t=5509
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@942 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-07-30 09:33:03 +00:00
sezero
d0c12c25e0
Host_Game_f: fix broken behavion if -gamedir is specified. (use com_basedir, not host_parms->basedir)
...
Modlist_Init: no need for -basedir check, just use com_basedir
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@941 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-07-30 09:02:25 +00:00
sezero
5e4d70f293
remove zombie USE_QS_CONBACK ifdefs
...
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@940 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-07-29 16:22:29 +00:00
sezero
c78e4879b9
fix seg...
...
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@939 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-07-28 07:10:34 +00:00
sezero
f825870bae
net_sys.h: update from uhexen2
...
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@938 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-07-20 14:37:16 +00:00
sezero
512a424aac
oslibs, codecs (macosx, windows): update mikmod.h from mainstream.
...
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@937 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-07-20 08:21:01 +00:00
sezero
0e8801bb78
oslibs, codecs (macosx, windows): recompile libmodplug with several
...
fixes included, and midi formats, gus patches, and wav formats loading
disabled.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@936 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-07-20 07:56:00 +00:00
sezero
cca7a948b9
request 24-bit depth buffer / z-buffer. patch from Eric Wasylishen.
...
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@935 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-07-15 07:03:56 +00:00
sezero
3f3ff65891
restore compilation with g++, some whitespace tidy-up.
...
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@934 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-07-12 07:50:57 +00:00
sezero
0cf1b4cadd
dynamic light speedup, patch from Eric Wasylishen, based on an earlier work by MH.
...
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@933 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-07-12 07:01:58 +00:00
sezero
a46a955178
arch_def.h: update from uhexen2.
...
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@932 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-07-11 07:06:15 +00:00
sezero
048d040ee0
support for GL_ARB_texture_non_power_of_two, patch from Eric Wasylishen.
...
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@931 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-07-11 06:56:09 +00:00
sezero
18c6fc37e1
more xcode..
...
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@930 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-07-04 11:20:46 +00:00
sezero
f99fc06f36
xcode project file update
...
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@929 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-07-02 11:20:44 +00:00
sezero
95de5ce44d
move MAX_OSPATH definition to q_stdinc.h. define it as PATH_MAX,
...
or as MAXPATHLEN, _MAX_PATH, or MAX_PATH if either of them is
available, or as 1024 if none are available. this would make us
safer in deep installation directory paths. darkplaces engine
seems to do the same.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@928 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-07-01 16:25:00 +00:00
sezero
42b0b1abb3
fix typo in xcode project file.
...
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@927 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-07-01 14:11:02 +00:00
stevenaaus
f9eb7662e2
When crosshair is present, for simple messages (SCR_DrawCenterString), text doesnt always end with a newline (eg E1 entry in startmap), so move message up one line. Doesnt affect large messages used via SCR_DrawNotifyString(eg Socks Shadow demo).
...
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@926 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-06-29 01:22:35 +00:00
sezero
80141c555a
oslibs (macosx, windows): recompile libFLAC with a bug fix patch applied
...
from mainstream git. (commits 6ccef14 and 2c15052.)
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@925 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-06-28 12:50:59 +00:00
sezero
4b08a6f5fc
oslibs: recompile ogg and vorbis codecs from latest and greatest
...
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@924 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-06-25 17:00:34 +00:00
sezero
b770a72872
add our old icon as QuakeSpasm-old.ico so that I can still compile with vs2005
...
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@923 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-06-22 05:56:37 +00:00
sezero
2839c6c65f
ditch fmin/fmax and use plain q_min/q_max
...
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@922 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-06-22 05:50:39 +00:00
sezero
40c893ee52
revert r907 (fmin()/fmax() is available with vs2012 and newer. patch from Eric Wasylishen.)
...
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@921 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-06-21 20:29:11 +00:00