Page 1 of 1

[Mod] Fancy Stained Glass [glass_stained]

PostPosted: Wed Jun 07, 2017 05:00
by v-rob

Stained Glass


This mod adds adaptable, fancy stained glass to Minetest. There are nine different, unique designs with two different color schemes per glass type. This mod utilizes a design that allows the glass to fit underneath arches, upside-down stairs, or nearly any sort of decoration.

Along with the stained glass, this mod has normal glass, obsidian glass, and steel bars that use the same design as the stained glass. Also, there is spiked steel railing, which works great combined with the default steel bars.

Image

Embedding in Arches


As the first screenshot shows, the glass can be placed inside of arched windows. This mod does that by employing double high windows and other such shapes. In the following diagram, as viewed from the side, the parts with the O cannot be fit in another node, whereas the X can go inside any type of node:

Code: Select all
  | X | X  | XX | XXX
O | O | OX | OX | XOX
  |   |    |    | XXX


There is one more node, which can be placed into a window slot from the side. This has the advantage of not having to have a larger than one node window, but the disadvantage is that nothing else can be placed in the actual position of the node. The diagram is the same as the one above, but viewed from the top. X is where the node appears to be, but O is where it actually is:

Code: Select all
X
O


This picture should illustrate the nodes a bit better:

Image

Notice the offset on in the back on the far right. It appears to be one node behind the rest, but in reality, it is aligned with the rest of them.

And you thought a simple stained glass mod couldn't be that complex ;-)

And now for some more screenshots!


+ Click me!


Important Info


License: MIT for code; CC BY-SA for textures
Dependencies: default, xpanes, dye

The arches used in the mod are from the mod "pkarcs", which can be found here: viewtopic.php?f=11&t=14541.

Download


Zip: https://github.com/v-rob/glass_stained/ ... master.zip
GitHub: https://github.com/v-rob/glass_stained

Please report any issues on this thread. You may make a GitHub issue, but I check the forums more than GitHub.

As always, I'm always open to suggestions.

Re: [Mod] Fancy Stained Glass [glass_stained]

PostPosted: Wed Jun 07, 2017 08:23
by Chibi ghost
damn nice the glass looks really good
once I do some major clean up of another mod I'll give it a go

Re: [Mod] Fancy Stained Glass [glass_stained]

PostPosted: Wed Jun 07, 2017 18:37
by azekill_DIABLO
okay, i must say... this is the finest glass i ever see of my whole life.

Re: [Mod] Fancy Stained Glass [glass_stained]

PostPosted: Thu Jun 08, 2017 02:34
by TumeniNodes
Looks very nice.
I especially like the spiked railing, I never got around to doing that

any chance of adding this to github?

Re: [Mod] Fancy Stained Glass [glass_stained]

PostPosted: Thu Jun 08, 2017 02:38
by v-rob
TumeniNodes wrote:any chance of adding this to github?


What for? I don't see a need to do so.

And I'm too lazy to get an account and set up stuff :)

Re: [Mod] Fancy Stained Glass [glass_stained]

PostPosted: Thu Jun 08, 2017 02:44
by Windspar
nice but now doors need to be twice as large to go with windows.

Re: [Mod] Fancy Stained Glass [glass_stained]

PostPosted: Thu Jun 08, 2017 02:55
by v-rob
Windspar wrote:nice but now doors need to be twice as large to go with windows.


Huh?

Re: [Mod] Fancy Stained Glass [glass_stained]

PostPosted: Thu Jun 08, 2017 13:59
by v-rob
Three new designs of stained glass, two color schemes for each one! See first post for updated screenshot.

(If you do not like one or more of my new designs, I will remove them.)

Re: [Mod] Fancy Stained Glass [glass_stained]

PostPosted: Thu Jun 08, 2017 14:11
by Chibi ghost
sod that keep them you can't please everyone
it's helps that I like them a lot and have plans brewing

Re: [Mod] Fancy Stained Glass [glass_stained]

PostPosted: Sat Jul 22, 2017 19:21
by Chibi ghost
I have added this mod to my own little world
and I have had no issues I love the arch’s and how the stained glass fits so well inside them
it was a bit fiddly learning how to use that side of the mod but once I worked it out
no problem what so ever
Image
in fact I partially re-skined my house to make the round window work

Re: [Mod] Fancy Stained Glass [glass_stained]

PostPosted: Fri Oct 05, 2018 11:54
by lilo
Hi,

what is the trick to get a combination between parcs and your glass, as you can see in the example pictures?

greets

Re: [Mod] Fancy Stained Glass [glass_stained]

PostPosted: Fri Oct 05, 2018 23:24
by v-rob
lilo wrote:Hi,

what is the trick to get a combination between parcs and your glass, as you can see in the example pictures?

greets


You have to use the double high glass. You place the arch, and then place the double high glass one block below it.

Re: [Mod] Fancy Stained Glass [glass_stained]

PostPosted: Sun Oct 07, 2018 11:47
by lilo
Ok, I can now build the stone arches with your glass, but how do you fill the bottom part of a circle as seen on the last picture?

Re: [Mod] Fancy Stained Glass [glass_stained]

PostPosted: Sun Oct 07, 2018 13:40
by Chibi ghost
9x9 hole the glass is screwdriver friendly

Re: [Mod] Fancy Stained Glass [glass_stained]

PostPosted: Thu Nov 22, 2018 22:03
by h-v-smacker
It appears I've been working on the same mod as well (I forked whatever we had deployed at linuxforks, which originally came as a zip archive). I cleaned up the code, it went from over a 1000 loc to under 500. Also I introduced more glass shapes — not just vertical double, but also L-shaped, 2x2 and 3x3 squares. Those are often needed when the frame is both small and non-rectangular, and there is no place to position enough rotated doubles. Oh and I also tweaked the yield of some recipes to better reflect the input/output ratio from other mods. E.g. if 6 glass blocks give you 16 xpanes, similar ratio should be true here.

Check it out: https://github.com/h-v-smacker/glass_stained

Re: [Mod] Fancy Stained Glass [glass_stained]

PostPosted: Sat Nov 24, 2018 19:11
by v-rob
Yea, I've been meaning to clean up the code for a while. I'll have a look at yours sometime soon. Sorry I can't do it immediately, but I've got a few other things to do.

Re: [Mod] Fancy Stained Glass [glass_stained]

PostPosted: Sat Jan 05, 2019 07:45
by v-rob
Update:
  • I've cleaned up the code majorly (~1000 lines to ~350).
  • Three more styles of glass were added with two color schemes each.
  • Obsidian glass xpanes were added for 0.4.x versions.
  • Spiked railing was added for the glass version instead of just xpanes.
  • More glass shapes were added besides single and double. These are triple, quadruple, noncuple, and offset. See first post for details
  • Edit: I also fixed Stained Glass #2 having transparency lower than every other glass, making it look wrong in the creative inventory.
Please report any compatibility issues. There shouldn't be any, but report them anyway.

Re: [Mod] Fancy Stained Glass [glass_stained]

PostPosted: Sat Jan 05, 2019 21:35
by TumeniNodes
Nice job on that code reduction v-rob
The new additions are nice too

Re: [Mod] Fancy Stained Glass [glass_stained]

PostPosted: Sun Jan 06, 2019 10:19
by Chibi ghost
looks good

Re: [Mod] Fancy Stained Glass [glass_stained]

PostPosted: Sat Feb 16, 2019 23:25
by v-rob
Quick update: I fixed the nodeboxes on the spiked iron railing, which were too thin and didn't match up with the rest of the spiked railing.