Commit Graph
310 Commits
Author SHA1 Message Date
taylor 1b2c251be6 add back Bobboau's "check hull" turret subsystem flag support 2008-04-03 16:47:03 +00:00
taylor 677a285bcf if no paths then don't try to allocate memory for them (avoids Int3() check in vm_malloc from requesting a size of 0) 2008-03-31 12:59:10 +00:00
taylor d8c2926962 bring OS X stuff up to date 2008-03-31 01:39:17 +00:00
taylor 88693b7388 fix various compiler warnings 2008-03-29 06:30:20 +00:00
taylor 461922f046 some minor mprintf() cleanup 2008-03-28 03:32:38 +00:00
karajorma a4987ce6ae Add SEXPs and table entries to WMCs subsystem name changing system 2008-03-21 20:25:12 +00:00
taylor 0c572367ba side-turret patch from KeldorKatarn 2008-03-20 22:18:33 +00:00
taylor 29f8a54cd9 change gr_set_cull() so that it works better (mainly part of the RTT fix) 2008-03-20 20:18:49 +00:00
Kazan 90808c47a9 better way of doing the SLDC endianity swapping according to taylor 2008-02-12 00:49:22 +00:00
Kazan 529f1f910c Endian-gender safety for SLDC, 1st part of $no_collide (need to make it not obscure objects behind such chunks) 2008-02-12 00:41:21 +00:00
Kazan ee17e62350 Shield Collision Tree Support (POF Chunk SLDC) 2008-02-11 22:33:43 +00:00
Goober5000 6477cfdfc0 catch invalid bounding boxes caused by buggy POF editors ;) 2007-12-03 04:47:02 +00:00
Goober5000 f76ba63460 watch out for bad MOI values 2007-12-02 08:21:50 +00:00
Goober5000 e4e2692070 fix a minor bug in the dockpoint system (affects sm2-07a in the Port) 2007-10-21 22:11:17 +00:00
taylor 26aca5d17b add the rest of the texture page-in code changes that I skipped before (should fix Mantis #1389) 2007-05-25 13:49:39 +00:00
taylor a1c3ae01e7 fix debug message (using wrong name, spit out a bunch of garbage on Windows boxes) 2007-05-11 03:10:48 +00:00
Goober5000 7d8efa9911 remove duplicate model texture replacement 2007-02-21 01:44:02 +00:00
Goober5000 7801c52b66 wups 2007-02-20 04:53:11 +00:00
Goober5000 3c3416fa3b the great big duplicate model removal commit 2007-02-20 04:20:38 +00:00
Goober5000 6d4f4c5644 remove obsolete and misleading comments which should have been edited when the code was upgraded 2007-02-16 22:09:05 +00:00
taylor ed5238741e bit of cleanup and minor performance tweaks
render ship insignia with a bit of alpha to help with blending/lighting
dynamic thruster particle limits
update for generic_bitmap/anim changes
make use of flag_def_list for ship flags rather than a ton of if-else statements
use generic_bitmap and generic_anim where possible to faciliate delayed graphics loading (after all ship related tbls are parsed)
use VALID_FNAME()
2007-02-12 00:41:38 +00:00
taylor 73fb0897a8 IBX version 2 support (includes Bobboau's earlier D3D fixes for it) 2007-02-12 00:19:48 +00:00
taylor 1ed8d8d773 fix a break from an earlier partial commit 2007-02-11 18:46:30 +00:00
taylor 410a6bdf0d fix model vertex normal data that was being read/written incorrectly under OS X (still don't know why this was a problem, but this fixes it) 2007-01-07 12:13:57 +00:00
Goober5000 620fba2f58 fix spelling... *twitch* 2006-12-28 22:47:16 +00:00
taylor 9723208f1c remove unneeded header 2006-12-26 05:27:54 +00:00
taylor caf33b26d9 unbreak the breakage that I broke when I tried to fix breakage that wasn't broken the second time but initialy broke instead
(yeah, this one confused me ;))  (Mantis bug #1165)
2006-12-07 18:21:25 +00:00
taylor da6a01478a try and keep angles within PI2 (Bobboau's advice, since he knows more than I do about this stuff :)) 2006-12-07 18:19:23 +00:00
Goober5000 99f7848ad7 the grammar nazi strikes again!
(and sneaks an extra #define in there while he's at it!)
2006-11-28 05:48:21 +00:00
Goober5000 2783d62500 improve error message 2006-11-04 17:22:54 +00:00
taylor 67305cfda5 make glow_point array for thrusters and glow_point_banks dynamic (a proper fix for old Mantis bug #43) 2006-11-01 18:35:58 +00:00
taylor 10fb66c977 forgot to reset default value for Interp_warp_alpha when it was changed earlier
be sure that we are using the proper zbuffer setting when rendering thruster glows
2006-10-28 17:58:42 +00:00
taylor 403b8885cd forgot this part of the render box fix (obviously no one ever really tried to use this feature, since it has never worked) 2006-10-28 04:01:33 +00:00
taylor b511f3fba7 ok, so apparently that did actually do something ;) 2006-10-28 04:00:09 +00:00
taylor 28d78bf454 updated/fixed modelanim code 2006-10-27 21:41:22 +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 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 5c69a3c637 a LOT of cleanup:
* remove a bunch of old/dead code
 * some reformatting to help with readability
 * rearrange/rename some code so that it is a little clearer
 * move thruster glow code to it's own function (model_render_thrusters())
make HTL model buffers dynamic
fix detail boxes so that they actually work for the first time
2006-10-24 13:29:16 +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
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 0107652287 maybe optimize the (PI/2), (PI*2) and (RAND_MAX/2) stuff a little bit 2006-08-19 04:38:47 +00:00
taylor 84ae3ca0a6 minor changes to game_busy() debug text
- don't alloc it for bmpman, and make sure to only call on textures that we are loading
 - add text for model loading, gets rid of the long-wait issue when it appears to not be doing anything early on
2006-07-21 16:08:32 +00:00
taylor 97a933c789 make glow point banks dynamic 2006-07-17 01:12:52 +00:00
taylor ec0737f8d5 fix some missile autocentering issues
- use MR_AUTOCENTER and MR_IS_MISSILE flags to generate an autocenter for a missile if one doesn't already exist
 - don't try to autocenter loadout icons when rendered 3d
2006-07-17 01:12:19 +00:00
Goober5000 2474793439 stage 2 of animation fix (add base frame time to each ship)
--Goober5000
2006-07-17 00:10:05 +00:00
taylor 41246c7e7f fix for animated texture map issues (*part one*), this should be faster than before too, and fix inf-loop/div-by-0 issues 2006-07-13 22:11:37 +00:00
taylor 6d36280c60 make sure to reset the optional maps after each buffer render (little scary that this wasn't noticed a long time ago) 2006-07-07 16:26:44 +00:00
taylor 2e28cb4907 rest of the map/glow changes
- put glowmap activity back on a per-ship basis (via a SF2_* flag) rather than per-model
 - same for glowpoints, back on a per-ship basis
 - put specmaps and bumpmap back on a LOD0 and LOD1 affect (got changed to LOD0 only recently)
 - fix glowmaps for shockwaves again
 - add support for animated specmaps (mainly for TBP and Starfox mods)
some minor code cleanup and compiler warning fixes
2006-07-06 21:53:59 +00:00
Goober5000 cc1993aa73 GAH - repair a borked commit (plus a couple of typos)
--Goober5000
2006-07-06 04:20:34 +00:00