Commit graph

29 commits

Author SHA1 Message Date
marauder2k7 9af22dc302 BUG: Probe baking look at matrix was wrong
Multiple fixes in files sent by Az but matrix look at function was creating a view matrix that messed up the capture.
Look at function for matrix now returns the correct matrix and bakes looking better
2025-01-07 15:44:19 +00:00
marauder2k7 f288ffccba cubemap baking fix
the key part of this issue was to invert the order we were baking the faces. Not much of a fix but it works better than before need to get a proper fix implement
the way the issue is copying X+ into every other face but isnt doing it in the reverse order means the rtv for face 0 must be being replicated into all other faces.
2024-12-04 21:57:32 +00:00
marauder2k7 699fa5ef77 Update mMatrix.h
invertTo should always just be const
return loop to * operator, explicit will not allow for scaling of rows and cols
2024-08-01 03:33:07 +01:00
marauder2k7 b5e729c179 Update mMatrix.h
add default destructor
2024-07-31 19:02:23 +01:00
marauder2k7 219792cc30 Update mMatrix.h
returning identity no longer necessary as fullinverse is its own algo
2024-07-31 18:54:22 +01:00
marauder2k7 165a2bea01 fix
fix invertTo function
unitTest to make sure matrix calling invertTo does not get changed.
reimplemented gauss jordan.
2024-07-31 18:52:18 +01:00
marauder2k7 ab4b4cbf96 cramer for inverse
added #if block around inverse methods to track down shadow bug

uses old inverse method as default for now.
2024-07-31 17:32:00 +01:00
marauder2k7 4078f3ad4e inverse fixes
further tests showed issues with inverse function, now to better match what was originally happening, the inverse only happens on the 3x3 portion of the matrix and translation is handled separately.

Frustum test now uses more real world examples of a projection matrix. Test for the full unproject stack of math to test its result as unproject was where the issue about inverse originated
2024-07-30 17:54:16 +01:00
marauder2k7 f96e044d89 unit tests and fixes
implemented the rest of the tests
euler single dimension angle tests now pass, missed 1.0f in z
2024-07-30 13:00:32 +01:00
marauder2k7 d03851958d more fixes
more unit tests revealed more discrepancies fixes applied.
2024-07-30 08:30:42 +01:00
marauder2k7 a5de2d9add tests
added more unit tests to match values between templated and matrix

tests showed discrepancies in affineInverse, fixed the function to return what is expected.
2024-07-30 07:20:57 +01:00
marauder2k7 8c19f6d8ca inverse function
fixed inverse function, was not returning correctly.
2024-07-29 21:50:33 +01:00
marauder2k7 54bb31c8bc Update mMatrix.h
bracket lines
change functions to match mmath_c to figure out where the issue is.
2024-07-29 17:24:23 +01:00
marauder2k7 75c5a0919b Update mMatrix.h
silence issues from macos clang
2024-07-29 16:39:08 +01:00
marauder2k7 2fa15191ae Update mMatrix.h
most working example
2024-07-28 20:40:26 +01:00
marauder2k7 504b549ac0 Update mMatrix.h 2024-07-28 19:38:02 +01:00
marauder2k7 c61d36b799 closest
backup closest working example, no errors or warnings from compile, matrices arent correct though yet.
2024-07-28 19:36:07 +01:00
marauder2k7 888332a85c rest of the implementation
apparently templated classes need all functions to be inline, otherwise unresolved symbols
macro for switching between matrixf and templated
few functions that were missed
2024-07-28 14:35:34 +01:00
marauder2k7 8f8cc32636 normalize and affineInverse
added functions for normalize and affineInverse
2024-07-28 11:54:44 +01:00
marauder2k7 2cee5f7e10 mul and operators
add mul functions and operators
code conformity changes
2024-07-28 09:02:49 +01:00
marauder2k7 02b5e85f61 implement struct example 2024-07-28 07:04:23 +01:00
marauder2k7 0f02c878ef Update mMatrix.h
setColumn
setRow
isIdentity

only a few functions left
2024-07-27 23:06:59 +01:00
marauder2k7 dd25f1c58a backup
initial implemenation of templated classes :
Matrix class first.
2024-07-27 15:29:54 +01:00
Areloch da06fc1d96 * Fixes description for a few Scene methods
* Adds method to Scene to delete dynamic objects in the scene
* Add getNodeTransform to ShapeBase
* Add sanity check to AFX ea_update function to avoid divide by zero
* Adds ability to set color mul on GuiBitmapBorderCtrl like bitmapCtrl
* MatrixF utilty functions/operators
* Add ability to ignore an object in the containerBoxEmpty method call
* Adds some better initialization/sanity handling for resetWorldBox and resetRenderWorldBox for SceneObject
2024-02-03 23:42:26 -06: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
Lukas Joergensen a241d27b58 Expand EngineAPI type definitions 2020-11-15 21:30:45 +01:00
AzaezelX ebb7ed1b78 uninitialized variables-math 2020-05-11 16:17:40 -05: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
DavidWyand-GG 7dbfe6994d Engine directory for ticket #1 2012-09-19 11:15:01 -04:00