Commit Graph
283 Commits
Author SHA1 Message Date
taylor 25cd9b7766 updated/fixed modelanim code 2006-11-06 06:50:59 +00:00
taylor 466b70a949 make glow_point array for thrusters and glow_point_banks dynamic (a proper fix for old Mantis bug #43) 2006-11-06 06:42:22 +00:00
taylor 7982425766 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-11-06 06:39:11 +00:00
taylor 069ff59261 forgot this part of the render box fix (obviously no one ever really tried to use this feature, since it has never worked) 2006-11-06 06:38:34 +00:00
taylor 33f1db2b5f ok, so apparently that did actually do something ;) 2006-11-06 06:37:59 +00:00
taylor 572b7f3f72 updated/fixed modelanim code 2006-11-06 06:36:44 +00:00
taylor 8b6597f785 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-11-06 06:33:48 +00:00
taylor 68aa986fca 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-11-06 06:19:17 +00:00
taylor 9a62b0ba42 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-11-06 06:15:01 +00:00
taylor c244151204 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-11-06 05:42:45 +00:00
Goober5000 bba7b8d8fa improve error message 2006-11-04 17:22:54 +00:00
taylor 2bbcd2bf28 various small compiler warning and strict compiling fixes 2006-09-11 06:45:40 +00:00
taylor 3d416984bf fix things that strict compiling balked at (from compiling with -ansi and -pedantic) 2006-09-08 06:20:15 +00:00
taylor a07c6fd790 maybe optimize the (PI/2), (PI*2) and (RAND_MAX/2) stuff a little bit 2006-08-20 00:51:07 +00:00
taylor 76284ef278 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 1d4dc00caa make glow point banks dynamic 2006-07-17 01:12:52 +00:00
taylor af69ee6e72 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 2fef2ff159 stage 2 of animation fix (add base frame time to each ship)
--Goober5000
2006-07-17 00:10:05 +00:00
taylor c8d20207d3 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:16:38 +00:00
taylor e66d588408 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 0c0a8d67a6 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 22:00:39 +00:00
Goober5000 e66b834622 fix a couple of typos
--Goober5000
2006-07-06 04:26:00 +00:00
Goober5000 eae62591ce 1) complete (almost) changeover to reorganized texture mapping system
2) finally fix texture animation; textures now animate at the correct speed
--Goober5000
2006-07-06 04:06:04 +00:00
Goober5000 392727d494 cvs comment tweaks 2006-07-05 23:37:13 +00:00
Goober5000 f669cad916 --in preparation for fixing an annoying animated texture bug, reorganize the various texture structs and glow point structs and clarify several parts of the texture code :P
--this breaks animated glow maps, and animated regular maps still aren't fixed, but these will be remedied shortly
--Goober5000
2006-07-04 07:42:50 +00:00
wmcoolmon 4e9f367f28 Begin multi-turret-guns toggle work 2006-06-07 04:45:55 +00:00
Goober5000 0742d8e7b2 add fighterbay restriction code
--Goober5000
2006-06-04 01:03:13 +00:00
taylor b9b62a5630 be sure that we properly apply light to submodels (mainly for debris), looks *really* bad otherwise 2006-06-02 09:40:32 +00:00
Goober5000 3d73663123 some cosmetic changes in preparation for bay arrival/departure code
--Goober5000
2006-05-31 03:05:43 +00:00
taylor 6bc34644ad comment out the model cache stuff, it's old and not actually used anyway
minor cleanup of some modelinterp.cpp code, to make it more readable
fix tertiary thruster batcher which had the radius value swapped
comment out a couple places where we were doing a D3D or OGL check (it's always true so why bother)
add more support for NO_DIRECT3D so that it can be used on Windows to build without D3D
2006-05-27 16:57:13 +00:00
Goober5000 0e2d3156db fix for Mantis #875
--Goober5000
2006-05-16 15:54:39 +00:00
taylor a39e8900e1 minor cleanup and a couple extra error checks
get rid of some wasteful math from the gr_set_proj_matrix() calls
2006-05-13 07:09:25 +00:00
Goober5000 7e41877b7b proper capitalization according to Volition 2006-04-20 06:32:30 +00:00
Goober5000 1908007d1d change animation.cpp to modelanim.cpp, add CVS info, and add the file to the VC6 project
--Goober5000
2006-04-20 05:42:05 +00:00
bobboau 707095bf05 bugfix for the animation system 2006-04-18 02:33:59 +00:00
bobboau 7c36a78db8 bugfix for the animation system 2006-04-18 00:56:28 +00:00
taylor b296bcea3a compiler warning fix, missed this one previously 2006-04-16 05:24:58 +00:00
taylor 859482541c more checking to make sure that the malloc calls are actually needed 2006-04-14 18:37:06 +00:00
taylor 069698806d make sure we don't allocate any memory for turrets unless there are some, was causing a few various memory issues, mainly for debug builds
(there is more of this same checking on the way for the other malloc() calls during model loading, and vm_malloc() will be set to
   Assert() on a 0 or less size as well)
2006-04-13 12:19:33 +00:00
taylor ac57d4d55e more s/colour/color/ changes
throw in a couple of safety checks for some neb2 functions
2006-04-12 01:03:00 +00:00
taylor 8d6162b7ab fix model_allocate_interp_data() extern for OSX 2006-03-25 22:44:52 +00:00
taylor ab5ce4d7e1 modelinterp.cpp: that little bit really isn't needed
popup.cpp:  GCC 4.1 warning fixes
2006-03-25 10:41:44 +00:00
wmcoolmon d95d6165b5 New subobject animation stuff and Lua functions. 2006-03-24 07:38:36 +00:00
taylor a31f44a4a8 never try and load glow or shine maps if we don't have a base map for it
but WMC's bumpmap block in a BUMPMAPPING define since it useless most of the time
2006-03-18 10:25:05 +00:00
taylor 13a9c694c9 make the main vital TMAP_MAX_VERTS stuff dynamic, should handle the major non-HTL related crashes 2006-03-18 10:23:46 +00:00
Goober5000 27992b09cf add ship-subsys-targetable and ship-subsys-untargetable
--Goober5000
2006-03-18 07:12:08 +00:00
taylor 92e49f9bef beyond some possible out-of-bounds issues, I think this stuff was messing up non-HTL lighting too 2006-03-16 14:23:35 +00:00
taylor 4be8b5b054 add model_allocate_interp_data() extern for PPC machines 2006-03-08 05:15:20 +00:00
taylor d4997b0e9a remove WMC's "speed increase" ;) (the math isn't right yet so the collision checks won't be correct, and fixing it to work right wouldn't be any faster) 2006-03-05 18:00:55 +00:00
Goober5000 4c272613da fix the animation type triggers 2006-02-28 05:16:55 +00:00