Page 1 of 1
texture problem

Posted:
Tue Apr 17, 2012 23:46
by NakedFury
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?

Posted:
Tue Apr 17, 2012 23:49
by Death Dealer
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.

Posted:
Wed Apr 18, 2012 00:03
by NakedFury
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?

Posted:
Wed Apr 18, 2012 00:08
by Death Dealer
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^^

Posted:
Wed Apr 18, 2012 00:35
by NakedFury
this particular breaking animation has grey all over, impossible to just delete it.

Posted:
Wed Apr 18, 2012 00:55
by VanessaE
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.

Posted:
Wed Apr 18, 2012 01:14
by Death Dealer
oh that looks faster for sure.

Posted:
Wed Apr 18, 2012 01:19
by VanessaE
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.

Posted:
Wed Apr 18, 2012 01:19
by RabbiBob
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.

Posted:
Wed Apr 18, 2012 01:20
by Death Dealer
true^_^

Posted:
Wed Apr 18, 2012 01:21
by Death Dealer
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

Posted:
Wed Apr 18, 2012 01:51
by NakedFury
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?

Posted:
Wed Apr 18, 2012 01:55
by Death Dealer
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.