Commit graph

4170 commits

Author SHA1 Message Date
AzaezelX e8210c8447 Merge branch 'development' of https://github.com/TorqueGameEngines/Torque3D into alpha41/scriptStability 2024-01-02 18:57:27 -06:00
AzaezelX b366ff9b1c script stabilization tweaks
Con::EvalResult CodeBlock::exec -
 objectCreationStackIndex needs to be signed as we test if it goes sub-zero
ConsoleValue Namespace::Entry::execute -
compiler yells about returning a temp via std::move
bool TorqueScriptRuntime::executeFile -
report the name of the dso output file, not the source scxript input file
2024-01-02 18:15:21 -06:00
Brian Roberts f1a879ecac
Merge pull request #1170 from Azaezel/alpha41/reloadReDunceAncy
clean up malformed stream conversion
2024-01-01 20:43:17 -06:00
AzaezelX 96f001b0e6 clean up malformed stream conversion
reinterpret_cast was misaligning the pointer. just use the already leveraged dynamic_cast
2024-01-01 20:42:43 -06:00
Brian Roberts 51426a3575
Merge pull request #1148 from marauder2k9-torque/STBImageLoading-PR
Stb image loading
2024-01-01 08:48:46 -06:00
Brian Roberts 2a577d19eb
Merge pull request #1150 from Azaezel/classPrototypingPresenter
Class prototyping presenter
2024-01-01 08:46:45 -06:00
Brian Roberts bede5244e3
Merge pull request #1167 from Azaezel/alpha41/borderBashing
expose guiwindowctrl resize margin to script
2024-01-01 08:46:05 -06:00
AzaezelX 93abe5a49c cancel out momentums during updateforces if disablemove
increment forces on a per-contact basis, not a batch basis
2023-12-30 16:16:29 -06:00
AzaezelX 905139f500 make const RectI GuiWindowCtrl::getClientRect() respect ResizeMargin for sub elements 2023-12-29 12:55:28 -06:00
AzaezelX ea63a7448e expose guiwindowctrl resize margin to script
also up the default to 5 pixels
2023-12-29 12:15:30 -06:00
AzaezelX e7b3a95f89 restitution sumation review: average, don't multiply 2023-12-29 00:26:26 -06:00
AzaezelX f3af564dee clean out resolvecontacts entirely 2023-12-28 21:28:23 -06:00
AzaezelX 783a757427 filter out self-collisions 2023-12-28 21:24:34 -06:00
AzaezelX 3c7d2b1b6a physics notes
based on https://github.com/TorqueGameEngines/Torque3D/pull/1165 and after further talks with @AtomicWalrus:
use the massbox or bounds box based  mRigid.setObjectInertia method
to reduce recirulating, combine resolvecollision and resolvecontacts
clamp seperation force for contact resolution
gravity normalized to earth standard (9.8,not 20)
take delta-time into account *once* for kinetic energy vs gravity rest checks
and for debug purposes, expose mRigid.atRest to the inspector to see if it's truly at reast or grinding calcs to minimal effect
2023-12-28 21:04:16 -06:00
AzaezelX 5791ee68a7 adds a getFieldCountNS and getFieldNS method to allow field lookup by namespace 2023-12-24 03:15:56 -06:00
AzaezelX b03cb4c49b add a getMethodSigsNS
takes a namespace as an explici value fed to it as oposed to inferring from an passed object
2023-12-24 02:46:26 -06:00
AzaezelX 428f22d728 Merge branch 'development' of https://github.com/TorqueGameEngines/Torque3D into classPrototypingPresenter 2023-12-23 21:29:17 -06:00
Areloch 4c58a3601f
Merge pull request #1163 from Azaezel/alpha41/filtefuntimeztoo
filter inspector buttons out of the following:
2023-12-23 01:34:33 -06:00
AzaezelX 78147821a0 filter inspector buttons out of the following:
PersistenceManager::updateObject
SimObject::writeFields
SimObject::assignFieldsFrom
DefineEngineMethod( SimObject, getFieldCount, S32, (),,
DefineEngineMethod( SimObject, getField, const char*, ( S32 index ),,
SimObject::writeObject

do not do so for
SimObject::setDataField
DefineEngineMethod( SimObject, dump, void, ( bool detailed ), ( false ),
2023-12-19 23:29:46 -06:00
AzaezelX 1f837304ea theoratexture can't downsample
so don't.
this stops $pref::Video::textureReductionLevel from crashing the applicaton in that scenario
2023-12-19 13:15:12 -06:00
AzaezelX ea01bf57ed fix theora inclusion and macro set 2023-12-18 15:10:35 -06:00
Brian Roberts 385143f9e5
Merge pull request #1158 from Azaezel/alpha41/sillySun
fix sun corona
2023-12-12 13:47:54 -06:00
AzaezelX d54de2a349 fix sun corona
by locking in the material feature variation to ensure it uses vertex lighting due to colorization, as well as a few other switches, and applying an explicit vs default stateblock blend
do similar with moon so you don't have to set that to explicitly translucent either
2023-12-12 12:49:05 -06:00
marauder2k7 89a8a4d190 Merge remote-tracking branch 'upstream/development' into STBImageLoading-PR 2023-12-08 04:29:41 +00:00
Brian Roberts b56626e8ca
Merge pull request #1156 from Azaezel/alpha41/canHasCapturz
fix singular pobe capture
2023-12-06 21:23:21 -06:00
AzaezelX 62e23d10b4 fix singular pobe capture 2023-12-06 21:06:26 -06:00
AzaezelX d16f2df63a make cubic reflectors respect the reflectordesc->detailAdjust 2023-12-06 18:23:31 -06:00
Brian Roberts 674a7a0212
Merge pull request #1153 from marauder2k9-torque/CMakeSuppressThirdPartyWarnings
Suppress 3rdParty Warnings
2023-12-05 23:51:32 -06:00
Brian Roberts c1eaa73ee6
Merge pull request #1151 from Azaezel/alpha41/fixCaptureFlag
probe capture fixes
2023-12-05 23:20:58 -06:00
Brian Roberts 378c5481ee
Merge pull request #1146 from Azaezel/alpha41/guiObjectViewObjections
Alpha41/gui object view objections
2023-12-05 23:20:21 -06:00
marauder2k7 c6b8a59de1 Update CMakeLists.txt 2023-12-06 04:58:08 +00:00
Brian Roberts 32c7f2c30a
Merge pull request #1152 from Azaezel/achingArches
fix archlinux compilation issue
2023-12-05 21:56:53 -06:00
AzaezelX ff67efbb19 fix archlinux compilation issue 2023-12-05 21:56:11 -06:00
AzaezelX 8c38448428 probe capture fixes
review of per and post bake protocols showed that the CAPTURING shader macro was not being properly recompiled in. as opengl was not playing nice with a simple batch shader recompilation for all effected shaders, a full lightmanager restart is at time of writing required. once we have a proper globally cached scene structure stored off GPU side, we'll want to change  GFXShader::addGlobalMacro("CAPTURING", String("1")); on over to dirtying that value in the cached buffer via setting a shader global uniform
review of prefilter examples shows a fixed sample count of 1024 across multiple implementations, so we'll use the standard barring further research into where that number is comming from for a scalar approach
review of gl shaders shows a doubleup in compiled state testing, so slimmed that down and added additional debugging reports
2023-12-05 13:32:03 -06:00
marauder2k7 5f8c59a8df MacOSX fixes 2023-12-04 00:16:07 +00:00
marauder2k7 c39461c3fb Merge remote-tracking branch 'upstream/development' into STBImageLoading-PR 2023-12-03 19:32:08 +00:00
marauder2k7 962a2cffa3 Update skySphere.cpp
Skysphere doesnt render behind everything. This fix sorts that out
2023-12-03 19:28:15 +00:00
marauder2k7 a91b19d4dc Added hdr and bypass 16bit when png.
Added support for .hdr format, atm just being converted to ldr after the exposure is applied.

cleanup dds file

PNG skips 16bit altogether at the moment for textureArray issues.
2023-12-01 14:50:59 +00:00
marauder2k7 c18c14b415 Update gBitmap.h
typo
2023-11-30 15:58:41 +00:00
marauder2k7 6ed0374768 Added documentation
CompressionLevel argument now used to set jpeg quality as well. Values need to be 0-100 range for jpeg and 0-10 for png.
2023-11-30 15:57:59 +00:00
marauder2k7 870fae3e47 Update screenshot.cpp
Screenshot now works with stb: gBitmap outbuffer holds the whole image anyway so just use writeBitmap when its done.
2023-11-30 14:02:06 +00:00
marauder2k7 63682c43ec Bug fixes:
Generating image previews of image assets was failing

DDS remove redundant check for stream status.

STB requires the file to be free before being written to, move check to make sure we can open the path into gBitmap and remove FileStream checks from everywhere else.
2023-11-30 10:46:51 +00:00
marauder2k7 0b451aa7b5 Merge remote-tracking branch 'upstream/development' into STBImageLoading-PR 2023-11-30 09:09:57 +00:00
marauder2k7 108ba34c08 STBImage
STB used for loading and writing images.
2023-11-30 09:09:13 +00:00
AzaezelX 045c15fd26 Merge branch 'development' of https://github.com/TorqueGameEngines/Torque3D into classPrototypingPresenter 2023-11-29 14:16:37 -06:00
AzaezelX dc81e4e267 guiobjectview crash and compatibility fixes
rev1 wipwork
2023-11-29 14:04:20 -06:00
Brian Roberts f63371432e
Merge pull request #1141 from Azaezel/alpha41/nonobutton
filter out component inspector button callbacks
2023-11-29 02:27:04 -06:00
AzaezelX c1e81e0327 stop spamming the console every spawnObject call
assuming there was a spawnscript, the eval was also dumping that to the log
2023-11-27 21:10:39 -06:00
AzaezelX 113b3324a8 filter out component inspector button callbacks
specifically targets the undo manager via avoiding onInspectorFieldModified et al tripping on clicks
2023-11-27 19:45:15 -06:00
AzaezelX c10808873d hook PrototypeClass(%objectName) on up to inspector
fix dialog close, fix dynamic variable gui element alignment
2023-11-24 15:44:54 -06:00