bobboau
6d7c837732
ok, something aparently went wrong, last time, so I'm commiting again
...
hopefully it should work this time
damnit WORK!!!
2007-01-14 14:03:40 +00:00
wmcoolmon
fd151e4c43
Attempt to remove various warnings under MSVC 2003, mostly related to casting, but also some instances of inaccessible code.
2007-01-14 10:26:39 +00:00
bobboau
c9fa35ffd5
made a last second change of mind on something, made it a bit safer
2007-01-13 16:38:22 +00:00
taylor
d7b13ab375
add support for new IBX format which can support up to UINT_MAX worth of verts (NOTE: D3D code still needs to be made compatible with this!!)
2007-01-10 01:44:39 +00:00
taylor
d6c1500896
fix tertiary glow sizes
...
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:49:51 +00:00
wmcoolmon
b90b5716df
WMC codebase commit. See pre-commit build thread for details on changes.
2006-12-28 00:59:54 +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
33f1db2b5f
ok, so apparently that did actually do something ;)
2006-11-06 06:37:59 +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
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
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
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
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
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
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
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
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
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
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
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
Goober5000
4c272613da
fix the animation type triggers
2006-02-28 05:16:55 +00:00
Goober5000
b52b6b1e00
spelling
2006-02-25 21:47:19 +00:00
taylor
9e857ae2c4
NULL vec warning fix (basically just setup as if it were NULL and skip the extra work if needed)
...
more bmpman related fixes, mainly addresses the condition where it would try to render textures that have been released
have model_unload() run through Ship_info[] and clear out modelnum's when they are free'd (makes more sense here than doing it on level load to keep counts right)
fix missing subsystem warning messages
2006-02-16 05:31:00 +00:00
taylor
7d3c621d15
don't attempt to draw glowpoints or engine glows when in wireframe mode (this may need to be a flag or something, but I'm not sure)
2006-01-19 14:06:33 +00:00
taylor
16b6d96c61
oops! :)
2006-01-18 16:36:32 +00:00
taylor
fa811c3915
allow gr_render_buffer() to take TMAP flags
...
let gr_render_buffer() render untextured polys (OGL only until some D3D people fix it on their side)
add MR_SHOW_OUTLINE_HTL flag so we easily render using HTL mode for wireframe views
make Interp_verts/Interp_norms/etc. dynamic and get rid of the extra htl_* versions
2006-01-18 16:14:04 +00:00
taylor
a15e372b58
well that was super smart of me
2006-01-17 01:31:43 +00:00
taylor
8804e0dcbf
some minor changes to model_should_render_engine_glow(), better safety checks, support for disrupted engines
...
check to see if a particular engine is disabled/destroyed/disrupted before making engine wash for it
2006-01-16 20:57:03 +00:00
taylor
741e151cac
fixes for regular texture replacement
2006-01-04 08:19:22 +00:00
taylor
1b2a6031e2
we are using gouraud lighting here so be sure to set the proper tmap flag (fixes D3D, corrects OGL)
2005-12-29 20:12:51 +00:00
wmcoolmon
246cfcfa65
Codebase commit, most notably including objecttypes.tbl
2005-12-29 08:08:42 +00:00
taylor
e4a6cc9aeb
apply at least some lighting to ship insignias rather than them being full bright
2005-12-16 06:54:10 +00:00
taylor
2520f81baa
fix limits checking messages to actually be useful and hit sooner (wireframe view of some hi-poly models was going out-of-bounds from normals)
2005-12-15 16:31:03 +00:00
taylor
53e120a16d
make sure that the value of model_current_LOD stays with the detail_level value so that it's properly capped when used latter
...
undo the locked detail level change, all of the LOD textures are cached (or should be) so that really only hurt speed rather than helping
2005-12-12 22:04:19 +00:00
wmcoolmon
78fab0c331
Codebase commit - nebula.tbl, scripting, new dinky explosion/shockwave stuff, moving muzzle flashes
2005-10-30 06:45:00 +00:00
taylor
6f18a905e0
more TMAP_MAX_VERTS overflow protection for non-HTL usage (these are the things that need to be addressed to fix non-HTL)
...
fix some compiler warning messages
don't do any decal processing if decals are disabled, the math was a waste of CPU cycles in that case
2005-10-28 14:45:55 +00:00
Goober5000
a8dcf18e3b
merge Bobboau's thruster code back in; hopefully this covers everything
...
--Goober5000
2005-10-24 07:13:05 +00:00