Page 1 of 1

Texture related requests

PostPosted: Tue Jan 06, 2015 13:46
by Kenney
I'd love to see these features in the base Minetest engine:

1. Randomized textures

Rather than having to create multiple types of the same node it would be awesome if, for example, the animation property could be used to randomize textures. Just feed in an animation (strip of the same textures, with slight alternations) and random_texture = true and it would select a random frame from the animation upon placing the block. (no idea how this would work code wise).

2. Randomized rotation of textures

Same as 1 but instead it just randomly rotates the texture on the block, which would allow for more varied ground textures.

3. Advanced connected textures

While the glasslike_framed drawtype is already great, it would be better to have a more advanced system that would allow more connected textures than just placing a 1px detail image over the original. Something like this would be the best, in my opinion:

Image

4. Dynamic mixing of textures

While this would technically probably be impossible it would be great to dynamically mix textures. This would remove the need for both the first and second feature requests. Something among the lines of this:

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
local ranTexture = "grass_" .. math.random(1,8) .. ".png"
minetest.register_node("voxus:grass", {
tiles = {ranTexture},
}

Re: Texture related requests

PostPosted: Tue Jan 06, 2015 14:54
by philipbenr
This has been similarly done in BFD, although, it is not quite as you have described.
There also was a similar topic I think...

+1 though.

Re: Texture related requests

PostPosted: Tue Jan 06, 2015 15:34
by rubenwardy
BFD registers separate nodes. The point is to do this using one node. It could be done using seeded random based on the node position to choose a texture and orientation.

Edit: corrected "ransoms" to "randoms"

Re: Texture related requests

PostPosted: Tue Jan 06, 2015 17:20
by Jordach
rubenwardy wrote:BFD registers separate nodes. The point is to do this using one node. It could be done using seeded ransoms based on the node position to choose a texture and orientation.

rubenwardy: "buh muh shadeerrrrs!!!1!"

That's why I had to like with BFD.

Re: Texture related requests

PostPosted: Sat Jan 17, 2015 06:59
by maier.nathan
I could use a randomized texture for an effect or potion.
+1