-
Notifications
You must be signed in to change notification settings - Fork 572
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
Add "connected" glass and obsidian glass #321
Conversation
What about a way to give players an option on use or not use connected glass? |
I agree with Megaf, it should be optional. I wonder if we should change it in the engine and handle it the same way as "fancy trees". |
Use a texture pack: copy Here's, it up to texture packs to do that, no need for a setting. |
Whether textures connect or not should be handled by settings, not by texture packs. Texturepacks, like the name already says, are ment to define the texture, not the behavior or the shape of nodes. Espacially with something like this. Rendering the framed glass needs more performance than normal glasslike. Another texture doesnt change that. |
Here, it's the same issue as wanting to disable crack animation (or any other animation, like water or lava – we don't have a setting to disable all texture animations currently). Modifying the texture is enough.
Do we have a benchmark that proves rendering glasslike_framed is much slower than glasslike in most cases? |
#193 was created a while ago and is similar to this |
I do like to see the border of glass and I do like the looks of it, I do and so players on my server. |
Adding it as a different node doesn't make any sense. |
Made a pull for the engine support. Then the user can decide if he wants connected textures or not. |
I don't see why a frame texture is needed. SmallJoker/minibase_game@c15241e16 results in |
@@ -446,9 +446,8 @@ minetest.register_node("default:bookshelf", { | |||
|
|||
minetest.register_node("default:glass", { | |||
description = "Glass", | |||
drawtype = "glasslike", | |||
tiles = {"default_glass.png"}, | |||
inventory_image = minetest.inventorycube("default_glass.png"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I opened a pull request a while ago for removing inventory_image
from the nodedef, but it caused problems with the inventory image. I tested it just again, and these are the results:
I'm using a build from 2014-09-19. Has anything changed in the meantime?
This doesn't look right, the border around glass is simply the edge of the glass, not the frame, this 3D look glass edge looks like a frame within the glass material and makes the glass look non-glass like. |
This gives glass and obsidian glass a slight 3D look and make them look “connected” to other nearby nodes of the same type.
Compatibility with older texture packs is kept. Dropped glass looks better and is now 3D.
default_(obsidian_)glass.png: inventory and wield texture, compatible with old texture packs
default_(obsidian_)glass_frame.png: the glass frame
default_(obsidian_)glass_detail.png: the glass detail