asarium
badbe4a239
Remove unused timerbar files
2015-05-29 16:31:41 +02:00
SamuelCho
520b89408e
Fixed warnings related to graphics code additions.
2015-05-08 21:21:20 -07:00
Swifty
c620372357
Soft shadows, deferred lighting, and various major graphics optimizations.
2015-05-02 14:35:37 -07:00
Swifty
33776fc4be
gr_opengl_string retooled to use glDrawArrays. Should be a bit faster now.
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@11165 387891d4-d844-0410-90c0-e4c51a9137d3
2014-10-29 18:47:04 +10:00
Goober5000
11855ed3d8
xt branch: having a float version of gr_opengl_string makes text scrolling nice and smooth at high nonstandard resolutions (also, looks like quad rendering works just fine here; no need to convert to tris)
...
convert credits.cpp to use float version of gr_opengl_string; eventually Taylor wanted to make the float version standard
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@11127 387891d4-d844-0410-90c0-e4c51a9137d3
2014-10-13 12:24:23 +10:00
zookeeper
4e0beccfc9
Reverted r10944 and r10945 for now, with the exception of the GL_TRIANGLE_STRIP->GL_QUADS fix.
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@11105 387891d4-d844-0410-90c0-e4c51a9137d3
2014-10-07 12:21:56 +10:00
zookeeper
6b404f1daa
Fixed RTT bugs: 1) inverted geometry, 2) the output being mirrored both ways and a quarter of the output missing if post-processing is off.
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@10944 387891d4-d844-0410-90c0-e4c51a9137d3
2014-07-27 13:03:04 +10:00
niffiwan
2838afdd60
Fix several gcc warnings in code/graphics/gropengldraw.cpp
...
variable ‘clipped’ set but not used [-Wunused-but-set-variable]
variable ‘swapped’ set but not used [-Wunused-but-set-variable]
the address of ‘Distortion_texture’ will always evaluate as ‘true’
[-Waddress]
declaration of ‘vertex’ shadows a global declaration [-Wshadow]
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@10943 387891d4-d844-0410-90c0-e4c51a9137d3
2014-07-27 13:03:04 +10:00
Echelon9
1205336fee
Fix Coverity 1194949: Copy-paste error in gr_opengl_bitmap_ex()
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@10575 387891d4-d844-0410-90c0-e4c51a9137d3
2014-04-22 19:22:25 +10:00
The_E
6e91857745
From Yarn: Fixes interface graphics scaling issues. If, for some reason, you want to have the interface graphics stretched, use the -stretch_menu commandline flag.
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@10544 387891d4-d844-0410-90c0-e4c51a9137d3
2014-03-30 12:39:54 +10:00
zookeeper
e93e27fc0d
Improved the calculation for how many segments to use for drawing circles and arcs.
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@10255 387891d4-d844-0410-90c0-e4c51a9137d3
2014-01-14 20:24:44 +10:00
zookeeper
d13236e0e4
Ported r9704 from zookeeper branch: Added scripting function for drawing filled and unfilled arcs and made drawCircle able to draw unfilled circles.
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@10211 387891d4-d844-0410-90c0-e4c51a9137d3
2013-12-11 18:52:14 +10:00
chief1983
4e54350dcc
Fix #2959 . Framebuffer explosions need framebuffer objects, or it seems we assert later in the code.
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@10145 387891d4-d844-0410-90c0-e4c51a9137d3
2013-11-25 19:29:37 +10:00
The_E
c6397750e0
Fix for Mantis 2861: Make sure we switch off shader-based effect rendering if the GPU can't handle it
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@9718 387891d4-d844-0410-90c0-e4c51a9137d3
2013-07-26 08:14:30 +10:00
zookeeper
95a11f71f8
Fixed gr_opengl_circle drawing the middle horizontal line twice, which is a problem when drawing with alpha.
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk@9581 387891d4-d844-0410-90c0-e4c51a9137d3
2013-03-18 20:26:07 +10:00
Valathil
3fbbaf05fa
Fix for Mantis 2738: Reset buffer state before drawing spheres and lines. Additionally fix the new htl outline rendering in fred by setting the outline color.
2012-12-19 00:11:28 +00:00
Valathil
ec32829615
Fix for Mantis 184: Use Vertex shader to replicate nohtl rendering of thruster cones. Also make shader state handling a bit less hackish.
2012-12-09 21:51:20 +00:00
Valathil
c5005adf53
Correct some issues with Help screens that popped up because of glCleanup and undocumented Nvidia driver behaviour.
2012-11-20 18:53:26 +00:00
Zacam
755d7326b3
From Valathil, glCleanup to reduce the amount of calls.
...
First post here: http://www.hard-light.net/forums/index.php?topic=82886.0
Mantis Here: http://scp.indiegames.us/mantis/view.php?id=2728
2012-11-18 10:05:44 +00:00
Goober5000
45c8ad336c
change alloca to standard vm_malloc/vm_free
2012-10-01 06:16:15 +00:00
Valathil
ac5c8dc798
Only use offsets for thruster distortions. Fixes weird framebuffer explosions.
2012-09-11 12:50:43 +00:00
Swifty
638ff917a1
go_even_faster: Added framework to improve rendering performance by reducing OpenGL state changes between vertex data binds.
2012-08-11 20:20:24 +00:00
chief1983
b2f566a5d8
Fix compile errors about an ambiguous call when using the Xcode project and Xcode 3.
2012-08-06 18:12:02 +00:00
Echelon9
0efe864dd1
PVS-Studio fix: V619 The array 'v' is being utilized as a pointer to single object. gropengldraw.cpp
2012-07-16 11:16:28 +00:00
The_E
227f6cc8ef
*sigh* And because MSVC6 is a bit on the stupid side (read: Does not know about this little thing called C++0x), I have to do this bit of ugliness.
2012-07-07 08:41:12 +00:00
The_E
585db085ea
Removing the rest of the glBegin()/glEnd() pairs.
2012-07-07 06:45:35 +00:00
Echelon9
cda28dba2f
Fix for Mantis 2677: Compiler errors following r8973, thanks to niffiwan
2012-07-03 13:13:23 +00:00
The_E
cc2b907673
Changes the glBegin()/glEnd() stuff we were using in some places to the more modern glDrawArrays() way of doing things. Thanks to Kromaatikse for the initial implementation.
2012-07-02 15:48:56 +00:00
Goober5000
34bfc4a12e
const-correctness in preparation for modular credits.tbl, courtesy of m!m
2012-04-12 03:48:24 +00:00
The_E
ae084d47e0
Do shader compilation during modelload, in order to avoid having to compile shaders during gameplay as much as possible
2012-04-09 12:43:20 +00:00
Swifty
d8118c3f8b
Minor optimization when rendering tris that do not use distortion effects and therefore do not require calling glDrawBuffers.
2012-02-06 10:19:56 +00:00
Valathil
5fcc1c513e
Add a random offset to the thruster distortion to make thruster clusters look better.
2012-02-03 15:27:24 +00:00
Zacam
cf017ba490
From Swifty: Alternative fix to the font distortion problem by glyph realignment at the font creation phase rather than by manipulating the draw stage.
...
http://www.hard-light.net/forums/index.php?topic=79807.0
2012-02-01 20:07:36 +00:00
Valathil
f7ccb35817
Fixed font rendering at high resolutions
2011-12-29 18:16:04 +00:00
The_E
ebf89c9ef2
We do need to bind the correct depth buffer for rendering, else things get all confused.
2011-12-26 16:20:38 +00:00
The_E
34e536cd90
We only need to set up Scene_Depth_texture once, there must have been a merge gone wrong somewhere
2011-12-23 17:17:55 +00:00
The_E
41d68f3aca
From m|m: Fix for Mantis 2400 (RTT rendering broken in current builds). Also changes GL_rendering_to_framebuffer to the more aptly named GL_rendering_to_texture.
2011-12-23 13:09:39 +00:00
The_E
09b8d1e3d1
Adds an intermediate render target for FXAA to work against, this removes a previous reliance on undocumented behaviour in OpenGL.
2011-12-22 15:12:18 +00:00
Valathil
a0d1c8445a
Added Lightshafts as a replacement for sun glare. Look at http://www.hard-light.net/forums/index.php?topic=78923.80 for post_processing.tbl format
2011-12-08 20:57:11 +00:00
Zacam
183c57dc03
Wrong EOL type on these two.
2011-10-12 17:44:40 +00:00
IssMneur
0717ad3d13
PVS-Studio fix: V512 A call of the 'memcpy' function will lead to overflow of the buffer '& x'. (pstypes.h:131)
2011-09-08 05:39:53 +00:00
Zacam
0dac515506
MSVC Analysis: Local declaration of <variable> hides previous declaration at <line> of <file>: 'Scene_texture_width'/'Scene_texture_height' in gropengldraw lines 56 & 57.
2011-09-07 09:57:37 +00:00
Valathil
107f02d8d6
Fix tcache_set() OpenGL Errors by not using vertex attributes when drawing distortion Thrusters
2011-09-03 16:17:19 +00:00
Echelon9
a47f5b4069
PVS-Studio fix: V525 The code containing the collection of similar blocks. Check items 'Scene_color_texture', 'Scene_color_texture', 'Scene_depth_texture' in lines 2073, 2076, 2079. code gropengldraw.cpp
2011-08-24 14:56:48 +00:00
Valathil
da6727d9d1
Let's try this again. Adding Framebuffer distortion thrusters and explosions.
2011-08-22 17:57:01 +00:00
Zacam
583f5c976f
Revert 7498: You should also test without optional command lines present, yellow disco screens of death in-mission are bad.
2011-08-21 04:04:45 +00:00
Valathil
89da5f6fdc
Added thruster heat distortions and explosion framebuffer effects
2011-08-20 23:31:07 +00:00
Swifty
fe605149c4
Soft sphere sprite rendering for particles, explosions, shockwaves, and thrusters.
2011-08-20 22:14:52 +00:00
Zacam
75043ff5b1
go_faster from Antipodes 6. Everybody, say "Thank you, taylor!"
2010-10-18 18:32:37 +00:00
portej05
719825f80d
The big CVS comment removal. This chops approx. 3.5mb off a full checkout.
...
I've tested this through compiling and through hand checking.
Normalises line endings in ALL files to \n.
2009-06-20 08:08:20 +00:00