1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-07-22 17:18:39 +00:00
Commit graph

204 commits

Author SHA1 Message Date
Lars Mueller
d1a46a8da5 Use getRotationRadians 2025-05-24 17:29:50 +02:00
Lars Mueller
1a8912716f do the todo 2025-05-24 17:29:50 +02:00
Lars Mueller
a1ed14f4c2 only call on animate cb if available 2025-05-24 17:29:50 +02:00
Lars Mueller
78f2ccc6db fix failing assert 2025-05-24 17:29:50 +02:00
Lars Mueller
63b9979ff7 fix
moar fix

optimize cool guy texture
2025-05-24 17:29:50 +02:00
Lars Mueller
307ab111d0 Make animation blending and bone overrides interact favorably 2025-05-24 17:29:50 +02:00
Lars Mueller
455f7a4cae Do bounding box & matrix calculation at proper point in time 2025-05-24 17:29:50 +02:00
Lars Mueller
07963f1af5 minor cleanup 2025-05-24 17:29:50 +02:00
Lars Mueller
66e779b87f Implement [gs]etBoundingBox via the static pose 2025-05-24 17:29:50 +02:00
Lars Mueller
de726bd41e rename 2025-05-24 17:29:50 +02:00
Lars Mueller
c7c99296cb Fix animation blending 2025-05-24 17:29:50 +02:00
Lars Mueller
a5180fbb28 do it properly 2025-05-24 17:29:50 +02:00
Lars Mueller
704821c41e gltf, doc: warn that nodes using matrix transforms mustn't be animated (this is in the spec) 2025-05-24 17:29:50 +02:00
Lars Mueller
4dacb66693 fixes 2025-05-24 17:29:50 +02:00
Lars Mueller
15da2d3d25 Revert "DEBUGGERY"
This reverts commit e1becd8a390bbb2396808559bb3ab00917a28322.
2025-05-24 17:29:50 +02:00
Lars Mueller
87213f1591 DEBUGGERY 2025-05-24 17:29:49 +02:00
Lars Mueller
19ea7c8e50 todo 2025-05-24 17:29:19 +02:00
Lars Mueller
46cd7b28a6 fix oopsie 2025-05-24 17:29:19 +02:00
Lars Mueller
6892a5e332 boxes 2025-05-24 17:29:18 +02:00
Lars Mueller
d73b86c16a no more children 2025-05-24 17:29:18 +02:00
Lars Mueller
503d7cf081 progress 2025-05-24 17:29:17 +02:00
Lars Mueller
d10abba38c Restore / fix bone overrides 2025-05-24 17:28:28 +02:00
Lars Mueller
a687a7a6e7 cleanup 2025-05-24 17:28:28 +02:00
Lars Mueller
abc2e54c07 stuff 2025-05-24 17:28:28 +02:00
Lars Mueller
769c472ceb cleanup 2025-05-24 17:28:28 +02:00
Lars Müller
7ac5502fdf
Fix handling of skinned meshes for nodes
Second try after the revert in 8a28339 due to an unexpected regression.

- Rigidly animated models (e.g. the glTF frog node) were not working correctly,
  since cloning the mesh ignored the transformation matrices.
  Note that scaling the mesh needs to occur *after* transforming the vertices.
- Visual scale did not apply to skinned models,
  as resetting the animation overwrote scaled vertex data with static positions & normals.
  For backwards compatibility, we now apply a 10x scale to static, non-glTF models.

We now do scale static meshes, as the bug that caused meshes not to be scaled was limited to skeletally animated meshes,
hence we ought not to reproduce it for skinned meshes that do not take advantage of skeletal animations (e.g. current MTG doors).

