Page 1 of 2

[Mod] Green Screens [greenscreens]

PostPosted: Mon Jun 10, 2013 06:15
by JBR
This mod adds these blocks to Minetest:
Image

Please note there is no crafting recipe for these block because it's not really meant to be used for building.
This is great for taking photos of objects/buildings and then cutting them out later in a photo editor.

An example "stage":
Image

Example of use:
Image

Image

Hope this comes in handy!

License: CC0
Download:
4Shared(zip)
Dropbox(zip direct download)

PostPosted: Mon Jun 10, 2013 09:28
by rubenwardy
Interesting!

PostPosted: Mon Jun 10, 2013 10:29
by webdesigner97
Yeah, that's a great idea!

PostPosted: Mon Jun 10, 2013 10:31
by deivan
In game Chroma key. :D

PostPosted: Mon Jun 10, 2013 11:57
by Evergreen
I usually just change the texture for some random block to green/blue, make a studio/stage with it, take a screenshot, open it in GIMP, use the color select tool, and press delete. Still a very interesting idea, I think I will use it. :D

PostPosted: Mon Jun 10, 2013 15:15
by Dan Duncombe
I normally use cloud- but cloud is indestructable

PostPosted: Mon Jun 10, 2013 15:18
by JBR
Thanks for all the great comments! And thanks whoever moved it to mod releases.

PostPosted: Mon Jun 10, 2013 15:23
by JBR
:o I just realized I missed out a colour in the pic(pink block) updating asp..

edit:done

PostPosted: Mon Jun 10, 2013 15:32
by JBR
Hybrid Dog wrote:So you could short the code:
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 COLOURS = {
    {"green", "Green"},
    {"lightblue", "Light Blue"},
    {"blue", "Blue"},
    {"white", "White"},
    {"black", "Black"},
    {"pink", "Pink"}
}

for i in ipairs(COLOURS) do
    local colour = COLOURS[i][1]
    minetest.register_node("greenscreens:"..colour,{
        description = COLOURS[i][2].." Screen",
        groups = {cracky = 1},
        tiles = {colour..".png"},
        drawtype="glasslike",
        paramtype = "light",
        light_source = 5,
    })
end

Thanks but will it make any difference if I do that?

PostPosted: Mon Jun 10, 2013 15:34
by Evergreen
JBR wrote:
Hybrid Dog wrote:So you could short the code:
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 COLOURS = {
    {"green", "Green"},
    {"lightblue", "Light Blue"},
    {"blue", "Blue"},
    {"white", "White"},
    {"black", "Black"},
    {"pink", "Pink"}
}

for i in ipairs(COLOURS) do
    local colour = COLOURS[i][1]
    minetest.register_node("greenscreens:"..colour,{
        description = COLOURS[i][2].." Screen",
        groups = {cracky = 1},
        tiles = {colour..".png"},
        drawtype="glasslike",
        paramtype = "light",
        light_source = 5,
    })
end

Thanks but will it make any difference if I do that?

Nope. It's just a more efficient way of coding it. (not having to register each separate color of node) Take the colored wood mod for example. There are WAY to many different colors to code each node. Also,(as Hybrid-Dog suggested)change the image size to 1x1 because it is a single flat color.

PostPosted: Mon Jun 10, 2013 15:40
by JBR
Hybrid Dog wrote:
Evergreen wrote:Take the colored wood mod for example. There are WAY to many different colors to code each node.
I think coloredwood could look better if every block gets a special texture.

Evergreen wrote:Also,(as Hybrid-Dog suggested)change the image size to 1x1 because it is a single flat color.
If possible you could pngcrush the textures, too

pngcrush?

PostPosted: Mon Jun 10, 2013 15:57
by JBR
yay I managed to get png crush working, uploading new files asap.

done(re-sized and crushed png files)

PostPosted: Sat Aug 24, 2013 04:02
by hampa16
i can't get the picture to appear on the screen!

PostPosted: Sat Aug 24, 2013 18:51
by philipbenr
very nice mod. I will use it well.

+1 :)

PostPosted: Sat Aug 24, 2013 20:59
by webdesigner97
What the f**k is your problem?? A forum is not a live chat!

