Why my sprite dont work? Created 7 years ago2017-06-30 08:31:12 UTC by Mr. Cowboy Zombie Mr. Cowboy Zombie

Created 7 years ago2017-06-30 08:31:12 UTC by Mr. Cowboy Zombie Mr. Cowboy Zombie

Posted 7 years ago2017-06-30 08:31:12 UTC Post #335819
I used sprite explorer for make a plant and I put black background but when I use It in vhe seems all black.
Wtf happens?
Mr. Cowboy Zombie Mr. Cowboy ZombieSemper fidelis
Posted 7 years ago2017-06-30 10:21:02 UTC Post #335820
Hmm, I think I know what you should do. :P
Open the .bmp file in Wally and make sure that the first colour in the index is the one which needs to be transparent. I assumed you want an alphatest sprite since it's a plant.

After that, save the .bmp and then make a sprite with it.
Also, use HL Texture Tools instead of Sprite Explorer. :)
Admer456 Admer456If it ain't broken, don't fox it!
Posted 7 years ago2017-06-30 10:34:36 UTC Post #335821
But isn't Additive render mode supposed to make all the black color become transparent?
Hammer will still render all the black parts anyway, even if you change the render mode and the FX amount. All you have to do is to compile your map.
Posted 7 years ago2017-06-30 10:38:37 UTC Post #335823
Lol, but what I mean the plant dont see, only appear me the black square
Mr. Cowboy Zombie Mr. Cowboy ZombieSemper fidelis
Posted 7 years ago2017-06-30 16:36:08 UTC Post #335828
Its gonna be hard to troubleshoot this without seeing the file; could I look at your .spr file?
Posted 7 years ago2017-06-30 18:41:25 UTC Post #335832
Here the problematic sprite.
And if i made something wrong tell me the correct way yo do It.
https://www.mediafire.com/file/1s8nnlgog9q34yn/problem_sprite.rar
Mr. Cowboy Zombie Mr. Cowboy ZombieSemper fidelis
Posted 7 years ago2017-06-30 22:02:29 UTC Post #335835
Okay, the problem is threefold:

1. Your transparent color seems to not have been palette index 255 (very last color spot on the palette). This can happen if you use black as your background as the index conversion may choose a different duplicate as your color. You can use Wally to swap the indexes, or HL-Texture tools to pick it. Also the best bets to go with when making your transparent color are RGB 0 0 255 or RGB 0 255 0.

2. You saved the wrong format. Masked transparency is "AlphaTest". Your sprite format was "indexalpha" which is a totally different type of transparency used for decals and is the reason why it showed up as a black square in VHE

3. Stuff like plants/trees that stand upright or have a part that should be planted in the ground should be using "Parallel upright" instead of regular parallel (which can look like the plant is uprooting itself at angles).

Sprites can be pretty annoying assets to make and understand, I made a corrected version here:
http://www.the303.org/stuff/plant.rar

Also I wrote a big tutorial series on these:
http://www.the303.org/tutorials/gold_sprite.htm
Posted 7 years ago2017-07-01 09:25:32 UTC Post #335842
Really thanks, in google i cant find any good tutorial about make your sprites.
;)
Mr. Cowboy Zombie Mr. Cowboy ZombieSemper fidelis
You must be logged in to post a response.