Commit graph

1487 commits

Author SHA1 Message Date
Samuel Skiff cde584253d OpenGL fixes for HDR post effect 2023-07-07 00:51:11 -05:00
AzaezelX 5e6a95866a localization utiity methods
to better adress https://github.com/TorqueGameEngines/Torque3D/issues/1036
2023-06-22 17:52:32 -05:00
AzaezelX fd758b1736 fix forest element inspector 2023-06-17 11:31:32 -05:00
AzaezelX b1f118898e add TypeHints for inspector viewing
typehints operate as an additional label for a given class in the inspector, allowing one to specify what class-entry to use as a tag
examples: Prefab displays prefab filename
TSStatic displays the used shape asset name
SFXEmitter displays the played sound asset
GameBase derivatives display the datablock used
2023-05-23 12:35:07 -05:00
Areloch 667a0db760 Fixed getAssetBy... functions so the lookup loop is more stable and doesn't fail if null results return
Added sanity check to reflectionProbe preview shape so if the material didn't load right, it doesn't crash
Added logic to better control if module groups as a whole should fail if a module dependency in that group fails, defaulted to off
Added sanity check if a shape's material failed to load so it doesn't crash when checking accumulation rules
Added search bar to SimView control for easier use
2023-05-08 21:18:23 -05:00
bank 1099c2d80c
Fix callbacks from PopupMenu
Since 4.0 release, the TorqueScript doesn't keep local vars in stack
when calling `eval()`.
2023-04-21 20:48:01 +03:00
AtomicWalrus 75625dc679 Reverse depth & 32F buffer format
-Adds reversed depth projection model, dramatically increasing depth buffer effective resolution.
-Adds 32F depth 8U stencil format GFXFormatD32FS8X24 (following DX naming conventions). Note this is a 64-bit format, and likely not suitable for mobile platforms. Revert to GFXFormatD24S8 in renderManager.tscript for mobile & "ancient" platforms.
-Corrects alignment of texture type details array.
2023-04-14 20:13:28 -06:00
Brian Roberts c08fa359d2
Merge pull request #1009 from Azaezel/alpha41/moduleFileReload
adds a  reloadModuleFiles(%moduleGroup); command
2023-04-11 18:29:40 -05:00
AzaezelX 1b1497d439 adds a reloadModuleFiles(%moduleGroup); command
method checks last module.filename execution via getTimeStamp() the last time it was run, and compares fileModifiedTime to see if the next time that file had been altered.
called in moduleExec
2023-04-08 21:27:43 -05:00
Lukas Aldershaab 1d28ddf734 Cleanup and improve 2023-04-06 15:28:09 +02:00
Brian Roberts 81bf7fc538
Merge pull request #996 from Azaezel/alpha41/furtherFontFixes
cut control chars for font population
2023-03-18 15:03:37 -05:00
Brian Roberts 3529a31d0f
Merge pull request #997 from Areloch/ExpandedEditorToolstuffs
Adds expanded ability to create and insert specialized script-based inspector fields
2023-03-18 15:03:20 -05:00
Areloch bd07ce4f2a Adds a Prototyping datablock for a pick-up able item 2023-03-18 14:56:47 -05:00
Areloch f9f022a1b9 Added proper default setting for alwaysPromptModuleTarget editor setting
Swapped the scan checking for editor scripts with dso being preferred first
2023-03-18 14:53:42 -05:00
Areloch 2f40b843d4 Adds expanded ability to create and insert specialized script-based inspector fields
Adds logic during the editor script initialization to let game modules have embedded tools
Changed setting to force prompt for target modules when creating things like datablocks to minimize confusion about where they save to
2023-03-18 02:22:47 -05:00
AzaezelX fd02044d20 cut control chars for font population
zip referenceablilty for font files
2023-03-17 23:02:27 -05:00
AzaezelX 73e3b44e12 guiprofiles augs
guiprofiles now have additional options: borderSEL and borderERR in keeping with the fillcolor variants. fontColors now also takes an optional ERR entry on the backend, though that remains unleveraged at time of writing.
guiiconbuttonctrl now uses the expanded list in conjunction with renderFilledBorder
asset browser profiles now contain a AssetBrowserProtoProfile that type-profiles derive from for consistency in border selection, highlight, (and down the line error)  colors and border thickness while maintaining type-sepcific border color entries for general display
2023-03-16 17:21:07 -05:00
Brian Roberts d887c27d95
Merge pull request #994 from Azaezel/alpha41/fontcachegen
revise populateallfonts()
2023-03-15 18:22:44 -05:00
AzaezelX 07b3cba378 fix font cache attempting to start with char 0x0, time delay generation by one second per to mitigate ap choke 2023-03-15 18:22:14 -05:00
AzaezelX f22464b056 revise populateallfonts
rewritten to be a full itteration of all unique combos of font+size used by any currently loaded guicontrolprofile
2023-03-15 06:24:25 -05:00
AtomicWalrus 4b678a3e3b Prevent double onAdd script call for GameBase objs
Adds a check to skip this the first time onNewDataBlock is called (when the object is created) to prevent double-calling onAdd
2023-03-15 00:05:01 -06:00
AtomicWalrus e552b904ab Only project to farplane to avoid hang/crash w/ high fardist
Unproject depth (z coord on input) is normalized, 0=nearclip, 1= fardist
2023-03-13 00:42:22 -06:00
Brian Roberts bab419fd65
Merge pull request #986 from Azaezel/alpha41/assetCleanups
Alpha41/asset cleanups
2023-03-09 21:10:22 -06:00
AzaezelX ee2fc4804a pt2: name conflict resolution for files gened from an ealier rev of the autoconvert wizard 2023-03-07 16:09:11 -06:00
AzaezelX 9a5e0829ff misc asset bit cleanups
pt1) camera_shape misconversion leftovers
2023-03-07 15:15:12 -06:00
AzaezelX b72472ee05 tag the terrain material diffuse tool label with more context
the name alone doesn't make it clear that that texture is stretched over the whole map and sampled to create the _basetex.dds files
2023-03-04 16:03:05 -06:00
AtomicWalrus 50acaec19c Fix handling of filenames starting with ./
Restores a line for removing double slashes that got caught in a comment block
2023-02-26 16:00:09 -07:00
Brian Roberts a51bccf222
Merge pull request #973 from AtomicWalrus/KeyBindingScriptFixes
Key rebinding script fixes
2023-02-26 14:27:43 -06:00
Areloch 33ac4a0864 Corrects the dirt lens image reference from filepath to assetId to not have overhead having to look up the asset each frame when setting the postFX 2023-02-26 12:58:50 -06:00
AtomicWalrus 732d76d17c Key rebinding script fixes
Fixes two issues:
-Bindings after the first page were not pointing to the correct remapping entries when actually remapping. Were populating the name and button image correctly, but first item on every page pointed to first item on first page.
-Keybinds were never being saved to file if your action maps all had long-form ("human readable") names defined.
2023-02-25 03:14:30 -07:00
AtomicWalrus 13fec9bb80 Squashed commit of the following:
commit 678d0ea2357915c6502af90083f1d34b6b21b7b4
Author: AtomicWalrus <headlesschickens.inc@gmail.com>
Date:   Mon Feb 20 20:46:15 2023 -0700

    Removed some commented-out code

