taylor
1ed5c7d6c7
various small compiler warning and strict compiling fixes
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@3542 387891d4-d844-0410-90c0-e4c51a9137d3
2015-04-29 18:42:33 +10:00
taylor
240fabbdd0
fix things that strict compiling balked at (from compiling with -ansi and -pedantic)
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@3511 387891d4-d844-0410-90c0-e4c51a9137d3
2015-04-29 18:42:32 +10:00
taylor
6f62889368
maybe optimize the (PI/2), (PI*2) and (RAND_MAX/2) stuff a little bit
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@3453 387891d4-d844-0410-90c0-e4c51a9137d3
2015-04-29 18:42:30 +10:00
taylor
f106d752dd
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
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@3354 387891d4-d844-0410-90c0-e4c51a9137d3
2015-04-29 18:42:27 +10:00
taylor
d5f2d2db88
make glow point banks dynamic
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@3345 387891d4-d844-0410-90c0-e4c51a9137d3
2015-04-29 18:42:26 +10:00
taylor
dff718944b
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
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@3344 387891d4-d844-0410-90c0-e4c51a9137d3
2015-04-29 18:42:26 +10:00
Goober5000
2f9ad571c5
stage 2 of animation fix (add base frame time to each ship) --Goober5000
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@3340 387891d4-d844-0410-90c0-e4c51a9137d3
2015-04-29 18:42:26 +10:00
taylor
3beb39f3de
fix for animated texture map issues (*part one*), this should be faster than before too, and fix inf-loop/div-by-0 issues
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@3335 387891d4-d844-0410-90c0-e4c51a9137d3
2015-04-29 18:42:26 +10:00
taylor
d689cd9f6b
make sure to reset the optional maps after each buffer render (little scary that this wasn't noticed a long time ago)
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@3310 387891d4-d844-0410-90c0-e4c51a9137d3
2015-04-29 18:42:24 +10:00
taylor
2f0d12e022
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
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@3304 387891d4-d844-0410-90c0-e4c51a9137d3
2015-04-29 18:42:24 +10:00
Goober5000
c969d5b4ef
fix a couple of typos --Goober5000
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@3287 387891d4-d844-0410-90c0-e4c51a9137d3
2015-04-29 18:42:23 +10:00
Goober5000
1f9f692bfd
1) complete (almost) changeover to reorganized texture mapping system 2) finally fix texture animation; textures now animate at the correct speed --Goober5000
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@3285 387891d4-d844-0410-90c0-e4c51a9137d3
2015-04-29 18:42:23 +10:00
Goober5000
b4fcd028f0
cvs comment tweaks
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@3282 387891d4-d844-0410-90c0-e4c51a9137d3
2015-04-29 18:42:23 +10:00
Goober5000
a622bf7e8e
--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
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@3279 387891d4-d844-0410-90c0-e4c51a9137d3
2015-04-29 18:42:23 +10:00
wmcoolmon
a3599c2621
Begin multi-turret-guns toggle work
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@3176 387891d4-d844-0410-90c0-e4c51a9137d3
2015-04-29 18:42:19 +10:00
Goober5000
9d6a9f7df7
add fighterbay restriction code --Goober5000
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@3157 387891d4-d844-0410-90c0-e4c51a9137d3
2015-04-29 18:42:18 +10:00
taylor
907a14d209
be sure that we properly apply light to submodels (mainly for debris), looks *really* bad otherwise
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@3144 387891d4-d844-0410-90c0-e4c51a9137d3
2015-04-29 18:42:18 +10: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
wmcoolmon
51b5c481a9
Bump MAX_TFP to 10
2006-02-27 00:51:03 +00:00
wmcoolmon
5ab3f6cb11
Consistency in Lua 2D funcs; fix FRED2 loading screen images dialog boxes.
2006-02-27 00:40:34 +00:00
taylor
c9c87b8019
one friggin line, should have been able to notice that sooner
2006-02-26 11:09:31 +00:00
Goober5000
b52b6b1e00
spelling
2006-02-25 21:47:19 +00:00
taylor
bb1ca10fcd
vm_extract_angles_vector() doesn't do the same thing that this code used to so don't use it
2006-02-24 07:32:11 +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
14a7d00361
handle Interp data allocation a little better
2006-01-30 06:36:35 +00:00
Goober5000
64e86452d0
pare down the pragmas some more
...
--Goober5000
2006-01-26 03:23:30 +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