sfan5
d932f34693
Add core.strip_escapes() ( #16485 )
2025-09-14 23:01:43 +02:00
y5nw
cc6b56b034
Minor refactor to the Plural-Forms
parser ( #16489 )
2025-09-14 22:56:40 +02:00
Pedro Gimeno
ae97435d80
Fix set/getRotationRadians unit test
...
Gimbal lock is a situation where the pitch (the middle angle) of the Tait-Bryan angles (usually called Euler angles incorrectly) is 90 degrees. If the angles specify a rotation close to gimbal lock, the precision requirements increase significantly, beyond what a single-precision float can provide, and at exactly gimbal lock, there's a loss of information. The test didn't take this into account. Fix this by decreasing the expected precision when close to gimbal lock.
The increased error rate on ARM Macs is probably caused by lesser precision in trigonometric functions. IEC-559 does not specify any semantics for those, and while Intel typically has a precision < 1 ulp for trigonometric functions with angles < 2*pi, it's likely that ARM's precision is a bit worse.
2025-08-08 00:42:57 +02:00
Lucas OH
93dd22b901
Clean up unused Forward Declarations ( #16324 )
2025-08-02 10:07:45 +02:00
Lars Mueller
26aab6ecf2
Fix flakey matrix rotation unit test for now
2025-07-30 23:43:10 +02:00
Lars Müller
23bf50a07c
Document & extend testing for rotation conventions ( #16200 )
...
* Document Luanti rotation conventions
* Add test for setPitchYawRollRad (entity) rotation conventions
* Test and document that `vector.rotate` uses (extrinsic) Z-X-Y rotation order
2025-07-13 17:11:12 +02:00
Lucas OH
ce2380b58e
Include header files in CMake sources ( #16297 )
2025-07-12 13:23:35 +02:00
sfence
4f42b4308c
Add persistent unique identifiers for objects ( #14135 )
2025-07-09 10:40:26 +02:00
Lars Müller
61551cfc3a
Remove irr
namespace ( #16309 )
2025-07-09 10:35:52 +02:00
lhofhansl
43aad3711b
MapBlock::getData be gone ( #16292 )
...
* Remove Mapblock::getData and all its uses
* Do not leak ystride, zstride, and nodecount
2025-06-29 13:36:47 -07:00
Lars Müller
fde6384a09
Fix and clean up skeletal animation ( #15722 )
...
* Fix attachments lagging behind their parents (#14818 )
* Fix animation blending (#14817 )
* Bring back cool guy as another .x smoke test
* Add .x mesh loader unittest
* Do bounding box & matrix calculation at proper point in time
* Remove obsolete `SAnimatedMesh`
2025-06-01 23:21:35 +02:00
sfan5
6274a8dec4
Refactor MMVManip to get rid of m_loaded_blocks
2025-05-30 13:03:21 +02:00
sfan5
41651c7317
Add C++-side unit tests for MMVManip
2025-05-30 13:03:21 +02:00
sfan5
5c2599315c
Change nil-component error to deprecation warning
2025-05-28 13:29:30 +02:00
sfan5
6ca9d75f0b
Reject NaN and Inf in check_v3d() too
...
check_v2f() was already doing this
2025-05-28 13:29:30 +02:00
sfan5
ec16fb33d0
Add unit tests for Lua vector reading
2025-05-28 13:29:30 +02:00
Lars Müller
d96f5e1c76
MetaDataRef: Make set_float
preserve numbers exactly ( #16090 )
2025-05-02 21:27:00 +02:00
Lars Mueller
01e4395977
glTF: Clean up rigid animation
2025-04-26 16:15:05 +02:00
sfence
0d414c44da
Add testeditor to devtest for easier testing. ( #15206 )
...
* Add testeditor to devtest for easier testing.
Co-authored-by: SmallJoker <SmallJoker@users.noreply.github.com >
2025-04-25 05:09:23 +02:00
Lars Mueller
e1143783e5
Fix some (MSVC) compiler warnings
2025-04-20 20:49:10 +02:00
Erich Schubert
78293404c7
Rename perlin noise to value noise ( #15858 )
2025-04-10 14:39:40 +02:00
sfan5
124d770823
Fix edge-case where manually set gameid isn't used
2025-04-10 14:39:21 +02:00
Lars Müller
a3648b0b16
Add spatial index for objects ( #14631 )
2025-04-08 08:44:53 +02:00
sfan5
2602d03b34
Split ABM/LBM from serverenvironment.cpp to own file
2025-03-30 18:17:19 +02:00
sfan5
dea95c7339
Reduce transitive includes by moving a class
2025-03-30 18:17:19 +02:00
sfan5
e73eed247e
Apply some refactoring/cleanup to mainly util functions
2025-03-30 18:17:19 +02:00
sfan5
f63436c8d3
Add basic unittests for LBMManager
2025-03-26 20:49:43 +01:00
sfan5
7b746d21f9
Make sure generated blocks have their timestamp set
...
behavior change: newly generated blocks are no longer momentarily activated.
this shouldn't matter for anyone and did not consistently apply to all blocks anyway
addresses issue from #15902 for new maps(!)
2025-03-26 20:49:43 +01:00
y5nw
cc65c8bd70
SDL: Use scancodes for keybindings ( #14964 )
...
Co-authored-by: Lars Müller <34514239+appgurueu@users.noreply.github.com >
Co-authored-by: sfan5 <sfan5@live.de >
Co-authored-by: SmallJoker <SmallJoker@users.noreply.github.com >
2025-03-16 20:35:34 +01:00
Erich Schubert
c439d784ac
add unit tests for map block position encoding
2025-03-16 17:56:58 +01:00
sfan5
7892541383
Various random code cleanups
2025-03-04 19:53:01 +01:00
Lars Mueller
d74af2f1a7
Use matrix4::getRotationRadians
2025-02-27 12:31:04 +01:00
Lars Mueller
c261c26456
Add Irrlicht rotation consistency unit tests
2025-02-27 12:31:04 +01:00
Lars Mueller
5abf220979
Fix random usage in matrix4 tests
2025-02-27 12:31:04 +01:00
Lars Mueller
1ceeea34f4
Extend quaternion tests
2025-02-27 12:31:04 +01:00
Lars Mueller
3ae1fd459a
Add quaternion conversion unit tests
2025-02-27 12:31:04 +01:00
Lars Mueller
0e86366324
Add test for matrix4::getRotationDegrees
2025-02-27 12:31:04 +01:00
sfan5
ee9258cefd
Clean up some packet-related code
2025-02-26 12:21:57 +01:00
sfan5
cc352f3b66
Add unit tests for MapDatabase implementations
2025-02-18 19:29:06 +01:00
Erich Schubert
567b9a997a
Collision: more accurate computation with acceleration and long dtime ( #15408 )
...
Co-authored-by: SmallJoker <mk939@ymail.com >
2025-02-15 12:17:44 +01:00
Lars Müller
319e270664
Clean up Irrlicht matrices a bit more ( #15733 )
2025-02-15 12:17:30 +01:00
sfan5
b5e084c9a5
Update github URL references ( #15705 )
2025-01-24 16:50:39 +01:00
SFENCE
af3f696423
Code style fixes.
2025-01-21 16:29:12 +01:00
Lars Müller
8719a816e7
Fix CMatrix<T>::getScale returning negative scale ( #15687 )
2025-01-18 00:27:27 +01:00
Desour
d044c27b5f
MeshMakeData: Explain members, and add grid size and minimap flag
2025-01-11 16:43:37 +01:00
Desour
c0ce918d77
Meshgen: Handle enable_water_reflections like smooth_lighting
2025-01-11 16:43:37 +01:00
DS
436b391a80
VoxelArea: Fix missing cacheExtent calls in helpers ( #15657 )
2025-01-11 16:43:20 +01:00
SmallJoker
e8f6127779
Reduce irrlicht_extrabloated.h includes in header files
2025-01-04 12:39:34 +01:00
sfan5
81f51492ff
Don't silence errorstream in tests ( #15629 )
2025-01-04 12:39:16 +01:00
wozrer
a1b8d20f18
Rename getMapSettingNoiseParams to getNoiseParams
2025-01-02 14:59:19 +01:00