But I don't understand your question. Which pictures do you want to show where?

PostPosted: Sat Aug 24, 2013 23:26
by philipbenr
webdesigner97 wrote:But I don't understand your question. Which pictures do you want to show where?


I'd like to help as well. What do you mean, screenshot, or upload a picture onto the forum, or what?

PostPosted: Sun Aug 25, 2013 07:26
by LionsDen
He thinks the pictures are placed onto the green blocks, not the item that you want to takes the picture of. Easy mistake to make.

What this mod does is make single color blocks that you can place in your world. You then build a house or statue or something that you want a picture of on them. Then you position yourself so that you can see what you built with the single color blocks around it and take a screenshot. You then are able to take that screenshot into an image editing program and select the single color and delete it. Or you could invert the selection afterwards and then copy and paste your beautiful object out of the minetest world and put it into a different picture. That is all that this mod is really for. It doesn't allow you to display images onto the colored blocks.

PostPosted: Sun Aug 25, 2013 19:38
by hampa16
LionsDen wrote:He thinks the pictures are placed onto the green blocks, not the item that you want to takes the picture of. Easy mistake to make.

What this mod does is make single color blocks that you can place in your world. You then build a house or statue or something that you want a picture of on them. Then you position yourself so that you can see what you built with the single color blocks around it and take a screenshot. You then are able to take that screenshot into an image editing program and select the single color and delete it. Or you could invert the selection afterwards and then copy and paste your beautiful object out of the minetest world and put it into a different picture. That is all that this mod is really for. It doesn't allow you to display images onto the colored blocks.
i took so many screenshots but one of those screenshots are not appearing on the screen

PostPosted: Sun Aug 25, 2013 19:48
by Evergreen
hampa16 wrote:so can you tell me do do this the easy way
they won't show up on the screens
Listen, the green screens aren't supposed to have a picture show up on them. They are for image editing pictures only, so if you aren't going to edit the screenshots afterwards, then this mod is useless to you. And also, there is no "easier" way of doing that in an image editor.

PostPosted: Sun Aug 25, 2013 21:15
by hampa16
Evergreen wrote:
hampa16 wrote:so can you tell me do do this the easy way
they won't show up on the screens
Listen, the green screens aren't supposed to have a picture show up on them. They are for image editing pictures only, so if you aren't going to edit the screenshots afterwards, then this mod is useless to you. And also, there is no "easier" way of doing that in an image editor.
WELL THIS MOD IS USELESS NOW


Edit: Spoiler Abuse

PostPosted: Sun Aug 25, 2013 21:31
by sfan5
hampa16 wrote:
Evergreen wrote:
hampa16 wrote:so can you tell me do do this the easy way
Listen, the green screens aren't supposed to have a picture show up on them. They are for image editing pictures only, so if you aren't going to edit the screenshots afterwards, then this mod is useless to you. And also, there is no "easier" way of doing that in an image editor.
[spoiler]WELL THIS MOD IS USELESS NOW[/spoiler]

Do not abuse spoilers

PostPosted: Sun Aug 25, 2013 21:43
by Evergreen
hampa16 wrote:
Evergreen wrote:
hampa16 wrote:so can you tell me do do this the easy way
Listen, the green screens aren't supposed to have a picture show up on them. They are for image editing pictures only, so if you aren't going to edit the screenshots afterwards, then this mod is useless to you. And also, there is no "easier" way of doing that in an image editor.
WELL THIS MOD IS USELESS NOW


Edit: Spoiler Abuse
It is useless for you, but it is very useful for lots of people. (including me)

PostPosted: Mon Aug 26, 2013 09:48
by Dan Duncombe
hampa16 wrote:
Evergreen wrote:
hampa16 wrote:so can you tell me do do this the easy way
Listen, the green screens aren't supposed to have a picture show up on them. They are for image editing pictures only, so if you aren't going to edit the screenshots afterwards, then this mod is useless to you. And also, there is no "easier" way of doing that in an image editor.
WELL THIS MOD IS USELESS NOW


Edit: Spoiler Abuse


Ahem. This mod is meant to provide a background to images so they can easily be edited out. These DO NOT DISPLAY ANYTHING