commit 4a149157f7a7b781e2246b1417b144625ff559cd
Author: AtomicWalrus <headlesschickens.inc@gmail.com>
Date:   Mon Feb 20 20:42:03 2023 -0700

    Remove un-used instance of the blendHardness var

commit e5dc42adef00ed371cbc89b731ae16889ba68d9a
Author: AtomicWalrus <headlesschickens.inc@gmail.com>
Date:   Mon Feb 20 18:57:51 2023 -0700

    Cleanup un-needed conditionals and other leftover code

commit dccd10010e058f00cd41f5c5c111443f9cb71721
Author: AtomicWalrus <headlesschickens.inc@gmail.com>
Date:   Mon Feb 20 18:05:31 2023 -0700

    Use validator instead of protected field (2)

commit 4cc7f1d32fcc6ab788de54bb38763283fbd5533e
Author: AtomicWalrus <headlesschickens.inc@gmail.com>
Date:   Mon Feb 20 18:03:40 2023 -0700

    Use validator instead of protected field

commit e8d7e1731e383a99e8a0539d23a3b04f9c252491
Author: AtomicWalrus <headlesschickens.inc@gmail.com>
Date:   Mon Feb 20 15:34:48 2023 -0700

    Terrain macro textures and blending hardness
2023-02-20 20:47:46 -07:00
Brian Roberts 2d946f693a
Merge pull request #965 from Azaezel/alpha41/moduleExec
callonmodules perf tweaks
2023-02-18 00:51:41 -06:00
Areloch 0e0cc0b83a Ensures that if no client camera is defined when attempting to swap into an editor camera mode, it makes one so that the normal editor camera modes can work as expected
Adds sanity check to default onNewDatablock function on the GameDatablock namespace in case the onAdd or onRemove functions aren't defined, we don't spam the console
2023-02-18 00:40:55 -06:00
AzaezelX 992a610d9f callonmodules perf tweaks
callonmodules skips out on file execution tracking
new moduleExec method retains the old functionality for module file execution filtering
2023-02-17 05:49:16 -06:00
Brian Roberts 36771d9f0b
Merge pull request #959 from Azaezel/alpha41/guiiconBorderfix
fix GuiIconButtonCtrl not taking borderThickness entires
2023-02-15 14:37:43 -06:00
AzaezelX 57037080b2 add an ignoreLighting entry to materials
by request:, flag to utterly ignore lighting in favor of the base texture
2023-02-14 20:57:44 -06:00
AzaezelX 76a7b024e8 fix GuiIconButtonCtrl not taking borderThickness entires 2023-02-14 17:32:31 -06:00
Areloch 5c52d565bc Fixes the command build for the Navmesh's Follow test tool so it doesn't create a parse error 2023-02-02 00:30:02 -06:00
AzaezelX e83028d9ae preserve glowmap operating as faux lights for probes via oversaturation
(cherry picked from commit 5a2e04838e)
2023-01-20 23:51:36 -06:00
marauder2k7 556937ec09 Initial Commit
(cherry picked from commit 05a2f8c4cf)
2023-01-20 23:51:03 -06:00
Brian Roberts 95b8028e5a
Merge pull request #943 from Azaezel/alpha403/emissiveToReciveShadows
emissive  to recivesShadows
2023-01-09 15:28:30 -06:00
AzaezelX 543eac4720 clean up lefotvers 2022-12-29 13:54:26 -06:00
AzaezelX 645f88d4af emissive to recivesShadows
now we've got a glow mask and multiplier, ditch the emissive flag in favor of a proper recivesShadows
2022-12-29 13:38:30 -06:00
AzaezelX 8821f62b0c misc fixes
utilize specialty case soundarray macros.
 slim duplicate entries in vehicle already hand;ed by rigidshape.
