Commit Graph
500 Commits
Author SHA1 Message Date
taylor 56b572b4fa minor cleanups and speedups
when using lighting falloff, be sure to drop emissive light when falloff gets low enough (otherwise we still se everything fine)
2006-12-07 18:16:11 +00:00
taylor dbc1fb0417 get rid of "vram_full", it can never actually be full the way the code works, so having this is redundant
comment out APPLE_client_storage extension usage, I think this was messing some stuff up on OS X and causing memory errors
fix handling of cubemap data so that they can be read properly (can't believe it took so long to notice to an obvious and stupid bug)
be sure to un-bind textures during preload to avoid freaky little errors later
ifdef an error message from the framebuffer error code, Apple doesn't have this one define in their headers for some reason
2006-12-07 18:14:49 +00:00
taylor c1bf628137 restore default ambient light values to retail-like settings (I based the previous values on default D3D, which was rather dumb of me)
restore lighting falloff capability from retail and non-HTL modes (only used for asteroids as far as I know)
various cleanups and speedups for dealing with lights
2006-12-07 18:10:16 +00:00
taylor 33780d9f26 get rid of GL_activate and GL_deactivate, it was just Glide ported stuff that we never used and never needed
handle window/fullscreen/minimize changes better, fixes cursor handling mostly (Mantis bug #1146)
don't flush on gamma change, we don't really need to any more
2006-12-07 18:07:51 +00:00
taylor 03834fd5a0 properly support the updated window create code (all told: should take of of Mantis bugs #542, #624, #1140, and possibly #962 and #1124) 2006-11-15 00:47:57 +00:00
taylor 0850d30687 various bits of little cleanup
get rid of some more compiler warnings
2006-11-15 00:36:08 +00:00
taylor 723e5d97f4 enable/disable alpha test based on blend mode (found this hidden in an old tree, may help with blending the newer alphablend mode) 2006-11-06 05:21:32 +00:00
taylor 26ce630805 more cleanup of warp_global crap
scale render/detail box limits with detail level setting
make sure that we reset culling and zbuffer after each model buffer that gets rendered
2006-10-27 21:37:11 +00:00
taylor e53cf0b18d grrr ... fix dos EOL chars 2006-10-27 06:44:35 +00:00
taylor 7978379a54 rename set_warp_globals() to model_set_warp_globals()
remove two old/unused MR flags (MR_ALWAYS_REDRAW, used for caching that doesn't work; MR_SHOW_DAMAGE, didn't do anything)
add MR_FULL_DETAIL to render an object regardless of render/detail box setting
change "model_current_LOD" to a global "Interp_detail_level" and the static "Interp_detail_level" to "Interp_detail_level_locked", a bit more descriptive
minor bits of cleanup
change a couple of vm_vec_scale_add2() calls to just vm_vec_add2() calls in ship.cpp, since that was the final result anyway
2006-10-27 06:42:30 +00:00
taylor 4e3b4a4d72 don't require hardware GL if running FRED (this is mainly for my benefit since I always forget to add that locally) 2006-10-24 13:39:26 +00:00
taylor ea85618c60 fix the envmap-getting-rotated-by-turrets bug (though it did make me chuckle a bit when I first saw it ;))
try to reuse old view setup info, if we are using the same settings again (for speed up purposes, will be a bigger deal when bumpmapping gets here)
2006-10-24 13:38:23 +00:00
taylor f4ec613af4 various bits of cleanup (slight reformatting to help readability, remove old/dead code bits, etc.)
deal with a index_buffer memory leak that Valgrind has always complained about
make HTL model buffers dynamic (get rid of MAX_BUFFERS_PER_SUBMODEL)
get rid of MAX_BUFFERS
make D3D vertex buffers dynamic, like OGL has already done
2006-10-24 13:24:12 +00:00
Goober5000 9d16fe703a bypass annoying warnings for nonexistent bitmaps 2006-10-07 02:43:46 +00:00
taylor 6861c29171 clean up some old software rendering stuff that we don't use any longer
remove grzbuffer.*, since all it did was give us 3 variables, which were moved to 2d.*
2006-10-06 09:56:42 +00:00
taylor ca9e6d1cb8 bit of cleanup (technically the vertex buffer stuff is part of a much larger change slated for post-3.6.9, but this should be a little faster) 2006-10-01 19:24:46 +00:00
taylor 75409481d0 more standalone server fixes:
- add some basic bmpman functionality to grstub, since it needs to do something at least
 - add missing gr_* function ptrs to grstrub
 - (re-)enable radar and hud setup functions that used to crash (problems are fixed now)
 - deal with default pilot file properly (also caused a bmpman headache)
 - don't bother with Multi_common_icons[] in standalone mode (they don't load, so don't let them unload either)
2006-09-24 22:55:17 +00:00
taylor 396fdf6e36 clean up the function ptrs so that it's a bit easier to read 2006-09-24 22:54:24 +00:00
taylor 7846d6f8c8 minor clean and code optimizations
clean up view/proj matrix fubar that made us need far more matrix levels that actually needed (partial fix for Mantis #563)
add debug safety check to make sure that we don't use more than 2 proj matrices (all that GL is required to support)
set up a texture matrix for the env map to that it doesn't move/look funky
2006-09-24 13:26:01 +00:00
taylor 42d9e22380 some gamma ramp fixage, still hasn't gotten a steller review from DaBrain but it does work much better than before, so I'll tweak it later if need be 2006-09-20 04:58:13 +00:00
taylor 806027e4e8 various small compiler warning and strict compiling fixes 2006-09-11 01:00:28 +00:00
taylor f09c7e2d03 fix things that strict compiling balked at (from compiling with -ansi and -pedantic) 2006-09-08 06:14:44 +00:00
taylor 698686748d allow W32 init fallback if desktop depth is less than requested game depth (it may look like crap, but at least it will work) 2006-08-29 07:27:43 +00:00
taylor eae7ec5842 forgot an extension check (was this the background corruption bug???) 2006-08-27 18:03:29 +00:00
taylor 89e5ecea02 crap. 2006-08-23 16:15:46 +00:00
taylor 534995aa38 clean up the grstub mess (for work on standalone server, and just for sanity sake)
move color and shader functions to 2d.cpp since they are exactly the same everywhere
don't bother with the function pointer for gr_set_font(), it's the same everywhere anyway
2006-08-22 05:41:36 +00:00
taylor f47fde1eda OMG! MEMLEAK!!!! (maybe no one will notice that it was my fault ;)) 2006-08-19 04:23:56 +00:00
taylor 36190d92e7 some minor cleanup to anisotropy setting
only use negative lod bias when not using anisotropy to help avoid shimmering
stick lod bias setting in with anisotropy function
2006-08-12 13:14:45 +00:00
taylor ef010994f2 fix for setting of texture lod bias 2006-08-09 14:42:24 +00:00
taylor 8887b83f53 very small math optimization 2006-08-09 14:41:44 +00:00
taylor 5612c6c462 don't render extra lighting passes when fog is enabled, prevents fog fragment from getting added for each pass
wobble wobble no more!!
2006-07-28 02:45:10 +00:00
taylor 9f4c28bd1d minor cleanup/optimization to beam warmup glow rendering function
various lighting code cleanups
 - try to always make sure beam origin lights occur outside of model
 - make Static_lights[] dynamic
 - be sure to reset to first 8 lights when moving on to render spec related texture passes
 - add ambient color to point lights (helps warp effects)
 - sort lights to try and get more important and/or visible lights to always happen in initial render pass
2006-07-24 07:38:00 +00:00
taylor 700a4958e3 maybe this will finally shut-up some of the people who have complained about certain mipmap issues 2006-07-17 01:11:32 +00:00
taylor 8088a2c1f1 only do i2fl() on the font bitmap once per string rather than doing it per-letter (basically unnoticable performance boost)
before doing alpha channel check, make sure the bitmap is valid, since it doesn't actually catch that until later in the texture code
2006-07-17 01:10:45 +00:00
taylor 9daca5f555 change clamp mode for font/interface graphics, don't want the border factored in for scaling/filtering 2006-07-15 06:11:27 +00:00
taylor a7282eca38 handle non-MVE movies a bit better in OpenGL (don't get freaky with the window, don't lose input, etc.)
some cleanup to OpenGL window handling, to fix min/max/full issues, and try to make shutdown a little nicer
2006-07-13 22:06:38 +00:00
Goober5000 ab19abcb21 cvs comment tweaks 2006-07-05 23:37:13 +00:00
taylor 825e394523 be sure to properly reset fullscreen/minimized state vars as we switch between them 2006-06-23 09:01:07 +00:00
taylor fc765d5e29 fix various things that Valgrind has been complaining about 2006-06-22 14:59:45 +00:00
taylor fb11c6d1bd as a temporary measure, until I can figure out what is going on here:
- disable depth buffer for RTT, may be causing the ATI issues, should work ok without it for most things
  - disable mipmap generation for RTT, something strange is going on there, it's sometimes making black mipmap levels (even for the same texture)
2006-06-19 22:50:58 +00:00
taylor 794fd78136 yeah, I'm not at the top of my game today ;) 2006-06-18 23:38:06 +00:00
taylor 9312a16472 address a strange resize error that triggers an Assert() in the texture code with mipmaps 2006-06-18 23:34:55 +00:00
taylor 19829284fe fix screenshots on big endian 2006-06-18 20:09:03 +00:00
taylor 1adc58f445 add a -disable_fbo troubleshooting option for those ATI users having trouble with FBOs, but can still use envmapping otherwise 2006-06-18 17:21:49 +00:00
taylor 4d5d947451 fix so that multiple FBOs can be used with different sizes (plus a few other minor adjustments) 2006-06-18 16:49:40 +00:00
taylor 3b0e23ccd5 apparently missed this commit a month or so ago with the other OS X fixes 2006-06-15 23:33:53 +00:00
taylor f9615c21e8 fix Assert() on value of face variable, it should be able to be -1 for non-cubemap images 2006-06-15 00:15:17 +00:00
taylor ca5b63540d sync current OGL changes:
- go back to using minimize mode which non-active, but doin't minimize when Fred_running
 - remove temporary cmdline options (-spec_scale, -env_scale, -alpha_alpha_blend)
 - change FBO renderbuffer link around a little to maybe avoid freaky drivers (or freaky code)
2006-06-12 03:37:24 +00:00
wmcoolmon fbd02e5fe8 Scripting system prep for 3.6.9 2006-06-07 03:23:15 +00:00
taylor 326788332a don't Int3() here, it's actually going to happen in some cases when using -img2dds 2006-06-05 23:59:33 +00:00