Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resized torchlike nodes don't visually attach to node #9221

Closed
Wuzzy2 opened this issue Dec 19, 2019 · 3 comments · Fixed by #9303
Closed

Resized torchlike nodes don't visually attach to node #9221

Wuzzy2 opened this issue Dec 19, 2019 · 3 comments · Fixed by #9303
Labels
Bug Issues that were confirmed to be a bug @ Client / Audiovisuals Low priority

Comments

@Wuzzy2
Copy link
Contributor

Wuzzy2 commented Dec 19, 2019

Minetest version
5.1.0
OS / Hardware

Operating system: GNU/Linux

Summary

If you set visual_scale for a torchlike node to a value other than 1, then the node will not visually touch the side of a node.

This is because instead of touching the wall/ceiling/floor, the texture will be rendered at the center of the node.

Steps to reproduce
  1. Place a torchlike node with visual_scale unequal to 1 on a solid node and see how it looks

You can download DevToys https://forum.minetest.net/viewtopic.php?f=9&t=23802 for example nodes.
Give yourself testnodes:torchlike_double (double size), testnodes:torchlike_half (half size) and testnodes:torchlike (normal size) and place them at walls, ceilings and floors.

It will look like this:
[EDIT by paramat: added image]

6D3OSDrXwFhalf

It is expected that the white border of the node texture visually touches the solid nodes. But this is only the case for the normal-sized torchlike nodes, not for the scaled ones.

Other context

The documentation lua_api.txt is aware of this:

         visual_scale = 1.0,
         -- Supported for drawtypes "plantlike", "signlike", "torchlike",
         -- "firelike", "mesh".
         -- For plantlike and firelike, the image will start at the bottom of the
         -- node, for the other drawtypes the image will be centered on the node.
         -- Note that positioning for "torchlike" may still change.

Which suggests the centered torch is not really intended. Which makes sense, as I don't really see why we want to have floating torches.

@Wuzzy2 Wuzzy2 added the Unconfirmed bug Bug report that has not been confirmed to exist/be reproducible label Dec 19, 2019
@SmallJoker SmallJoker added @ Client / Audiovisuals Bug Issues that were confirmed to be a bug Low priority and removed Unconfirmed bug Bug report that has not been confirmed to exist/be reproducible labels Dec 19, 2019
@paramat
Copy link
Contributor

paramat commented Dec 20, 2019

Indeed low priority.
Also note that some mods may be relying on this behaviour.
So i am not convinced it is worth altering.

I added the linked image to the first post.

@Wuzzy2
Copy link
Contributor Author

Wuzzy2 commented Dec 21, 2019

I doubt that mods rely on this behavior. Note that the documentation includes an explicit warning, so compability alone should not be a reason to reject this.

But I agree with low priority; the torchlike drawtype is rarely used nowadays. This is just one of the bugs I found while I created DevToys to play around with all the drawtypes and see what happened. :D

@paramat
Copy link
Contributor

paramat commented Dec 21, 2019

By 'rely on', i mean that a few mods will be coded to function properly with torchlike having its current appearence. Probably only a very few mods though, and i agree that does not rule out a change. So i should be more neutral on this, will edit my comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Issues that were confirmed to be a bug @ Client / Audiovisuals Low priority
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants