1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00
luanti/doc
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
..
compiling Make SDL2 default on macOS (#16039) 2025-05-02 21:28:13 +02:00
developing Updates some Minetest references to Luanti (#15712) 2025-02-01 13:40:45 +01:00
ides DOCS: replace Minetest -> Luanti, minetest. -> core. (#15292) 2024-10-22 23:05:41 +02:00
mkdocs Rename to Luanti (#15294) 2024-10-27 14:04:51 +01:00
android.md Replace occurences of 'wiki.minetest.net' with 'wiki.luanti.org' 2024-11-18 00:04:32 +01:00
breakages.md Deprecate function support in core.[de]serialize 2025-04-23 21:39:27 +02:00
builtin_entities.md DOCS: replace Minetest -> Luanti, minetest. -> core. (#15292) 2024-10-22 23:05:41 +02:00
client_lua_api.md Continue with 5.12.0-dev 2025-02-14 19:38:30 +01:00
direction.md Replace broken "What is Minetest?" link with archived copy 2025-04-24 20:07:51 +02:00
docker_server.md Fix documentation for the official Docker image (#15713) 2025-01-26 19:17:26 +01:00
Doxyfile.in Updates some Minetest references to Luanti (#15712) 2025-02-01 13:40:45 +01:00
fst_api.txt Add package update detection on Content tab (#13807) 2023-10-28 17:33:44 +01:00
lgpl-2.1.txt Spacing fixes 2022-04-08 14:55:21 +01:00
lua_api.md Fix handling of skinned meshes for nodes 2025-05-20 18:37:33 +02:00
lua_api.txt Update github URL references (#15705) 2025-01-24 16:50:39 +01:00
luanti.6 Update github URL references (#15705) 2025-01-24 16:50:39 +01:00
luantiserver.6 Rename to Luanti (#15294) 2024-10-27 14:04:51 +01:00
main_page.dox Updates some Minetest references to Luanti (#15712) 2025-02-01 13:40:45 +01:00
menu_lua_api.md Mainmenu: Move core.on_before_close to s_mainmenu like other callbacks, and doc 2025-04-23 09:31:06 +02:00
mod_channels.png Optimize PNG files (#13509) 2023-10-09 17:13:44 +02:00
protocol.txt DOCS: replace Minetest -> Luanti, minetest. -> core. (#15292) 2024-10-22 23:05:41 +02:00
texture_packs.md Document server texture pack in texture_packs.md (#15951) 2025-03-30 18:16:34 +02:00
world_format.md update documentation 2025-03-16 17:56:58 +01:00