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

Add "connected" glass and obsidian glass #321

Closed
wants to merge 1 commit into from

Conversation

Calinou
Copy link
Member

@Calinou Calinou commented Sep 23, 2014

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

Glass

@Megaf
Copy link
Contributor

Megaf commented Sep 23, 2014

What about a way to give players an option on use or not use connected glass?

@BlockMen
Copy link
Contributor

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".

@Calinou
Copy link
Member Author

Calinou commented Sep 23, 2014

Use a texture pack: copy default_glass.png, use it as default_glass_detail.png.

Here's, it up to texture packs to do that, no need for a setting.

@BlockMen
Copy link
Contributor

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.

@Calinou
Copy link
Member Author

Calinou commented Sep 24, 2014

Texturepacks, like the name already says, are ment to define the texture, not the behavior or the shape of nodes.

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.

Rendering the framed glass needs more performance than normal glasslike.

Do we have a benchmark that proves rendering glasslike_framed is much slower than glasslike in most cases?

@davisonio
Copy link
Contributor

#193 was created a while ago and is similar to this

@Megaf
Copy link
Contributor

Megaf commented Sep 25, 2014

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.
We use glass because we like the look of it.
It is not up to you to decide to change it or not. If it is to add that, so add it as a diferent node.

@Calinou
Copy link
Member Author

Calinou commented Sep 26, 2014

If it is to add that, so add it as a diferent node.

Adding it as a different node doesn't make any sense.

@BlockMen
Copy link
Contributor

Made a pull for the engine support. Then the user can decide if he wants connected textures or not.
minetest/minetest#1694

@SmallJoker
Copy link
Member

I don't see why a frame texture is needed.

SmallJoker/minibase_game@c15241e16 results in
http://i.imgur.com/goxsKwi.png

@@ -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"),
Copy link
Contributor

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:

Without inventory_image:
clipboard02

With inventory_image:
clipboard03

I'm using a build from 2014-09-19. Has anything changed in the meantime?

@BlockMen
Copy link
Contributor

BlockMen commented Oct 2, 2014

7f44a49

@BlockMen BlockMen closed this Oct 2, 2014
@paramat
Copy link
Contributor

paramat commented Oct 2, 2014

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants