texture problem

User avatar
NakedFury
Member
 
Posts: 151
Joined: Thu Dec 08, 2011 03:55

texture problem

by NakedFury » Tue Apr 17, 2012 23:46

I am in the process of bringing dokucraft from minecraft and I have a little problem.
My problem is the crack/break animations.

Minecraft uses the crack in a grey background and minetest has no background(only the cracks). Could it be possible to mod the cracks part of the code to read the grey as invisible or something?
 

User avatar
Death Dealer
Member
 
Posts: 1379
Joined: Wed Feb 15, 2012 18:46

by Death Dealer » Tue Apr 17, 2012 23:49

i beleave so, transperancy is done with gimp tho. just edit it with gimp and use the eraser to erase the gray and it will be transparent. make sure the option is checked for transparency when you save.
Last edited by Death Dealer on Tue Apr 17, 2012 23:52, edited 1 time in total.
Keep calm and code python^_^
 

User avatar
NakedFury
Member
 
Posts: 151
Joined: Thu Dec 08, 2011 03:55

by NakedFury » Wed Apr 18, 2012 00:03

gonna need to download gimp. I was using paint.net(really like the way tabs are done with it).

thanks for the answer. transparency option is for all .png files right?
 

User avatar
Death Dealer
Member
 
Posts: 1379
Joined: Wed Feb 15, 2012 18:46

by Death Dealer » Wed Apr 18, 2012 00:08

NakedFury wrote:gonna need to download gimp. I was using paint.net(really like the way tabs are done with it).

thanks for the answer. transparency option is for all .png files right?


Yep^^
Keep calm and code python^_^
 

User avatar
NakedFury
Member
 
Posts: 151
Joined: Thu Dec 08, 2011 03:55

by NakedFury » Wed Apr 18, 2012 00:35

this particular breaking animation has grey all over, impossible to just delete it.
 

User avatar
VanessaE
Member
 
Posts: 3894
Joined: Sun Apr 01, 2012 12:38
GitHub: VanessaE
IRC: VanessaE
In-game: VanessaEzekowitz

by VanessaE » Wed Apr 18, 2012 00:55

In The GIMP, do the following:

Load the image.
Do: Layer -> Transparency -> Add Alpha Channel (if it's grayed out, you don't need to add it)
Select -> By Color (or click the icon in the toolbox).
Click on one of the gray areas that you want to erase, but hold the mouse button down.
Very slowly, drag the mouse left and right while holding the button down and observe. You could also alternate between changing the "Threshold" slider and just clicking on the gray area.
When it looks like the right parts will be selected, let go of the mouse button and press the "Delete" key.
Zoom in and make sure it did what you wanted. If not, hit Ctrl-Z a couple times and try again.
Otherwise, do: Layer -> Transparency -> Threshold Alpha...
Adjust the slider until you're satisfied with the results, then click "OK".
Save the file.
Last edited by VanessaE on Wed Apr 18, 2012 01:08, edited 1 time in total.
You might like some of my stuff:
Plantlife ~ More Trees ~ Home Decor ~ Pipeworks ~ HDX Textures (16-512px)
Tips (BTC): 13LdcdUFcNCFAm7HfvAXh5GHTjCnnQj6KE
 

User avatar
Death Dealer
Member
 
Posts: 1379
Joined: Wed Feb 15, 2012 18:46

by Death Dealer » Wed Apr 18, 2012 01:14

oh that looks faster for sure.
Keep calm and code python^_^
 

User avatar
VanessaE
Member
 
Posts: 3894
Joined: Sun Apr 01, 2012 12:38
GitHub: VanessaE
IRC: VanessaE
In-game: VanessaEzekowitz

by VanessaE » Wed Apr 18, 2012 01:19

It can be. If you've got a good source image (low noise, few unwanted colors), those steps will generally take less than 30 seconds. Sometimes, it's just easier to erase pixel by pixel though, as GIMP's select-by-color (and the related "fuzzy" select) can be a little overzealous.
You might like some of my stuff:
Plantlife ~ More Trees ~ Home Decor ~ Pipeworks ~ HDX Textures (16-512px)
Tips (BTC): 13LdcdUFcNCFAm7HfvAXh5GHTjCnnQj6KE
 

User avatar
RabbiBob
Member
 
Posts: 335
Joined: Sat Jan 28, 2012 22:40

by RabbiBob » Wed Apr 18, 2012 01:19

If under Windows:

  • Get irfanview
  • Install
  • open the png in Irfanview
  • File-SaveAs: select PNG as save type
  • Check 'SAVE TRANSPARENT COLOR on the box that appears
  • Click Save
  • A window will appear with the image, click on the color you want to be transparent
  • Done

I use it batch convert my 64x64 textures down to 32x32 and 16x16 before I publish new updates. It's a great grunt work utility.
 

User avatar
Death Dealer
Member
 
Posts: 1379
Joined: Wed Feb 15, 2012 18:46

by Death Dealer » Wed Apr 18, 2012 01:20

true^_^
Keep calm and code python^_^
 

User avatar
Death Dealer
Member
 
Posts: 1379
Joined: Wed Feb 15, 2012 18:46

by Death Dealer » Wed Apr 18, 2012 01:21

RabbiBob wrote:If under Windows:

  • Get irfanview
  • Install
  • open the png in Irfanview
  • File-SaveAs: select PNG as save type
  • Check 'SAVE TRANSPARENT COLOR on the box that appears
  • Click Save
  • A window will appear with the image, click on the color you want to be transparent
  • Done

I use it batch convert my 64x64 textures down to 32x32 and 16x16 before I publish new updates. It's a great grunt work utility.

wow awesome thanks:D good to know
Keep calm and code python^_^
 

User avatar
NakedFury
Member
 
Posts: 151
Joined: Thu Dec 08, 2011 03:55

by NakedFury » Wed Apr 18, 2012 01:51

thanks for the steps for gimp. now I need to finish all the other textures and test it.

are there any plans for making the character be a model so we don't have the fugly hand textures?
 

User avatar
Death Dealer
Member
 
Posts: 1379
Joined: Wed Feb 15, 2012 18:46

by Death Dealer » Wed Apr 18, 2012 01:55

NakedFury wrote:thanks for the steps for gimp. now I need to finish all the other textures and test it.

are there any plans for making the character be a model so we don't have the fugly hand textures?

jordans4ibanes has a build that extends the arm so it an arm not just a hand, no 3rd person perspective for 3d player yet.
Last edited by Death Dealer on Wed Apr 18, 2012 01:56, edited 1 time in total.
Keep calm and code python^_^
 


Return to Minetest Texture Packs

Who is online

Users browsing this forum: No registered users and 7 guests

cron