Asteroth
326a0c32d0
fix memory leak and use tmap verts directly
2022-05-07 16:43:23 -04:00
Tyler Blount
a2f6f791e4
Forgot some magic numbers
2022-04-27 15:22:07 -07:00
Tyler Blount
33c53198a6
Update model typecast macros, add safe casts, clean up mistakes and unused function
2022-04-26 21:55:43 -07:00
Tyler Blount
64a213c667
Cleanup magic numbers and vertex loading for TMAPs
2022-04-26 18:35:48 -07:00
Asteroth
3e2030bf01
clean up
2022-04-20 15:21:42 -04:00
Asteroth
2e4a657b57
more clean up and removing dead code
2022-04-18 18:05:46 -04:00
Asteroth
943e5c395b
first version of bsp space optimizations
2022-04-18 17:12:01 -04:00
Tyler Blount
75cdc8efa2
Some extra feedback changes and documentation
2022-04-15 20:36:54 -07:00
Tyler Blount
10b1fa89cf
Style and review changes
2022-04-15 15:38:55 -07:00
Tyler Blount
a804d21764
Error reports for TMAP2
2022-04-14 20:03:17 -07:00
Tyler Blount
e742920c93
Clang tidy fixes
2022-04-13 11:26:16 -07:00
Tyler Blount
8066ac02cc
Fix CI warnings
2022-04-13 11:26:16 -07:00
Tyler Blount
30e7747d6e
More signed to unsigned conversions
2022-04-13 11:26:16 -07:00
Asteroth
38e02566c7
remove center and radius fields
2022-04-13 11:26:16 -07:00
Tyler Blount
60c39c698a
Initial changes required to bump per-subobject vertex limit
2022-04-13 11:26:16 -07:00
Goober5000
e2f63a2340
rename and document several model coordinate functions
2022-02-15 20:59:24 -05:00
Goober5000
97952d6b6c
refactoring in preparation for model translation
...
Mostly renaming of fields and functions, and moving some modelread sections into functions. This reorganization will put the code on a better footing for the model translation feature. No model translation code is included yet, and there should be no change in functionality.
2022-01-29 15:53:21 -05:00
Goober5000
9d6eec939c
refactor submodel flags and add $rotate_accel
...
1) Changes the submodel flags to use a flagset instead of several booleans
2) Adds `rotate_accel` to allow submodel rotation acceleration to be specified
Submodel acceleration can now be instant; dumb-rotating submodels always instantly accelerate (and have always done so)
2021-11-17 21:45:01 -05:00
Shivansps
052879b3e4
POF 2118 and SLC2 support
2021-03-25 19:13:12 -03:00
Goober5000
020f14fb51
allow rotating submodels to rotate around an arbitrary axis
2021-01-13 14:01:28 -05:00
Goober5000
98e501acc7
remove the orientation field for submodels
...
Change the `orientation` field to `frame_of_reference` and remove it from submodel instance calculations.
2021-01-13 13:52:48 -05:00
Goober5000
88c1d8a02a
consolidate model instance code
2020-12-18 01:32:43 -05:00
Goober5000
7c92dd9f7c
hoist model_get and model_get_instance out of a bunch of functions
2020-12-16 11:55:31 -05:00
Goober5000
b90fc2b3ad
numeric to boolean
2020-12-08 19:54:31 -05:00
SamuelCho
816d8e5415
Make sure various model rendering/collision code reference submodel instances instead of the prototype data.
2019-06-25 22:33:52 -07:00
asarium
15dc45cc0a
Remove -old_collision command line option
...
The new system has been tested pretty thoroughly so I think it is time
to remove this option.
2018-10-21 18:36:59 +02:00
asarium
eeed22b91a
Enable misc-unused-parameters
...
clang-tidy was used for fixing the warnings. It is not clear if this is
actually an improvement so this may still be disabled later.
2018-04-25 11:57:55 +02:00
asarium
abdef9f7b0
Add tracing scopes to the mission load code
...
This makes it easier to determine what takes the most time while loading
the mission (loading models) and how we could optimize that load time
(optimize model loading).
This is not a bug fix but it also shouldn't cause any regressions since
there are no actual code changes so this could be merged before the
release of 3.8.
2017-03-28 17:23:22 +02:00
asarium
6922d3ca2c
Integrate the existing monitor system into the new tracing system
...
This writes the monitor updates as counter events into the event trace
file.
2016-12-21 16:10:01 +01:00
asarium
6c3da4b455
Fix even more 64-bit warnings
2016-08-11 10:08:11 +02:00
Goober5000
da812f9433
modify the actual function calls
2016-02-06 18:05:33 -05:00
The E
487f769064
Renaming vm_copy_transpose_matrix to vm_copy_transpose
2015-12-01 20:38:30 +01:00
The E
a413255728
Renaming vm_vec_dotprod to vm_vec_dot
2015-12-01 20:35:47 +01:00
Lari Nieminen
00fa839d1d
Added a few comments and fixed typos in some others
2015-08-22 21:55:37 +03:00
asarium
f00af4d89f
Fix "declaration of ‘i’ shadows a previous local" warning
2015-08-19 11:26:25 +02:00
Goober5000
bd3cd7eb18
Merge pull request #195 from Echelon9/fix/sort-uniq-includes
...
Review and refactor #include's
2015-08-19 00:05:02 -04:00
Lari Nieminen
1bf86532fe
Added $Collision LOD ship table property, for using a LOD for collision detection
2015-08-03 13:20:14 +03:00
Echelon9
66257146b7
Fix: model/modelcollide.cpp:1215:36: warning: declaration of ‘mc_info’ shadows a global declaration [-Wshadow]
2015-07-06 19:40:21 +10:00
Echelon9
c5493bb480
Scripted sort and uniq on (internal) project includes. Improves search time and as a by product removed a number of duplicative includes.
2015-06-22 20:24:30 +10:00
Fabian Woltermann
5dfbc6d292
Merge pull request #88 from SamuelCho/soft_shadows_deferred_lighting
...
Soft shadows, deferred lighting, and various graphics improvements and optimizations
2015-05-12 20:06:33 +02:00
Lari Nieminen
7a8c7cc6c2
Revert a part of f6e2f1d2 / r11129 which causes collision problems in some corner cases.
2015-05-09 13:42:12 +03:00
Swifty
c620372357
Soft shadows, deferred lighting, and various major graphics optimizations.
2015-05-02 14:35:37 -07:00
Goober5000
f6e2f1d236
xt branch: optimizations in modelcollide.cpp
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@11129 387891d4-d844-0410-90c0-e4c51a9137d3
2014-10-13 12:24:25 +10:00
Echelon9
f97e478c6d
Fix Coverity 1093576 Improper use of negative value: In model_collide_flatpoly(unsigned char *): Negative value can be returned from function is not being checked before being used improperly (CWE-394). From Flaming_Sword.
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@10391 387891d4-d844-0410-90c0-e4c51a9137d3
2014-02-02 10:52:50 +10:00
Echelon9
f02cba4090
Fix Coverity 1093413 Logically dead code: In model_collide_sub(void *): Code can never be reached because of a logical contradiction (CWE-561). From Flaming_Sword.
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@10382 387891d4-d844-0410-90c0-e4c51a9137d3
2014-02-02 10:52:49 +10:00
niffiwan
24e7810b24
Coverity fixes from Flaming_Sword
...
Uninitialized scalar field 1093859 1093917 1093810
Out-of-bounds read/access 1093669 1093670
Logically dead code 1093413 1093396 1093407 1093408 1093409 1093410 1093423 1093427 1093390
Allocation size mismatch 1093729 1093728
Unused pointer value 1093921 1093922
Wrong sizeof argument 1093732 1093731
Operands don't affect result 1093365
Dereference after null check/return value 1093475 1093455 1093627
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@9979 387891d4-d844-0410-90c0-e4c51a9137d3
2013-10-27 13:51:50 +10:00
Goober5000
c610a1f9a2
FUBAR's fix for Mantis #2770
...
see http://www.hard-light.net/forums/index.php?topic=83122.0
2013-01-07 03:31:46 +00:00
The_E
664c1c383b
Compiler Warning removal: int-to-ubyte conversion
2012-11-04 08:29:46 +00:00
Swifty
c6c12fc251
go_even_faster: Improved collision detection performance by rewriting broadphase and narrowphase testing.
2012-08-11 21:14:53 +00:00
Echelon9
19ae6528e0
Cases of commented out Int3() indicate areas of old, redundant code.
2011-11-17 11:07:53 +00:00