create a gamebasedata::onnewdatablock which calls onremove and onadd for the db for those classes like wheeledvehicle that expect mounting logic to occur
2022-12-27 21:10:15 -06:00
Areloch 00c27095f7 Establishes a common namespace for Module ScopeSet objects to make it easier to work with function calls out of module namespaces 2022-12-22 00:02:34 -06:00
Brian Roberts ad78f8686c
Merge pull request #932 from Azaezel/alpha402/LevelLoadInjection
adds a mechanism to inject additional steps into mission loading
2022-12-18 11:05:09 -06:00
Brian Roberts 7d02eea6e4
Merge pull request #938 from Areloch/OptionsAndRemappingFixes
Misc fixes for options and key remapping
2022-12-16 01:26:12 -06:00
Areloch f2585fea4d Fixes handling of click/activation events on keybind options ctrls so clicking on it at all activates it, instead of needing to click on the button image specifically
Adjust the scaling of the options rows to be a consistent 50/50 divide between the options name and the actual options values to make the layout and scaling consistent
Fixes key remapping behavior to work properly
Added SubHeader text gui profile that is centered
Made the remapping gui control be stylistically consistent to messageboxes
2022-12-16 00:35:16 -06:00
Brian Roberts d8b2ffbce0
Merge pull request #933 from Azaezel/alpha402/bloomBashing
bloom operates off of color>1.0. adjust defaults to suit
2022-12-15 02:33:12 -06:00
Brian Roberts 7c90f6e680
Merge pull request #937 from Azaezel/alpha402/rtTrouble
fix bad rtParams refrence
2022-12-15 02:32:41 -06:00