So, here are some questions from my husband who want to make a mod to show pictures on the wall. As he is a professional programmer, he just need a bit help with the Minetest-API-specific hints.
He will use the ideas of the mod "gemalde"
viewtopic.php?id=4635 but make it better.
You should place a node on the wall, then right click to choose the size of the picture and the picture itself, which is depending on the size (so you have different pictures for 1x1, 2x1, ... pictures). Second thing will be to have a frame around the picture, may be you can choose the wood-type after right-clicking the picture. The next idea is to add support to use channels from the german page foto-community so you have changing pictures (he already did it for the desktops and knows ho to use the channel).
Okay ... that are the advanced features.
Now the first questions:
1.) We want to have different sizes. In the gemalde mod the visual_scale is used to the make the pictures bigger than one node. But scaling seems to be only possible in two directions at the same time. So, how can we have a 1x2 pictures? In the "gemalde" mod you can do this by have a picture where a part is transparent. Okay ... but we want to have a frame that should be only around the 1x2 area.
For that, a 1x2 picture should be shown in front of 2 blocks and not, like it is in the moment at "gemalde" the pcitures centered around on block and overlap the 8 block aorund the center.
So, what will the best solution to have different sizes for the pictures? Can you give me the name of other mods where we can find ideas how to get it?
2.) The frames can be made of cause with node boxes. But can we combine the picture with the frame. The empty frame would be quite easy. Make a nodebox block and use the texture of wood. But can it be combined? A background and the nodebox above it? The big problem for me is that I want to have the wood texture and the pictures. How can I "mix" it. I donÄt have any idea for this problem.
3.) What needs to be in "register_node" that the frame is always "on" the wall and not flying away from it. Sorry, forgot it :-/
Okay ... that are the first questions for a hopefully wonderfull mod in future. ;-)
Birgit