Thilo Schulz
fef4d12d68
Refactoring patch by DevHC
2011-03-05 19:20:37 +00:00
Thilo Schulz
2c57226d9f
JPEG quality control patch, by Zack Middleton ( #4673 )
2011-02-10 21:18:31 +00:00
Zachary Slater
5e0d0efd2e
http://www.angryflower.com/aposter.html
...
(minor English issues, most of which are via /dev/humancontroller)
2011-02-09 05:51:33 +00:00
Thilo Schulz
0afedc928c
How could this stay undiscovered for so long? Unbelievable.
2011-02-06 20:06:03 +00:00
Thilo Schulz
e66abb3237
- Add support for linearly desaturating images via r_greyscale
...
- Use correct luminance values for rendering textures
Patch submitted by Forrest Voight.
2011-02-04 16:04:37 +00:00
Thilo Schulz
13836e5f4a
Thanks for the patch, gimhael. ( #4576 )
2011-02-04 15:21:15 +00:00
Thilo Schulz
2cddb3e0ea
https://bugzilla.icculus.org/show_bug.cgi?id=4460
2011-02-04 13:43:41 +00:00
Thilo Schulz
b0a753eb0f
Fix this bug in a better way.
2011-01-22 01:13:30 +00:00
Thilo Schulz
fdb66505bf
Fix potential segfault when no PK3s have been loaded (may happen when compiled with -DSTANDALONE)
2011-01-22 01:10:34 +00:00
Tim Angus
35c1e98934
* (bug #4842 ) Speedup shader buffer creation (Eugene C.)
2010-12-19 18:17:56 +00:00
Thilo Schulz
fa34239f58
another fix. Thanks Zakk Middleton
2010-08-30 23:25:44 +00:00
Thilo Schulz
a13aaa8b0b
fix typo
2010-08-30 23:21:34 +00:00
Thilo Schulz
83a3e2ae1b
First batch of bug fixes reported and patched by Zack "ZTurtleMan" Middleton:
...
#4736
#4730
#4731
#4732
#4733
#4735
#4736
#4737
#4738
#4739
2010-08-29 17:32:54 +00:00
Thilo Schulz
392b246ee9
Fix bug in uncompressed MDR model loading, thansk to Zack "ZTurtleMan" Middleton for reporting.
2010-08-29 16:49:42 +00:00
Tim Angus
d33e24b6d8
* Remove r_displayRefresh as it's not connected to anything, now
2009-12-18 20:02:39 +00:00
Tim Angus
8b0f1a6737
* Rephrase broken compiler warning
2009-11-18 20:26:44 +00:00
Thilo Schulz
bd2ab9bffd
- implement r_noborder, inspired by patch from ensiform ( #4289 )
...
- Add Sys_SetEnv for portable setting of environment variables
- Default ioquake3 to appear on the center of the screen if running in windowed mode.
2009-11-03 20:29:43 +00:00
Thilo Schulz
b3f36fc830
Allow weapon marks on triangle meshes (default: disabled), patch by Oliver McFadden. http://bugzilla.icculus.org/show_bug.cgi?id=3774
2009-10-16 20:26:18 +00:00
Ryan C. Gordon
ce544b23e6
Try to catch some NaNs that are almost certainly a compiler optimization bug.
...
Fixes Bugzilla #2998 .
2009-09-14 23:01:49 +00:00
Zachary Slater
95060e4fb6
See here:
...
http://bugzilla.icculus.org/show_bug.cgi?id=4064
2009-06-13 22:00:28 +00:00
Zachary Slater
49a2e1913e
< sg_Tequila> says that this is busted. Thilo will hopefully be pleased.
2009-06-10 19:47:45 +00:00
Thilo Schulz
5e108751f2
fix code cleanup
2009-06-10 10:41:11 +00:00
Thilo Schulz
a7417a4bde
minor code cleanup
2009-06-10 09:00:31 +00:00
Thilo Schulz
b9bcf3da94
How did this happen?
2009-06-10 08:25:01 +00:00
Thilo Schulz
eaaaa6f5fc
Replace a few sprintf with Com_sprintf
2009-06-01 00:18:02 +00:00
Thilo Schulz
4e8a181073
I'll retain the new way seeding the random number generator.. these calls are therefore redundant
2009-05-31 20:30:37 +00:00
Thilo Schulz
e4d0c14f70
Revert changes of rand() to random() as random() was redefined in quake3.
2009-05-31 20:24:10 +00:00
Thilo Schulz
b40f1507ea
- Introduce seeding of the random number generator at startup
...
- Replaced all engine-side occurances of rand() with random()
2009-05-31 19:48:28 +00:00
Ludwig Nussel
ad06af3d8f
make some functions static ( #4014 )
2009-05-02 18:01:02 +00:00
Tim Angus
18b27806bc
* Remove unexplainable ( tr.overbrightBits > 0 ) condition when correcting
...
gamma in screenshots
2009-03-12 19:20:20 +00:00
Tim Angus
72dea0a184
* Fix some new GCC 4.3 warnings
...
* Fix many many strict aliasing warnings, now that it's re-enabled
2008-11-10 23:55:22 +00:00
Tim Angus
953200cafc
* Update to jpeg-6b (only a decade old)
2008-08-21 23:29:09 +00:00
Tim Angus
f2baf359ae
* s/GL_CLAMP/GL_CLAMP_TO_EDGE/g (If this change appears to cause you problems
...
and you're using an nVidia graphics card, make sure your 'conformant texture
clamp' setting is set to on for ioq3)
2008-08-12 19:34:43 +00:00
Tim Angus
3855f65d17
* Fix confusion of cgame and renderer entity array bounds (Tr3B)
2008-07-16 18:07:36 +00:00
Tim Angus
8ea86a4670
* Allow floating point values for r_znear
2008-07-08 09:15:48 +00:00
Tim Angus
37d664d4b2
* Rename voip cvar to cl_voip
...
* s/#if USE_VOIP/#ifdef USE_VOIP/
* Add generalised runtime cvar range checking, currently on [sv|cl]_voip,
dedicated and a bunch of r_ variables
2008-07-07 22:31:39 +00:00
Tim Angus
2c0861c1ce
* (bug 3610) Server sending unnecessary newline with SV_ConSay_F (Tyler Schwend
...
<TylerSchwend@gmail.com>)
* (bug 3623) COMMAND is mapped to the ALT key (Matthias <Kapffer@macbay.de>)
* (bug 3665) Typo error in FS_FOpenFileByMode function (TsT <tst2006@gmail.com>)
* (bug 3669) Some files left out of Solaris Packages (Vincent Cojot
<vincent@cojot.name>)
* (bug 3680) server quit messages (Ben Millwood)
* (bug 3682) Maps with >1024 models cause a segfault (misantropia
<bnoordhuis@gmail.com>)
* (bug 3683) R_FindShader(): negative lightmap indexes cause stray pointers
(misantropia <bnoordhuis@gmail.com>)
* (bug 3688) q3asm potential segfault fix and other changes (TsT
<tst2006@gmail.com>)
* (bug 3695) Not allowing to write file with lib extention (.dll/.so/...) (TsT
<tst2006@gmail.com>)
* (bug 3696) make-macosx-ub.sh outdated by revision 1340; test for Tiger not
working (Matthias <Kapffer@macbay.de>)
* (bug 3698) #error reported as warning in q3cpp (and no #warning support)
(Ben Millwood)
* (bug 3703) restoring the valued pre-SDL window behaviour (/dev/humancontroller
<devhc97@gmail.com>)
2008-07-05 23:50:38 +00:00
Ryan C. Gordon
c923872ca2
Added GL_EXT_texture_compression_s3tc support.
...
GL_S3_s3tc, which Quake 3 previously supported, is legacy. This new codepath
is the common, vendor-neutral extension to get the same results.
2008-06-13 02:28:51 +00:00
Thilo Schulz
fa0ff6aaac
shut up warning
2008-05-01 16:10:01 +00:00
Thilo Schulz
10ed996784
- replace a few constant values with GL macros in tr_cmds.c
...
- tidy up top of tr_types.h a bit, change flags to hex representation
- make ROM cvar enforcing really work
- remove cg_stereoSeparation from cgame as it is obsolete.
- Add CG_DrawCrosshair3D so people see crosshair correctly when stereoseparation is enabled
2008-05-01 14:56:57 +00:00
Thilo Schulz
1156a63d52
- change default value for stereo seperation
...
- make clearing buffer use black for clearing when changing anaglyphmode
- Make sure that dlights are greyscale, too.
2008-04-27 21:09:03 +00:00
Thilo Schulz
ae08d1a6d8
This may enable stereo rendering for other devices like shutter glasses, but I don't know whether this works yet.
2008-04-27 19:07:57 +00:00
Thilo Schulz
782b890caa
Another two minor clean-ups to last commit.
2008-04-27 17:43:35 +00:00
Thilo Schulz
425c351d1b
- Implement stereo rendering with anaglyph images.
...
- Add r_greyscale for black&white rendering
2008-04-27 17:32:14 +00:00
Thilo Schulz
32bd0ab5bd
Add length checking to prevent malicious mdr files to overflow buffers.
2008-04-08 18:56:03 +00:00
Thilo Schulz
cafbb38d85
Handle detail textures correctly when r_detailedTextures is set to 0.
2008-04-06 16:29:22 +00:00
Thilo Schulz
0811b1c99c
Actually take into account how SkipBracedSection works. It requires a section to start with a single separate '{'. So we need to require this here, too.
2008-04-06 02:24:07 +00:00
Thilo Schulz
5c1167557a
Make sure that one broken shader file cannot crash the game / make the other shaders unusable.
2008-04-06 02:13:43 +00:00
Thilo Schulz
ccffb85185
This hack probably is not needed anymore.
2008-03-27 02:42:17 +00:00
Ludwig Nussel
c0f7c8d9cd
png fixes by Joerg Dietrich
2008-02-15 08:37:44 +00:00
Ludwig Nussel
d91c5c9282
make the pcx decode actually work
2008-02-14 13:30:32 +00:00
Tim Angus
a5b51a95d7
* Consolidate tr_image_*.h headers into tr_local.h to more closely follow the
...
Q3 coding style
* Prefix image loaders with R_ now they're non-static
2008-02-14 13:16:13 +00:00
Ludwig Nussel
84f32478b9
remove code duplicated from libjpeg and make internal functions static
2008-02-14 11:13:51 +00:00
Ludwig Nussel
7132b492dd
don't read more memory than available in jpg decode
2008-02-14 11:13:42 +00:00
Ludwig Nussel
c77f537ae3
make pcx decoder more robust against corrupt files
2008-02-14 11:13:30 +00:00
Ludwig Nussel
85ba66e7e8
move all image decoders into separate files
2008-02-14 11:13:18 +00:00
Ludwig Nussel
a3d62033d8
make tga decoder more robust against corrupt files
2008-02-14 11:12:59 +00:00
Ludwig Nussel
02d842532e
make bmp decoder more robust against corrupt files
2008-02-14 11:12:42 +00:00
Ludwig Nussel
f65dbd4351
integer overflow safeguards
2008-02-12 10:03:43 +00:00
Ludwig Nussel
4eec54c338
move png support to separate file
2008-02-12 10:03:21 +00:00
Tim Angus
b9ab949ec7
* Replace "powered by ioq3" text with ui_ioq3 CVAR_ROM
...
* Guess display aspect based on the desktop resolution
* Sort detected resolutions by...
+ closeness to display aspect
+ ascending width
+ ascending height
* Apply Q3 coding style to resolution detection code
2007-12-11 00:19:23 +00:00
Tim Angus
e8d3c48535
* Whitespace consistency in tr_init.c
2007-11-07 20:16:37 +00:00
Tim Angus
31c24bd0d2
* (bug 3393) Blank user names still possible (Michael Jard <kfaust@gmail.com>)
...
* (bug 3363) Download percentage overflow (Martin Doucha <next_ghost@quick.cz>)
* (bug 3390) MSVC project (Julian Priestley <juzley@gmail.com>)
* For OS X and MinGW ports, don't -I code/SDL when USE_LOCAL_HEADERS is 0
2007-11-02 23:36:23 +00:00
Tim Angus
1d54a9ebe5
* Revert 1176 -- MinGW's headers are too old *sigh*
...
* Revert to using literal function pointers for GL extensions rather than PFN*
typedefs as some platforms' headers are broken enough that they prevent
SDL_opengl.h from fixing things up if the PFN* typedefs are missing
2007-09-12 18:02:38 +00:00
Tim Angus
4f4f0c0dab
* Remove use of GL_ARB_multitexture since this has been part of the
...
core API for many years now
2007-09-10 22:28:58 +00:00
Tim Angus
904cce6311
* Replace the ugliness in qgl.h with SDL_opengl.h
2007-09-05 18:56:39 +00:00
Tim Angus
672cfbf16f
* Merge unified-sdl to trunk
...
* Bump Q3_VERSION to 1.35
2007-09-05 18:17:46 +00:00
Tim Angus
034e6e8f20
* Rewrite of R_LoadImage to make it more generic and data driven
2007-08-26 21:27:46 +00:00
Tim Angus
4997c4764a
* (bug 3112) Removal of QVM name obfuscation (TsT <tst2006@gmail.com>)
...
* Add developer warning when texture loading falls back on jpg from tga
* Remove uppercase extension hack from texture loading since the Q3 pk3
file system is case insensitive anyway and you would likely want to
know about the failures when loading images from the native FS
2007-08-24 00:04:08 +00:00
Tim Angus
1144f567e8
* PNG support from Joerg Dietrich <dietrich_joerg@t-online.de>
...
* Cleanup of tabulation in R_LoadImage
2007-08-23 17:23:15 +00:00
Tim Angus
5e35d88b9b
* (bug 3076) Map cycle breaks on empty or bot only servers (misanthropia)
...
* (bug 3303) Removal of never compiled code from cgame drawing functions (beast
<info@dbwatersports.com>)
* (bug 3297) Add missing limit to Q3 UI server info (beast
<info@dbwatersports.com>)
* (bug 3029) Fix to shader hash table being overpopulated (identified by
Stefan "#@" Langer <raute_at@gmx.de>)
2007-08-23 00:22:20 +00:00
Ludwig Nussel
3992f1a59c
fix gcc 4.2 warnings about cast from pointer to integer ( #3317 )
2007-08-19 12:05:17 +00:00
Ludwig Nussel
686d365397
print the shader loading message if the cvar "developer" is set
2007-08-16 15:16:32 +00:00
Ludwig Nussel
9016006312
don't spam console with "loading..." messages when loading shaders
2007-08-16 14:52:29 +00:00
Tony J. White =
c1ed094e53
* (bug 2972) add r_swapInterval support to SDL client (if libSDL >= 1.2.10)
2007-05-22 03:42:32 +00:00
Thilo Schulz
15fe54a6e7
Fix annoying bug where transparent surfaces wouldn't draw over skyboxes. Thanks to Stefan Langer a.k.a. #@ for providing the fix.
2006-12-15 13:46:13 +00:00
Tim Angus
bd9e7c4b8f
* Add r_customPixelAspect to support displays with non 1:1 pixel aspects (do
...
such things exist?)
* Remove r_customaspect as its value is implied through the other three
r_custom cvars
2006-12-04 13:37:50 +00:00
Thilo Schulz
5568c9fcad
Fix endian issue in MDR loading.
2006-09-22 12:53:03 +00:00
Tim Angus
e41d081710
* qvm files no longer installed by "make copyfiles"
...
* Loopback clients only get snapshots at the server frame rate now
(Anonymous <nkylqinhvgcbyl@mailinator.com>)
* JPEG chroma subsampling disabled if the quality value is >= 85
(Anonymous <nkylqinhvgcbyl@mailinator.com>)
* cl_lanForcePackets. When set to 0 (default is 1) the cl_maxpackets setting
will be ignored if on a LAN. (Anonymous <nkylqinhvgcbyl@mailinator.com>)
2006-08-13 17:09:05 +00:00
Thilo Schulz
5efd7c8c36
Another patch to make uncompressed AVI write in RGB24 format by anonymous virtualdub sympathiser.
2006-07-31 15:32:59 +00:00
Thilo Schulz
3a1c4aa457
Fix from the VirtualDub people which should make avi files created with the video command playable with numerous windows players.
2006-07-31 13:05:15 +00:00
Tim Angus
fda7db7619
* Fix the MinGW build. Ugh.
2006-05-06 16:01:41 +00:00
Thilo Schulz
d21411452e
Add string length checking to function COM_StripExtension. This fixes the R_RemapShader buffer overflow exploit that can be found here:
...
http://milw0rm.com/exploits/1750
2006-05-06 01:56:24 +00:00
Ludwig Nussel
8895df0925
- remove leftover anistropic filtering variables from glconfig_t
...
- check size of glconfig_t to prevent accidential ABI breakage in the future
2006-04-30 15:00:39 +00:00
Thilo Schulz
12a2b7694a
- Fixed incompatibility to original VMs introduced by anisotropic filtering patch.
...
- Removed dependency of flares from tr.identityLight because they are barely visible with r_overbrightbits set to 1
2006-04-30 14:32:56 +00:00
Thilo Schulz
55453fd919
Fix for skybox blacklines bug on non-SDL compilations.
2006-04-27 14:48:35 +00:00
Tim Angus
68b9eb3fba
* Anisotropic texture filtering (from Echon)
2006-04-22 22:14:15 +00:00
Thilo Schulz
40d5eee8ef
Fix prohibits illegal downloading of id PK3 files from servers. That bug is hit by *every* official server release from ID.
2006-04-22 18:24:50 +00:00
Thilo Schulz
57cc0f901e
Still some little improvements to flares.
2006-04-20 16:52:39 +00:00
Thilo Schulz
c552a46e5f
Fix for flares. Can be enabled by setting r_flares 1
2006-04-20 04:43:43 +00:00
Tim Angus
21e0bdd993
* Fix to (static!) buffer overflow in renderer (from Thilo Schulz)
2006-04-14 20:15:58 +00:00
Tim Angus
a235245e35
* Fixes to MDR implementation from Thilo Schulz
2006-04-14 20:13:49 +00:00
Tim Angus
a596185844
* Fixed radix sort on big endian platforms (from tjw, blame Timbo for the bug)
2006-04-14 19:54:56 +00:00
Tim Angus
947ebb932e
* SDL build no longer requires a vid_restart when changing r_fullscreen
2006-01-25 17:57:53 +00:00
Tim Angus
a21eb2bbcb
* AVI video output
...
- Uses motion jpeg codec by default
- Use cl_avidemo to set a framerate
- \video [filename] to start capture
- \stopvideo to stop capture
- Audio capture is a bit ropey
2006-01-04 03:12:12 +00:00
Tim Angus
310190a466
* Support for MinGW cross compilation
2005-12-29 00:04:41 +00:00
Tim Angus
aa3f7e1eb1
* Fix to what is apparently a typo in the original Q3 code
...
* If patch stitching breaks in mysterious ways, this change might be why
2005-12-28 23:05:22 +00:00
Maik
252ede0472
msvc project files updated and moved to win32/msvc
...
temporary build dirs moved to win32/msvc/build
2005-12-12 17:38:03 +00:00
Tim Angus
9415f5fe09
* Oopsie.
2005-12-06 18:17:10 +00:00
Tim Angus
1704eecc52
* Replaced ALIGN macro with PAD
...
* Moved ALIGN16 macro from tr_local.h to ALIGN in q_shared.h
2005-12-05 17:32:54 +00:00