Commit graph

345 commits

Author SHA1 Message Date
Samuel Skiff
cde584253d OpenGL fixes for HDR post effect 2023-07-07 00:51:11 -05: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
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
AzaezelX
fd02044d20 cut control chars for font population
zip referenceablilty for font files
2023-03-17 23:02:27 -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
AzaezelX
9a5e0829ff misc asset bit cleanups
pt1) camera_shape misconversion leftovers
2023-03-07 15:15:12 -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
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
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
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
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
AzaezelX
4deae92c48 fix bad rtParams refrence 2022-12-14 23:07:35 -06:00
AzaezelX
29e06fc327 refactor, with the following wrappers to keep in mind:
Core_ClientServer.clearLoadStatus();
Core_ClientServer.inishMapLoad();
Core_ClientServer.FailMapLoad( %moduleName, %isFine);
Of special note: the postevent method must only take one entry, so we store off  Core_ClientServer.failedModuleName = %moduleName; priorto triggering the event so that the failing module can be reported.
2022-12-12 14:07:52 -06:00
AzaezelX
78cb2e1d80 adds a fail state method+event to the load chain
at time of writing:
    Core_ClientServer.GetEventManager().postEvent( "mapLoadFail", false );
kicks players and closes the server
    Core_ClientServer.GetEventManager().postEvent( "mapLoadFail", false );
proceeds to continue loading reguardless
2022-12-12 13:02:11 -06:00
AzaezelX
1eb59e77e8 bloom operates off of color>1.0. adjust defaults to suit 2022-12-08 18:36:58 -06:00
AzaezelX
2e47e7d823 adds a mechanism to inject additional steps into mission loading
leverages the EventManager and ScriptMsgListener() classes to set up a third mission load stage triggered by the following flow:
function <module>::onLoadMap(%this) starts an execution chain that leads to <module>::finishMapLoad()
each  <module>::finishMapLoad() MUST contain the line
     Core_ClientServer.GetEventManager().postEvent( "mapLoadComplete" );
once all have called back that they have finished thier tasks, players finish loading into a hosted mission
2022-12-08 14:34:50 -06:00
Areloch
44c894d335 Adds utility function to clean up and standardize the remapping handling for keybinds
Adds sanity check so if no remappable binds are found for an actionMap, it isn't listed in the controls menu
Updates ExampleModule's keybinds to use new utility function
2022-12-06 00:16:13 -06:00
Brian Roberts
120691abee
Merge pull request #923 from Azaezel/alpha402/puppies
adds wetness
2022-11-29 12:33:21 -06:00
AzaezelX
af1a93f2e1 bloom fix fallback
-in case a better solution doesn't come along by tuesday
2022-11-27 23:01:36 -06:00
AzaezelX
d23ee397e6 adds wetness
cliffsnotes:
   $Core::WetnessTexture = "core/rendering/images/wetMap.png"; //for the influence degree map
probes/skylight have a new canDamp boolean, set to off for probes, on for skylight by default.
:levelinfo has a dampness multiplier (0-1)
kicked up numTextures from 8 to 16 for shaderdata and postfx since that hit the 8 texture-in prior limit, and we've already adopted apis that can handle the higher count
2022-11-21 21:12:23 -06:00
AzaezelX
22f9d54c0b from @GoldenThumbs: HDR editor bloom fix 2022-11-08 10:29:48 -06:00
AzaezelX
9f5824ca3e use default (rue) case for findModules in callonmodules 2022-10-30 14:07:33 -05:00
AzaezelX
b48d462fbe debug option for checking module order 2022-10-29 12:11:54 -05:00
Brian Roberts
ea7ca63301
Merge pull request #908 from Azaezel/alpha401/dediserverfixes
dedicated server cleanups
2022-10-01 14:19:42 -05:00
AzaezelX
4f00c48ff0 sfx bypass doe dediservers. 2022-10-01 01:41:24 -05:00
vvv-yeaf
db08474827 Merge branch 'development' of https://github.com/vvv-yeaf/Torque3D into development 2022-09-29 09:31:41 -03:00
vvv-yeaf
6c51440fe1 console font size oversight 2022-09-29 09:31:16 -03:00
AzaezelX
8a71a6141f correct the %dedicated var in function parseArgs()
-it's supposed to be a global like the rest.
also by request, added a help.txt file dump to the -help cli arg
2022-09-29 00:51:44 -05:00
AzaezelX
f419227d30 conform gl to dx 2022-09-22 13:04:42 -05:00
Brian Roberts
8895dc6549
Merge pull request #903 from vvv-yeaf/development
Fix for Linear Tonemapper color space
2022-09-22 12:58:30 -05:00
vvv-yeaf
5fedd9b857 Fix for Linear Tonemapper color space 2022-09-22 14:26:28 -03:00
Brian Roberts
21479e80e5
Merge pull request #902 from vvv-yeaf/development
Editor GUI Update pt.2
2022-09-20 20:48:17 -05:00
vvv-yeaf
27b488f801 Merge branch 'development' of https://github.com/vvv-yeaf/Torque3D into development 2022-09-20 22:31:26 -03:00
vvv-yeaf
3d41ac7d79 Editor GUI Update PT.2
- Console color scheme + increased font size
- Changed bar extend
- fixed highlights
2022-09-20 21:59:05 -03:00
Brian Roberts
3f78e90870
Merge pull request #901 from Azaezel/alpha401/smaaSlippage
fix smaa backbuffer  colorspace
2022-09-20 19:28:58 -05:00
AzaezelX
b54a03d388 fix smaa backbuffer colorspace
as we do not at time of writing have a specifier for what colorspace to load a backbuffer in, we leverage the old toGamma and toLinear macros to upshift the backbuffer for lumina edge detection via a clone
2022-09-20 19:12:21 -05:00
AzaezelX
752f94b11e ligh shader final review
1) prunes extraneous garbage variables from GFXStateBlockData
2) re-orgs texture slots for lights as follows to better support stateblock slots:
0-norm|depth buffer
1- shadowmap
2-taprotationtex
3-colorbuffer
4-maitinfobuffer
5-cookiemap (AL_ConvexLightState only)
2022-09-20 17:01:42 -05:00
Areloch
f93f7cce21 Properly saved edit for glsl file to remove macro define 2022-09-16 17:54:34 -05:00