Time Nick Message 16:47 shaft For my mod I need a texture filter like remove color/difference/divide/substract like in GIMP but in Lua. Is there something like that? 16:49 shaft I need the part that is different from one texture to the other for clipping alpha of another texture. 17:20 shaft Anyone there? 19:20 MinetestBot 02[git] 04rubenwardy -> 03minetest/minetest: Refactor ContentDB integration (#14507) 13284f6d3 https://github.com/minetest/minetest/commit/284f6d3682b4d8717045940d8eda2e20ac2d4f52 (152024-04-09T19:18:40Z) 22:48 shaft Anyone here atm? 22:58 shaft ................. 22:58 Mantar hello 22:58 shaft Hello 22:59 shaft Is there any way I can do in a Minetest mod on a texture what the GIMP layer mode "color erase" does? 22:59 shaft I want to use the difference of two textures for clipping a texture 23:00 shaft The part that is different should be clipped to 23:00 Mantar I think the closest thing to that in the api is [mask. 23:01 Mantar not super helpful, I suppose 23:04 shaft Mask should do the clipping. But what about the difference? I want to make a mod that hijacks the register liquid function of the bucket mod and then uses the bucket texture of the current texture pack and gets the cliparea from the difference of emptybucket and waterbucket and then clips the texture from the liquid to it and combines them and then shoves it back into the original registerliquid funciton, so all buckets look 23:04 shaft consistent. 23:05 shaft Amazing idea, right? Should be piss easy. Only thing holding me back is that the Minetest API is too retarded to let me modify textures myself or provide the proper function 23:05 shaft Can I have "color erase" in Minetest 5.9? 23:05 Mantar You could make an issue requesting it 23:06 shaft Or a way to get and set the pixels of a texture and creating textures. 23:07 shaft And I could expose that functions to mods, so milk buckets and such can also look consistent. 23:07 MTDiscord here's where those are coded: https://github.com/minetest/minetest/blob/master/src/client/imagesource.cpp#L1082 23:17 shaft If I could modify it myself I could expan the clip area upwards and place an animal in the bucket if a mod requested that. I think the current way is quite limiting 23:17 shaft Other mods may also be held back by it. 23:17 shaft A better alternative would be a 3d bucket but 3d items are not allowed atm. 23:18 shaft I don't think a cuboid 3d bucket would be much of a performance issue. 23:20 MTDiscord cant you just make your own textures then? 23:20 shaft But I want to be a drop in replacement working perfectly with all existing texture packs. 23:21 shaft And even if I made my own textures. There is no way to get the texture dimensions of the currently used texture pack which means it would look totally out of place. 23:31 shaft 3d model would be coolest. Could I have a node-like item? Just needs to be like a node but a bit higher but behave like an item 23:31 shaft A simple cuboid with 6 faces would be enough 23:32 shaft I could combine the border texture on top with an opaque liquid texture 23:43 shaft The shortest way to solve my problem would be to have Mintest 5.9 support "erase color" or getting the resolution of the current texture pack. 23:45 shaft I think getting the resolution would be the most useful, so mods can provide multiple resolutions to fit in with texture packs. It's impossible for a texture pack to support every mod on contentdb after all.