PostPosted: Sat Aug 31, 2013 19:25
by hampa16
sfan5 wrote:
hampa16 wrote:
Evergreen wrote:Listen, the green screens aren't supposed to have a picture show up on them. They are for image editing pictures only, so if you aren't going to edit the screenshots afterwards, then this mod is useless to you. And also, there is no "easier" way of doing that in an image editor.
[spoiler]WELL THIS MOD IS USELESS NOW[/spoiler]

Do not abuse spoilers
hampa16 wrote:
LionsDen wrote:He thinks the pictures are placed onto the green blocks, not the item that you want to takes the picture of. Easy mistake to make.

What this mod does is make single color blocks that you can place in your world. You then build a house or statue or something that you want a picture of on them. Then you position yourself so that you can see what you built with the single color blocks around it and take a screenshot. You then are able to take that screenshot into an image editing program and select the single color and delete it. Or you could invert the selection afterwards and then copy and paste your beautiful object out of the minetest world and put it into a different picture. That is all that this mod is really for. It doesn't allow you to display images onto the colored blocks.
i took so many screenshots but one of those screenshots are not appearing on the screen
how do you make the pictures of objects and buildings go on the screen?(by using PhotoEditor?)

PostPosted: Sat Aug 31, 2013 19:31
by Dan Duncombe
hampa16 wrote:how do you make the pictures of objects and buildings go on the screen?(by using PhotoEditor?)

Basically, here is what the mod does:
It adds nodes, which you can put other nodes on.
You can take a screenshot and edit out the special nodes this mod adds, because they are basically shadowless.
You can then have the picture of the nodes you placed with no background.

PostPosted: Sat Aug 31, 2013 19:57
by hampa16
Dan Duncombe wrote:
hampa16 wrote:how do you make the pictures of objects and buildings go on the screen?(by using PhotoEditor?)

Basically, here is what the mod does:
It adds nodes, which you can put other nodes on.
You can take a screenshot and edit out the special nodes this mod adds, because they are basically shadowless.
You can then have the picture of the nodes you placed with no background.
???(this is too confusing)

PostPosted: Sat Aug 31, 2013 20:11
by Dan Duncombe
hampa16 wrote:???(this is too confusing)

Basically This

PostPosted: Sat Aug 31, 2013 21:05
by LionsDen
Dan Duncombe wrote:
hampa16 wrote:???(this is too confusing)

Basically This


English must not be his first language because I don't know what else we can say to tell him what this mod is for. He should go the foreign language forum and ask about it in his own language.

PostPosted: Sat Aug 31, 2013 23:38
by VanessaE
hampa16:

The whole purpose of these blocks is to let you set up a structure such that you can create screenshots of it that make it easy to cut everything but the structure from the screenshot, and get a nice, clean, sharp edge around it, so that you don't have to do a ton of manual select-and-erase operations.

Try this:

1. Place a few pieces of cobblestone on the ground:

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
  c   
 ccc           c = cobblestone block
ccccc


2. Now, place some of the greenscreen blocks behind the cobble. Place enough greenscreen blocks so that they stick out past the sides, top, and bottom of the cobble -- so that the cobble appears to be completely surrounded by the green field.

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
GGGGGGG
GGGcGGG
GGcccGG         G = the greenscreen block
GcccccG
GGGGGGG


3. Take a screenshot.

4. Open the screenshot file with your favorite graphic editor (GIMP, Photoshop, etc).

5. Give the screenshot an alpha channel.

6. Use the select-by-color tool to select the green areas.

7. Edit -> Cut, or maybe press delete.

8. Un-select all.

9. Use the eraser tool to get rid of the rest of the parts of the screenshot you don't want to keep.

You now have an image of a stack of cobblestone with a transparent background, which you can then paste into some other image after you erase the rest of the image that you don't want. Imagine doing this with some block you've just invented, in place of the cobble. You could edit and scale the screenshot to use as an icon or something.

What you do with the part of the image you isolated from the rest is up to you.

PostPosted: Sat Aug 31, 2013 23:48
by Jordach
Blender > Green Screens.

But this is nice either way.