1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-01 17:38:41 +00:00
Commit graph

8066 commits

Author SHA1 Message Date
Gefüllte Taubenbrust
51cb37570a Various changes and fixes
Hopefully this works, I haven't yet checked in detail for any problems.
2025-05-20 21:40:19 +02:00
Gefüllte Taubenbrust
e05544b84e Merge remote-tracking branch 'upstream/master' into Visuals-Vol-2 2025-05-20 20:01:46 +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
Daniel Cristian
4700939949
Fix uninitialized variable warning in generate_srp_verifier_and_salt 2025-05-18 21:59:57 +02:00
SmallJoker
56ecf6d332
Mainmenu: Fix error after ESC in dialog windows (#16130)
The error was caused by fd857374, where 'MenuQuit' was processed after 'try_quit'.
This commit fixes the error by moving the special 'MenuQuit' handling to Lua.
2025-05-18 20:41:42 +02:00
sfan5
8c8b7cb251
Clean up menus properly on client exit (#16150) 2025-05-18 12:13:48 +02:00
SmallJoker
3020c192b2
Client: Disable node specular shader effect (#16113)
This feature needs a proper API integration to result in a correct
in-game appearance. See #15898 for details.

This is a band-aid solution for the 5.12.0 release.
2025-05-17 15:02:47 +02:00
sfan5
8a28339ed3 Revert "Fix handling of skinned meshes for nodes"
It literally breaks torches and doors in MTG.
Regardless of whether this is an oversight or not let's not pull this in so close to release.
This reverts commit 612db5b2ca.
2025-05-14 23:21:33 +02:00
Lars Mueller
612db5b2ca Fix handling of skinned meshes for nodes
- 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 only apply a 10x scale to static (.obj) models.
2025-05-14 22:28:33 +02:00
y5nw
57c1ab905c
Migrate existing keycode-based keybindings (#16049)
Co-authored-by: grorp <gregor.parzefall@posteo.de>
Co-authored-by: sfan5 <sfan5@live.de>
2025-05-14 22:15:15 +02:00
Lars Müller
600763dffc
Fix table[] focus regression from f4285a5 (#16136) 2025-05-14 07:25:32 -04:00
grorp
959a8b5b8b
Fix black font and menu header when game exits in background (#16131) 2025-05-14 07:23:53 -04:00
sfan5
5f06885ffa Fix printing SER_FMT_VER_HIGHEST_READ in main.cpp 2025-05-13 18:26:47 +02:00
sfan5
94dd3da2aa Prevent mixing in-tree and out-of-tree builds
This is an easy pitfall to encounter when running an Android build.
2025-05-09 20:25:28 +02:00
lhofhansl
1f9a3b5875 Update src/serverenvironment.cpp
Co-authored-by: sfan5 <sfan5@live.de>
2025-05-05 07:50:45 -07:00
Lars
05513467b6 Some ActiveBlockList improvements 2025-05-05 07:50:45 -07:00
Lars Mueller
747857bffa Implement helpful __tostring for all userdata-based classes 2025-05-04 16:32:17 +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
sfan5
377fa5bb14 Minor improvements to image algorithms
- loop Y around X
- use float over double
2025-05-04 16:31:00 +02:00
sfan5
486fb7cc4d Add caching of generated textures as image 2025-05-03 11:32:41 +02:00
sfan5
9cb78f2dc5 Try to reuse texture objects in TextureSource::rebuildTexture() 2025-05-03 11:32:41 +02:00
sfan5
b841c23701 Clean up TextureSource and related code 2025-05-03 11:32:41 +02:00
sfence
0bdd5f294e
Make SDL2 default on macOS (#16039) 2025-05-02 21:28:13 +02:00
sfan5
d795c28af8
Tune polygon offset handling to avoid issues with mesh nodes (#16064) 2025-05-02 21:27:45 +02:00
z-op
c5abecbd3c
Improve log messages for core.clear_craft 2025-05-02 21:27:31 +02:00
sfan5
0c7149b8df
Build-related fixes (#16102)
- fix mo files rebuilt unnecessarily

- fix CMake policy warnings

- update vcpkg baseline
2025-05-02 21:27:18 +02:00
Lars Müller
d96f5e1c76
MetaDataRef: Make set_float preserve numbers exactly (#16090) 2025-05-02 21:27:00 +02:00
SmallJoker
6f3735281f
GUI: restore the Pause Menu after closing the Settings Menu 2025-05-02 21:26:34 +02:00
sfan5
893a74f9d7 Support HEAD and PATCH methods in http api 2025-05-01 10:46:24 +02:00
sfan5
d937cd9b90 Don't restrict multipart requests to POST 2025-05-01 10:46:24 +02:00
sfan5
4164cea58f Fix PUT and DELETE requests without data 2025-05-01 10:46:24 +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
updatepo.sh
a9abeab7ee Update minetest.conf.example and dummy file 2025-04-24 16:48:55 +02:00
Muhammad Rifqi Priyo Susanto
3e5d9782cc
Android: Persistent notification while ingame (#13125)
Co-authored-by: Lars Müller <34514239+appgurueu@users.noreply.github.com>
Co-authored-by: grorp <grorp@posteo.de>
2025-04-24 07:38:52 -04:00
Vincent Robinson
233ffbe384
Change exit keybinding and fix bug in allow_close[] 2025-04-23 21:41:32 +02:00
SmallJoker
d6d045aad4
Script: avoid fatal error in deprecated func handler 2025-04-23 21:41:18 +02:00
Desour
4a8f84b259 Mainmenu: Move core.on_before_close to s_mainmenu like other callbacks, and doc 2025-04-23 09:31:06 +02:00
sfan5
2c83c67b7d
Move profiler call out of hot path in ClientMap (#16056) 2025-04-23 09:30:58 +02:00
BuckarooBanzay
6c339c62c6 Switch to smallint for position keys (x,y,z) in postgres backend 2025-04-23 09:30:36 +02:00
sfan5
7c619bdc9a
Improve usability of Prometheus metrics backend (#16060) 2025-04-23 09:30:04 +02:00
Lars
00addc3e5d Mark liquid and light updates low priority 2025-04-22 20:36:45 -07:00
Lars
2a3427a39c Fix m_nearest_unsent_d calculation when changed blocks arrive
Uses the nearest cube surface instead of euclidean distance to correctly reset the distance to start scanning from.
2025-04-22 20:36:45 -07:00
Lars
99150fadd1 Some RemoteClient improvements
* Simplications
* Remove RemoteClient::m_blocks_modified
* Remove unneeded nearest_emergefull_d
2025-04-22 20:36:45 -07:00
grorp
0cf1c47f6c
Fix scrollbar on ContentDB grid by adding an area label (#16042)
Co-authored-by: rubenwardy <rw@rubenwardy.com>
2025-04-21 12:33:41 +02:00
SmallJoker
5c6e4d35b0
Client: protect against circular attachments (#16038)
The server already includes such check. There must be a desync issue that causes
an ID mismatch, resulting in client crashes. Any such crash must be prevented.
2025-04-21 12:33:19 +02:00
Linn16
c0e42c6588
Use map_compression_level_disk from minetest.conf for --recompress (#16037) 2025-04-21 12:32:58 +02:00
sfan5
900cf896db Move NodeShaderConstantSetter to game.cpp 2025-04-21 12:32:29 +02:00
sfan5
f3c2bbfb48 Change shaders to be defined by input constants rather than drawtype/material type 2025-04-21 12:32:29 +02:00
sfan5
baa4c7cd21 Introduce IShaderConstantSetter abstraction 2025-04-21 12:32:29 +02:00