Linuxdirk - thank you for taking the time to test! I figured the answer would be much shorter, but I'm happy that it seems to be a solvable problem!
The package I am using is directly from CDB from Calinou. That version contains a node with the namespace moreblocks:stair_ ... _half as well as _right_half. I have disabled mesh options like moreblocks:slope_ entirely.
I did check your readme and noted the issue with meshes. As far as I can see, this version uses nodeboxes with fixed coordinates for panel and stair variants. I assume that those should have working world-aligned textures, based on the results of your testing.
My specific case is a custom game without a /default/ mod, so I've had to break and comment some functions to get compatibility outside of MTG. That is almost certainly the cause of my broken alignment. Since it is such a custom environment, I think that I will have to find the breakage myself, BUT it was very helpful for you to confirm that it should be working.
Thank you for the fast response! And thank you again for providing and maintaining this package. This covers a huge gap in engine functionality.
It’s interesting that it does not work for some nodes but others. I would expect it to work for all nodes or for no nodes.
My mod depends on default and applies the redefinitions after all mods were loaded (core.register_on_mods_loaded()). Moreblocks does not use this functionality so at least here should be no timing issues.
I just checked again and found the stair I think you mean: moreblocks:stair_aspen_wood_half for example that is only visible in the circular saw. I cannot find _righ_half, etc. ingame, buthis is in the code:
-- TODO FIXME not included in circular_saw.names["_right_half"]={node_box={type="fixed",fixed={{0,-0.5,-0.5,0.5,0,0.5},{0,0,0,0.5,0.5,0.5},},},},
Since this is a nodebox, it should be fine. Maybe it really has something to do with your setup? In unmodified Minetest Game with all updates for the mods and Luanti all nodes I expect to have world-aligned texztures have world-aligned textures …
Big fan! This was one of the mods that sold me on migrating my server to Luanti. :)
I'm having some issues with World Aligned Textures. moreblocks:stair_nodename works correctly, with world-aligned textures.
However, other types still have node-aligned textures. Examples include:
Is this known and intended? I would love to change it..
edit: .. disregard the title. My question is about the World Aligned Textures function, NOT Proper Rotation. Sorry!
Hey! That sounds great, thanks for sharing! I’m glad you liek the mod that much!
I just pulled the latest avialable Git version and just tried with cactus brick, using
moreblocks:cactus_brickas reference.I could not find the
_halfvariant, but I tried with those:moreblocks:stair_cactus_brick_innermoreblocks:stair_cactus_brick_outermoreblocks:slab_cactus_brickmoreblocks:panel_cactus_brick_14The nodes get the needed configuration and the texture is world-aligned as expected
Any chance other mods modify those nodes?
Due to how Luanti works, textures for the
meshdrawtype (like the Moreblocks slope shapes for example) cannot be world-aligned.Linuxdirk - thank you for taking the time to test! I figured the answer would be much shorter, but I'm happy that it seems to be a solvable problem!
The package I am using is directly from CDB from Calinou. That version contains a node with the namespace
moreblocks:stair_..._halfas well as_right_half. I have disabled mesh options likemoreblocks:slope_entirely.I did check your readme and noted the issue with meshes. As far as I can see, this version uses nodeboxes with fixed coordinates for panel and stair variants. I assume that those should have working world-aligned textures, based on the results of your testing.
My specific case is a custom game without a
/default/mod, so I've had to break and comment some functions to get compatibility outside of MTG. That is almost certainly the cause of my broken alignment. Since it is such a custom environment, I think that I will have to find the breakage myself, BUT it was very helpful for you to confirm that it should be working.Thank you for the fast response! And thank you again for providing and maintaining this package. This covers a huge gap in engine functionality.
It’s interesting that it does not work for some nodes but others. I would expect it to work for all nodes or for no nodes.
My mod depends on
defaultand applies the redefinitions after all mods were loaded (core.register_on_mods_loaded()). Moreblocks does not use this functionality so at least here should be no timing issues.I just checked again and found the stair I think you mean:
moreblocks:stair_aspen_wood_halffor example that is only visible in the circular saw. I cannot find_righ_half, etc. ingame, buthis is in the code:Since this is a nodebox, it should be fine. Maybe it really has something to do with your setup? In unmodified Minetest Game with all updates for the mods and Luanti all nodes I expect to have world-aligned texztures have world-aligned textures …