However, glTF models (e.g. Wuzzy's eyeballs) up until recently were always affected due to technical reasons
(using skeletal animation for rigid animation).

Thus, to preserve behavior, we:

1. Do not apply 10x scale to glTF models.
2. Apply 10x scale to obj models.
3. Apply 10x scale to static x or b3d models, but not to animated ones.

See also: #16141
2025-05-20 18:37:33 +02:00
siliconsniffer
9b2ee1dd5d
Remove Irrlicht GUI gradients (#16015)
Co-authored-by: rollerozxa <rollerozxa@voxelmanip.se>
Co-authored-by: grorp <grorp@posteo.de>
2025-05-07 08:56:00 +02:00
Lars Müller
f4285a59ac
Purge some dead code (mostly Irrlicht) (#16111)
* Remove obsolete Irrlicht attributes system

* Remove dead GUI element types

* Remove some obsolete Irrlicht headers

* Fix some oopsies from d96f5e1
2025-05-04 16:31:44 +02:00
sfence
0bdd5f294e
Make SDL2 default on macOS (#16039) 2025-05-02 21:28:13 +02:00
Lars Mueller
01e4395977 glTF: Clean up rigid animation 2025-04-26 16:15:05 +02:00
Lars Mueller
5113fcaedd Fix glTF reader not ignoring parent transforms for skinned meshes 2025-04-26 16:15:05 +02:00
Lars Mueller
e1143783e5 Fix some (MSVC) compiler warnings 2025-04-20 20:49:10 +02:00
Lars Mueller
695d526764 Get rid of _IRR_OVERRIDE_ macro 2025-04-20 20:49:10 +02:00
Lars Mueller
5f1ff453c9 Replace _IRR_DEBUG_BREAK_IF with assertions 2025-04-20 20:49:10 +02:00
y5nw
c1d2124102
SDL: Send events for X1 and X2 mouse buttons (#16025) 2025-04-20 20:20:33 +02:00
y5nw
bf15036831
Show SDL version in the About tab (#16046) 2025-04-20 20:20:22 +02:00
sfan5
04e82749db Make ETLF_FLIP_Y_UP_RTT work for texture download on GLES 2025-04-15 21:42:47 +02:00
sfan5
cf07b56235 Expand workarounds for format inconsistency with BGRA8888 extension on GLES
fixes #16011
2025-04-15 21:42:47 +02:00
sfan5
a00b9cab36
Fix operator[] for vector2d and vector3d being potentially UB (#15977)
We don't have a C++ expert on hand, but taking a pointer to one member
and expecting to access another by an offset is very fishy:
- for one, there could theoretically be padding
- the compiler might assume that we are only writing to that first member

The new code has shown to be free for constant parameter values.
Non-constant ones cause the assembly to have branches (why?), but we don't
use that much.
2025-04-08 22:25:45 +02:00
sfan5
46db688cc8 Implement support for array textures in GL driver
note: feature detection was not implemented in the legacy driver, but the code itself probably works.
2025-04-08 22:24:37 +02:00
sfan5
d5bf094f9a Prefer immutable texture storage when available 2025-04-08 22:24:37 +02:00
sfan5
427a7e4998 Split texture initialization code from upload 2025-04-08 22:24:37 +02:00
sfan5
9ff07df45e Fix GLES texture download to handle mipmaps and cubemap type 2025-04-08 22:24:37 +02:00
sfan5
38c3876c4e Drop support for storing mipmap data alongside IImage 2025-04-08 22:24:37 +02:00
sfan5
03affa1bbb Some minor code cleanups 2025-04-08 22:24:37 +02:00
Lars Müller
a3648b0b16
Add spatial index for objects (#14631) 2025-04-08 08:44:53 +02:00
sfan5
785c042f1f Drop gzip support from CZipReader
This allowed reading concatenated gzip-compressed files as if they were an archive.
Aside from being generally uncommon we literally don't need this.
2025-03-30 18:17:19 +02:00
sfan5
89e3bc8d56 Improve std::hash<SMaterial> implementation 2025-03-30 18:17:19 +02:00
SmallJoker
95d6008332
IrrlichtMt: Fix orientation of IRenderTarget-textures (#15932)
Textures created through a render target are flipped along the X axis.
For the same reason, screenshots must be flipped back as well ('IVideoDriver::createScreenShot').

This commit implements the same flipping concept in two places:
1. Batch rendering of images (mostly used by fonts/text)
2. In-world rendering of such textures
2025-03-26 18:32:23 +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