Commit graph

328 commits

Author SHA1 Message Date
AzaezelX 5b0f559c9f animation playback cleanups
courtessy of marauder
2025-12-17 15:42:13 -06:00
marauder2k7 cc17dcdc17 Update assimpShapeLoader.cpp
signage still causes issues
2025-12-10 08:21:47 +00:00
marauder2k7 a716107dd2 Assimp Import Axis
Build a matrix to fix the assimp import to be zup yforward
2025-12-10 04:52:03 +00:00
AzaezelX 9bcf8a90b2 dsq detection filters 2025-11-25 19:03:38 -06:00
marauder2k7 891ede5d59 Update assimpAppNode.cpp 2025-11-25 10:09:18 +00:00
marauder2k7 f817d7d903 further assimp fixes
AppMesh position was being scaled twice since the node is now being scaled
Try and resolve fps from file instead of default 30
maxKeyTime should be outside the loop
2025-11-25 08:34:00 +00:00
marauder2k7 a5ed09fa57 fix assimp import
Assimp importer now sets the collada options to fix up axis transformation
bounds are now created by tsmesh
top level nodes are now added to the processNodes stack so bounds and other root nodes can be found correctly
2025-11-24 07:54:53 +00:00
JeffR e02981c848 Fixes various reported issues with the ShapeEd update
- Updates addSequence for the TSShapeConstructor so it can properly understand if it's handed an assetId or not, and if it is, stores that as the source data for use later
- Has the added benefit of ensuring no erroneous double-ups of data causing accidental overwrites when saving the shapeConstructor because it thinks the data 'changed'
- Fixed saving of new added sequences in shape constructor to properly trip whitespace
- Adds ability to manually trigger a ShapeAsset to load the shape data
- Adjusted the logic for getting a shape/animation asset's constructor when adding a new sequence to avoid false reporting of no constructor existing(by manually loading it)
- Fixed formatting on ShapeEd Anim window to properly scale
- Added onWake calls for the ShapeEd select and properties windows to better prep them position/extents-wise so they should behave more consistently
- Fixed issue of Not closing material editor if it was opened via the Edit Selected Material button in the ShapeEd
- Fixed issue of highlighting of material not going away when ShapeEditor is closed
2025-10-13 00:07:46 -05:00
JeffR c5a810ae06 Updates the ShapeEditor with various fixes and QoL changes
- Updates the position/extent of most of the labels and fields so they no longer cut off or overlap
- Added a new button for explicitly added sequences based on existing sequences. This lets the Add Sequence button be exclusive for adding in new sequences from external assets improving stability and making the general behavior more consistent
- Adding new sequence now prompts a window to pre-fill data like the sequence name, source sequence name and start/end frames
- Made the shapeConstruct handle the adding of sequences handle the lookup of external assets consistent to the rest of the engine
- Fixes name presentation for ShapeAnimationAssets in AB
- Adds separate dropdown for the sequence properties section for picking the desired source sequence name. This makes it possible to pick an external animation source AND the internal sequence name via the UI, instead of needing to script it by hand
- Fixed saving behavior to properly restore the playback thread
- Fixed saving behavior to not needlessly save the asset def when editing sequences but before you clicked the save button
- Made it so clicking the Assets tab in the select window opens the AB, but re-selects the Scene tab so you're not fighting which tab is selected
- Adjusted positioning defaults of all the windows so be more standard
- Fixed openShapeInShapeEditor behavior
2025-10-06 03:14:12 -05:00
Brian Roberts f1723bbb28
Merge pull request #1560 from marauder2k9-torque/assimp-armature-fixes
DSQ Fixes
2025-09-23 13:22:34 -05:00
marauder2k7 10acab1b07 more fixes
DSQ Fixes
2025-09-23 19:09:20 +01:00
AzaezelX b69c0d2a0f even more precice filtering for dts vs dsq 2025-09-23 11:52:50 -05:00
marauder2k7 2606b6366b Assimp just armature tests
Remove the check for incomplete scene
Move child recursion to assimpAppNode in BuildChildList
same for meshes
2025-09-23 15:59:24 +01:00
AzaezelX f5875dd5a2 reinforce dsq or dts filter 2025-09-23 08:51:24 -05:00
Brian Roberts a8d370038a
Merge pull request #1556 from Azaezel/alpha41/addMeshAug
allow the addmesh command to take shapeassets as an entry
2025-09-23 08:41:57 -05:00
AzaezelX d813be4ea0 allow the addmesh command to take shapeassets as an entry 2025-09-23 08:41:38 -05:00
AzaezelX cd5f897e55 dsqs area subset of dts data
ensure if an input file contains mesh data *and* an animation, thats a dts, if it's *just* an armature, that's dsq
also fix shapeanimation tooltip display
and for furutere utility,  TSShape::isShapeFileType(Torque::Path filePath); is now static since it only requires a path, not an object instance per-se
2025-09-14 15:18:03 -05:00
AzaezelX caae061b0e expand TSShape::addSequence filetype filtercheck
if we're going to be looking into additional file formats for animation sources, need to check all of the extensions
2025-09-13 10:14:52 -05:00
AzaezelX 03c99f845b fix crash with unclean exit
for player, if we're unmounting because we're being deleted, don't bother animating
for tsthreads in general, not much point in removing the threadlist, then checking if it's scaled
2025-07-14 08:08:22 -05:00
AzaezelX 4eae51992e shapes are optional for projectiles. not mandatory.
and stop yelling in the console mid way through loading.
2025-07-07 16:49:56 -05:00
marauder2k7 fd7342668c streamline shape asset
shape asset now has the same import "@" as image asset
cut out extra filename parameters that arent needed
refresh hopefully fixed
2025-06-20 15:58:20 +01:00
AzaezelX 8bd145d54f use of get<some name> methods that already return nulls/false when attempting to load
in contexts where we would want to try first (pt2)
2025-05-28 17:45:02 -05:00
JeffR bb7ee38bf4 - Reimplements autosave logic to handle levels, subscenes and terrains in a more consistent, reliable way.
- Adds entry to RMB menu in Asset Browser to restore an asset to a backup copy taken from autosaves
- Adds reparent out-of-bounds objects button to SceneGroup inspector
- Adds ability to have SubScene have a different loading bounds from the actual subscene bounds, allowing load triggering to happen ahead of the bounds of the subscene itself
- Fixes asset importer handling of animFPS field to be the correct type
- Adds onInspect handling to GameBase allowing better handling for any game class type with editor integration
- Add getAssetLooseFileCount and getAssetLooseFile to AssetManager to be able to iterate over all loose files associated to an asset
- Add standard/default preload function def to forestItem
- Fixes handling of text placement on GuiIconButtonCtrl when text is set to the right
- Adds setGlobalCenter utility function
- Adds ability to set guiInputCtrl active state
- Matched util functions for tracking if left and right mouse buttons are down to EditTSCtrl alongside the existing middle mouse
- Add empty element sanity check to appMesh loader
- Add callback for GameBase when game is created
- Add default graphics options config for steamdeck
- Fix typo in assetImportConfig default
- Filters SceneGroup utility buttons in inspector to only show for relevent class types
2025-05-25 07:40:10 -05:00
Brian Roberts 6cda97867c
Merge pull request #1452 from marauder2k9-torque/MEMORY-MANAGER-REFACTOR
Memory Manager Refactor
2025-05-12 15:31:06 -05:00
marauder2k7 8c812cb448 initial commit
This change makes the memory manager work again for detecting leaks, the built in one kept coming into de-ref and other bugs so this is the start of a refactor to get it working.
2025-05-12 11:50:13 +01:00
marauder2k7 0da0903599
Merge branch 'development' into imageAsset_refactor_rev3 2025-03-24 20:07:06 +00:00
AzaezelX f5b7f70f50 add a specific lod option for findColDetails 2025-01-27 17:19:22 -06:00
marauder2k7 0f4d2d1689 material definition finished 2025-01-23 22:16:02 +00:00
marauder2k7 cebfdbc5ec material definition
changing the beast over to the refactor
2025-01-23 22:15:29 +00:00
marauder2k7 87de724d31 final cleanup 2024-12-12 15:08:01 +00:00
marauder2k7 4a1d664b6a final commit get this merged 2024-12-12 14:32:20 +00:00
marauder2k7 13a6df35cc mac/linux fix 2024-12-12 01:02:36 +00:00
marauder2k7 dcedcdd6f8 test cases
apply transform to root before importing scene
2024-12-12 00:21:37 +00:00
marauder2k7 742b341bcd Update assimpAppNode.h 2024-12-11 21:12:55 +00:00
marauder2k7 3966f561a6 Update assimpShapeLoader.cpp
missed that one
2024-12-11 19:33:21 +00:00
marauder2k7 aa294b37f6 final cleanup
cleanup types
cleanout unnecessary vars
only aboslutely necessary vars to collada utils remain, for tracking scale and up_axis etc.
2024-12-11 19:28:09 +00:00
marauder2k7 684f299e86 Update assimpShapeLoader.cpp
most uniform shape import across the formats....
2024-12-11 16:43:23 +00:00
marauder2k7 4ac9639a52 bkup commit
fbx details matching for skinned meshes, gltf still offset
2024-12-11 15:38:17 +00:00
marauder2k7 af6722f547 Update assimpShapeLoader.cpp
because of the convert to lefthand gltf all formats are good with Y_UP
2024-12-10 18:41:14 +00:00
marauder2k7 5beef47b23 dont autoconfig up axis set it explicitly for the formats 2024-12-10 16:46:29 +00:00
marauder2k7 28fcb8d68b animation update
updated how animations are handled from assimp
gltf timing now correct
2024-12-10 11:54:13 +00:00
marauder2k7 5f1c2a63e5 Update assimpShapeLoader.cpp
fix for mac and linux build
2024-12-10 00:41:23 +00:00
marauder2k7 ca6e26520b Update assimp importing
assimp importer now works for the most part for fbx and gltf
animations for gltf still need to be sorted out
2024-12-09 23:24:09 +00:00
AzaezelX bb432dc906 fix(?) assimp to torquie matrix converter
it wasn't accounting for the formatScaleFactor (1, 0.01, ect) leading to mesh deformations based on bone vs skinned mesh displacement
2024-09-30 22:39:00 -05:00
marauder2k7 2132379b05 backwards compat
Changed: addCollisionDetail now has its fill mode at the end for easier backwards compat
2024-05-16 21:21:34 +01:00
marauder2k7 4b2165668f moar fixes
Fixed: convex and shape nodes are now the same transform as the target nodes
Changed: addNode now has the target at the end of its call for backwards compat
Fixed: renameNode was overwriting addNode calls, should not have been so
2024-05-16 20:36:47 +01:00
marauder2k7 280102d565 Update tsMeshFit.cpp
update addCollisionDetail documentation
2024-05-16 08:18:17 +01:00
marauder2k7 92b10df7eb cleanup nodes
ADDED: functionality to clean nodes out of the script that are related to a specific target
ADDED: functionality to clean multiple addCollisionDetails from the script
ADDED: ColConvex get added as nodes now and dont just get skipped (for future reference ColMeshes are checked for colConvex are not but this will be needed in future)

Removed: erroneous deletion of nodes and meshes from shapeEditorActions tscript file.
2024-05-16 07:04:54 +01:00
marauder2k7 25b0c5e2b1 finish fill mode setting
now fill mode actually takes effect and changes the fill mode type used to generate the convex hull
2024-05-16 04:32:14 +01:00
marauder2k7 48848f9706 rename vars
renamed vars to make more sense with the new option params
2024-05-16 03:39:18 +01:00