#3
6th Jun 2009 at 5:04 AM
Last edited by 5parrowhawk : 6th Jun 2009 at
8:59 AM.
Quote: Originally posted by Delphy
Yes but it'll just layer on whatever is underneath (ie the clothing).
|
Hi Delphy,
Does that mean that, for instance, it's not possible to use alpha to create a skirt with a slit?
I'm curious partly because the Pattern Packager seems to force the background filler to opaque. Is it possible to make the background filler transparent (e.g. by hex editing), and if so, what is the result (e.g. when applying a side-slit pattern to the skirt)? Will the clothing mesh in that area render transparent, or is there a clothing base colour which goes underneath that?
BTW - Thanks so much for your very cool tool!
EDIT: Well, I fired up the old hex editor and tried it myself. Results:
- Simply setting the background alpha to 0 has no effect. The game still treats it as if it has alpha 1.
- I tried deleting the entire ColorFill step for the background fill. This produced pretty funky results; the game would draw in the supposedly empty area with what appeared to be random colours (for example, the contents of the previous pattern texture, or another fill colour from the same piece of clothing, or some very tasteful shade of green from goodness knows where).
- Right now I am wondering whether it is possible to insert blending instructions into the background ColorFill step, and what the effect of that would be. Also, knowing a bit about DirectX, isn't it odd that they're using DestAlpha and not SrcAlpha for the blending functions? Am continuing my hackery-pokery to see what happens. (Edit: Doesn't work either. Same result. I am provisionally assuming that the game is combining the clothing texture with the pattern texture in a manner that always falls back on the clothing texture's alpha when the pattern is semi-transparent, even without a base colour.)
I do hope that alpha cutouts are possible at least when we finally get to mess with the actual clothing textures. Otherwise it's gonna be a royal pain to do things like ripped jeans, lace edges, and so on.