Brian Roberts
cc3c2c53ae
Merge pull request #1023 from Azaezel/alpha41/mInvLerp
...
inverse lerp function
2023-05-22 12:08:17 -05:00
AzaezelX
c5afb407db
inverse lerp function
2023-05-21 12:10:33 -05:00
AzaezelX
a03586a5fe
account for null dumpmatix captions
2023-05-18 10:19:30 -05:00
Brian Roberts
a6f03897ed
Merge pull request #1016 from Azaezel/alpha41/mangledMath
...
clean up math varsize complaints
2023-05-08 21:28:49 -05:00
AzaezelX
e386a360ca
more arithmetic overflow warns
...
(cherry picked from commit 3974775b9c6bc49fba7295dcdd35e8f2cc06a0c9)
2023-05-01 10:43:11 -05:00
AzaezelX
0ce2da3a23
clean up math varsize complaints
2023-04-27 16:10:04 -05:00
AzaezelX
aa02e48c8d
add safeties for enum math across define boundaries
2023-04-26 22:27:35 -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
ace18d0246
layout consistency pass pt 2 -place shapebase inheriting initpersistfields up top so the child layout appends to the parent
2023-01-24 19:30:09 -06:00
Robert MacGregor
c687c0d23a
* BugFix: Remove unused 3DNow! extensions and broken SSE extensions.
2022-05-24 20:39:34 -04:00
AzaezelX
b795776b23
requested feature: large number display
...
origional author: Peter Simard
2022-04-17 13:03:44 -05:00
AzaezelX
540e82b95c
template mixins need this-> specified
2022-02-14 19:50:37 -06:00
JeffR
a0f8b29da7
Improves logical checks for the default value so it's more sane and stable
...
Allows creation of polyhedrons via constructor with a origin and vector format, allowing to have default polyhedron values on triggers and physical zones
2022-02-14 01:07:39 -06:00
Robert MacGregor
1b6b803a20
* BugFix: Clear a lot of warnings and correct a few actual programming errors along the way.
2021-10-04 20:04:21 -04:00
Areloch
c5d5a91356
Add handling to RotationF's addRotation function to ensure formatted return
2021-09-28 18:17:49 -05:00
AzaezelX
b7b4ced8d6
adds binary to decimal and vice versa methods
2021-04-02 14:08:26 -05:00
Lukas Aldershaab
9c4191702c
Properly specify type of console types with a different native type
2020-11-15 21:32:29 +01:00
Lukas Joergensen
b76a3fa508
Correct name of EaseF param in struct EngineAPI export
2020-11-15 21:30:45 +01:00
Lukas Joergensen
a241d27b58
Expand EngineAPI type definitions
2020-11-15 21:30:45 +01:00
Lukas Aldershaab
973fd44c6a
Profile editor for the meshRoad object
...
credit to Ryan Mounts (RDM)
found originally at http://www.garagegames.com/community/forums/viewthread/105391
2020-10-04 00:19:43 +02:00
Areloch
8956559bfd
Various misc. tweaks and fixes based on static code analysis to minimize/fix memleaks, crashes, or other performance impacting code.
2020-09-19 18:25:10 -05:00
Areloch
247c0eb34a
Moves the delta-based rounding function Verve used up into the engine so it wouldn't override the regular mRound function. Now is mRoundDelta.
2020-07-18 02:53:34 -05:00
AzaezelX
ebb7ed1b78
uninitialized variables-math
2020-05-11 16:17:40 -05:00
AzaezelX
022b87cac2
from user Ewyncat: adds invcameratrans, cameratoscrren, and screentocamera postfx and shader matrix interfaces.
...
also a bit of backend work to normalize those later once we've proof-of-concepted the calcs
2019-09-06 14:25:17 -05:00
AzaezelX
dd1470202d
Merge branch 'development' of https://github.com/GarageGames/Torque3D into PBR_ProbeArrayGLWIP
...
# Conflicts:
# Engine/source/gfx/D3D11/gfxD3D11Device.cpp
# Engine/source/lighting/lightManager.cpp
# Templates/Full/game/levels/Empty Room.mis
# Templates/Full/game/levels/Empty Terrain.mis
2019-05-01 23:18:31 -05:00
suncaller
265e64f6fc
Clean up MSVC warning [C4305]: truncation from 'double' to 'F32'
2019-02-02 23:07:44 -05:00
Azaezel
1eed979a9c
Merge branch 'method_Unmangle' into PBR_PR
2018-12-12 14:54:22 -06:00
Areloch
6cf0c9e360
Merge branch 'development' into EngineAPI-Refactor
2018-12-09 14:48:50 -06:00
OTHGMars
2ed30ffeae
Adds Clamp to QuatF::dot()
...
Clamps output of QuatF::dot() to [-1, 1].
2018-09-24 18:56:46 -04:00
Areloch
b4a1d18f42
Core implementation of Physical Based Rendering.
2018-09-15 20:19:57 -05:00
Azaezel
b0b2b1314a
member var conversion error that oddly didn't crop up till mac testing.
2018-07-04 18:26:14 -05:00
Azaezel
13334b4d5c
Merge branch 'development' of https://github.com/GarageGames/Torque3D into memberMess
...
# Conflicts:
# Engine/source/sfx/sfxSystem.cpp
2018-04-23 10:08:14 -05:00
Lukas Joergensen
76908eae3c
Eliminate DefineConsoleMethod
2018-04-17 21:01:50 +02:00
Lukas Joergensen
e718841467
Eliminate DefineConsoleFunction
2018-04-17 20:54:08 +02:00
Areloch
bc1b506205
Merge pull request #2146 from Azaezel/specializationShenanigans
...
changes find, swap, for_each, and delete_pointer from global to t3d namespace
2018-04-17 03:02:03 -05:00
Azaezel
c386e90348
further membervar issue with PolyhedronFixedVectorData template found with clang.
2018-04-01 17:48:10 -05:00
Azaezel
cffc9d3afe
doubleup on Q defintion for baycentric coord calcs
2018-03-14 17:38:44 -05:00
Azaezel
300d9eefbf
ease member vars tagged as member vars
2018-03-14 15:45:45 -05:00
Azaezel
d979cf9d2d
PolyhedronVectorData core membervar cleanups
2018-03-14 15:18:00 -05:00
Azaezel
d57287cf75
adds an mWrap and mWrapF method for cycling values to within a given range.
...
examples of usage would be say, keeping a rotation within 360 degrees, or hitting a tile boundary and resetting the offset
2018-01-16 13:40:09 -06:00
Azaezel
01f0d5cfca
tAlgorythm fed namespace T3D for better library interoperability. resulted in the need to specify usage in... a few places.
2017-12-27 22:57:47 -06:00
Areloch
0fde97f254
Corrects the documentation.
2017-10-17 21:50:53 -05:00
Areloch
1407f3953c
Tweaks the asMatrixF for RotationF, as well as exposes additional console methods for rotation manipulation
2017-10-15 03:41:26 -05:00
rextimmy
54970b0ad6
Corrects OpenGL projection matrix
...
Corrects OpenGL glPolygonOffset values
Corrects Direct3D11 DepthBias values
2017-08-25 13:13:47 +10:00
Areloch
c2c34cdd5d
Adds the getSignedAngleBetweenVectors function, which is like the existing getAngleBetweenVectors, but will returned a signed angle value, which helps to inform the full 360 angle, rather than the 'nearest 180'.
2017-02-19 23:00:54 -06:00
rextimmy
11532e10cc
Add log2 function to mMathFn.h
2017-01-16 15:35:25 +10:00
Areloch
31ed509c1c
Adds some helpful utility math functions.
2016-11-28 22:42:29 -06:00
Areloch
1a851f167d
Merge pull request #1807 from Azaezel/boxBaseBorked
...
clang catch: boxBase's getPlanePointIndex method wasn't returning values in all cases.
2016-10-24 01:28:25 -05:00
Areloch
6cc7bcd2e0
Merge pull request #1805 from Azaezel/startRightEndRight
...
clang: constructor initialization order
2016-10-19 08:39:12 -05:00
Areloch
65f25cb0e6
Merge pull request #1796 from Azaezel/notSoEasy
...
retooled circular ease methods
2016-10-18 22:41:31 -05:00
Areloch
121d65215e
Tweaks any enums that use uint_max values so that they have hard types to avoid any compiler kerfluffles with C++11 value narrowing, specifically pertaining to clang.
2016-10-17 01:00:12 -05:00
Azaezel
8d4dd14144
clang catch: boxBase's getPlanePointIndex method wasn't returning values in all cases.
...
assertfatal doesn't do anything in release builds, so also added a failure enum.
2016-10-16 15:31:56 -05:00
Azaezel
fbfd3ed8ed
clang: constructor initialization order
...
while not a major issue per-se, the sheer number of times the engine has to jump back in memory and backfill data in a given class can add up. First run of... many.,
2016-10-14 18:16:55 -05:00
Azaezel
2f5321ddfb
tabs/space + transcription typofix
2016-10-14 13:40:53 -05:00
Azaezel
d50762cbef
self modifying variables made clang unhappy. retooled circular ease methods
...
basis: http://gizma.com/easing/#circ1
2016-10-14 13:00:27 -05:00
RexTimmy
dd64004eaf
MacOS platform support.
2016-09-28 11:09:48 +10:00
Areloch
7e4095d610
Merge pull request #1688 from jamesu/dx11_openvr_pr
...
Basic OpenVR Support code
2016-09-14 00:24:20 -05:00
James Urquhart
c6d2456a7c
Fix lens flares in VR
2016-09-11 22:42:42 +01:00
James Urquhart
14628e3937
Fix setNearFarDist for off-center projections
2016-09-11 22:42:42 +01:00
Marc Chapman
00cf5ab577
Added x64 check for SSE Intrinsic functions
2016-09-02 05:10:46 +01:00
Duion
1a405264c2
changes "Rotation" instead of "rotation" #1702
...
Changes back "Rotation =" values in mission files to the old "rotation =" since all other values are also lowercase.
2016-07-31 19:40:06 +02:00
Areloch
8a7159c00e
Fixes the drawUtil rendering of polyhedrons by correcting the index ordering to work with triangleStrip as opposed to Fan.
2016-05-22 23:51:58 -05:00
Areloch
65f51a89d8
Merge pull request #1595 from Areloch/EpoxyProjectMatrixFix
...
Rolls back OGL Projection correction.
2016-05-20 00:23:45 -05:00
Areloch
c1f02c05e1
Adds some console methods to the non-class namespace Rotation for some convenient utility functions for dealing with rotations.
2016-05-16 16:03:24 -05:00
Areloch
8568ed19be
Merge branch 'RotationFPR_Cleaned' of https://github.com/Areloch/Torque3D into development
2016-05-16 15:49:54 -05:00
James Urquhart
49a735e051
Fix axis check in Box3F::extend method
2016-05-13 12:09:40 +01:00
Areloch
1b47bdd972
Git apparently forgot to commit ALL the changes.
2016-05-12 23:49:06 -05:00
Areloch
383d27f2ec
The class is designed as a general-purpose rotation/orientation class to make it easy to work with rotations and swap between math types as easily as possible.
2016-05-12 00:45:16 -05:00
Areloch
bc9033da2e
Rolls back OGL Projection correction.
...
Epoxy looks to handle the projection depth range so it behaves more like D3D, so this change was doubling up and causing problems.
2016-05-06 16:45:18 -05:00
Azaezel
223e9a8264
corrects projection matricies for opengl
2016-04-05 20:36:13 -05:00
Anis A. Hireche
b3662d801a
Merge remote-tracking branch 'refs/remotes/origin/development' into pr/1334
...
# Conflicts resolved:
# Engine/source/console/consoleFunctions.cpp
2016-02-26 21:58:01 +01:00
Anis
794f1b9536
Merge pull request #1532 from GarageGames/pr/1143
...
[CLONE] More consolefunctions #1143
2016-02-26 18:57:49 +01:00
Anis A. Hireche
0fb62de4b8
restored old signature of mRound as it's used from scripts.
2016-02-26 18:41:29 +01:00
Azaezel
7a60056365
Merge branch 'ColorPickerAdvanced' of https://github.com/Azaezel/Torque3D into ColorPickerAdvanced
2016-02-21 16:07:51 -06:00
Anis
2a1f81d3aa
removed tabs
2016-02-21 22:48:10 +01:00
Azaezel
ca2ffea6cd
Merge branch 'development' of https://github.com/GarageGames/Torque3D into ColorPickerAdvanced
2016-02-21 15:30:54 -06:00
Anis
664f6c0639
Merge pull request #1518 from Azaezel/mathUtilsMangle
...
http://stackoverflow.com/questions/8461832/explicit-qualification-in- …
2016-02-16 19:19:19 +01:00
Azaezel
f8c4dd9d1d
http://stackoverflow.com/questions/8461832/explicit-qualification-in-declaration
2016-02-15 19:08:03 -06:00
Anis
168a2fe029
Merge pull request #1419 from irei1as/patch-1
...
mQuat.h change to fix QuatF::angleBetween
2016-02-16 00:22:39 +01:00
irei1as
6891d348af
Update mQuat.h
2016-02-15 18:50:18 +01:00
irei1as
39613c0d87
Optimized
...
You're right. If the normalized quaternions are in a variable or something for normal uses it's just a waste to force the change hidden inside again.
2016-02-15 18:43:56 +01:00
Areloch
6235f63deb
Merge pull request #1395 from Azaezel/AssertDivNULL
...
credit to @MusicMonkey5555 for spotting. asserts for Div/NULLs
2016-01-16 17:53:00 -06:00
Areloch
1a009d6dd3
Merge pull request #1443 from Areloch/TAM_Implementation
...
TAML, Assets and Modules implementation
2015-11-12 23:54:27 -06:00
Azaezel
2753f562e8
shadow caching
...
SPECIAL NOTE: highly suggest https://github.com/GarageGames/Torque3D/pull/1441 or a variation thereof to prevent debug spew and false-postives for occlusion results.
With significant research, development and prototyping assistance from both @andr3wmac (shaders and partial hook work), and @LuisAntonRebollo (additional culling)
System operates as follows:
1) materials are given an additional castDynamicShadows boolean entry. (Default at time of writing is true by request. Personal usage at time of writing defaults to false. value is default-initialized in materialDefinition.cpp. script/gui exposed)
2) lights are given a staticRefreshFreq and dynamicRefreshFreq (in milliseconds). script/gui exposed
3) materials are (effectively) sorted into dynamic and static shadowmap render lists based on flag. (see shadowMapPass.cpp)
4) initial shadowmaps are generated for each light and 'list'.
5) as each refreshFreq times out, the relevant shadowmap for a given light is refreshed.
Special notes:
dynamicRefreshFreq for all lights is set to a (script exposed) 8MS refresh timer.
StaticRefreshFreq for the lions share of lights defaults to 250 MS (1/4 of a second)
scattersky's embedded light, which is intended to operate in a mobile manner, defaults to 8
to reiterate, these are all customizable per-light via script/inspector gui in the case of alternate project needs.
2015-10-13 18:12:19 -05:00
Areloch
7a3b40a86d
Initial Implementation of the Taml, Asset and Modules systems.
...
Only has example and shape assets currently.
2015-10-13 15:19:36 -05:00
irei1as
1733ecc315
Updated normalize()
...
It seems normalize() already changes the quaternion so the asignation is not needed.
2015-09-29 16:13:01 +02:00
irei1as
3630f97ab1
mQuat.h change to fix QuatF::angleBetween
...
The old version doesn't have that 2.0f in the return that seems to be needed.
Also added normalizing inside so it can be used for not-normalized quaternions too.
2015-09-22 19:37:42 +02:00
Azaezel
58ae331609
U32 MRandomLCG::randI() was using longs
...
32 and 64 bit windows can handle that. 64 bit linux no likey mixing longs and ints.
2015-09-09 15:22:19 -05:00
Areloch
bedc79aacb
Merges in Monkey's fixes PR with a resolution for a conflict
2015-09-03 22:58:57 -05:00
Azaezel
4d3db61e94
credit to @MusicMonkey5555 for spotting. asserts for Div/NULLs with mutli-element classes
...
Also includes his magnitude and normalize safe alts
2015-08-12 03:41:49 -05:00
Azaezel
555610f69f
Addresses roughly half of the C4189 errors though the following methodologies:
...
1) truly unused vars removed
2) vars leading to remmed out code for debugging remmed in turn.
left out:
vars in macros.
2015-07-29 03:03:27 -05:00
Daniel Buckmaster
e65afa95a9
Merge pull request #1354 from Areloch/PVS_Cleanup_mEase
...
Cleanup of ease functions operations.
2015-07-25 13:48:46 +10:00
Daniel Buckmaster
e10b421641
C4458 declaration hides class member.
...
There are plenty more of these, but they should be fixed by revising the
names of members to start with m, instead of fixing the local violations.
There was a previous PR for that but it went badly. Will retry again one
day.
2015-07-23 20:13:04 +10:00
Areloch
2f94ab0637
Issue found with PVS-Studio:
...
Many instances of a variable being modified inside of a complex operation. This could lead to unintended results depending on the whims of the compiler.
Resolved by restructuring the functions to modify the variable first, then do the rest of the operation.
2015-07-13 23:45:55 -05:00
Lopuska
03109c9d6d
Color Picker
2015-06-24 20:36:30 -05:00
Daniel Buckmaster
39f0e269d6
Merge pull request #1328 from GarageGames/release-3.7
...
Release 3.7
2015-06-24 19:00:57 +10:00
James Urquhart
3a457749ec
Oculus VR DK2 Support
...
- Updated to work with 0.5.x SDK
- Uses Oculus Rendering rather than PostFX
- Stereo rendering refactored so more rendering info is grabbed from the DisplayDevice
- Implements an Offscreen Canvas for in-game gui with oculus
- Message dialogs and metrics display can now go to the OffScreen Canvas (if oculus demo is setup correctly)
2015-05-06 23:09:51 +01:00
Azaezel
f8d41a2b96
Merge pull request #1283 from Azaezel/randiiiiiii
...
corrects getrandom to behave as documented.
2015-04-26 11:27:03 +10:00
Azaezel
da706ccb61
proper fix for https://github.com/GarageGames/Torque3D/issues/1197
...
courtesy @LuisAntonRebollo
2015-02-15 15:20:32 -06:00
Daniel Buckmaster
ec06dd78f9
Fix unit tests.
2015-02-14 14:50:32 +11:00