Title: [BEGINNERS] Adding Transparency to your Imports! Post by: Spex130 on February 13, 2014, 11:20:01 AM Alright, so you want to make parts of your texture see-through, do you? Well then, you've come to the right place!
What you'll need: Brawlbox .71: http://forums.kc-mm.com/Gallery/BrawlView.php?Number=35494 (http://forums.kc-mm.com/Gallery/BrawlView.php?Number=35494) FitSZerosuit00.pac: https://drive.google.com/folderview?id=0B4vhNdf69qaSQnZHYlZfSWNJM2M&tid=0B4vhNdf69qaSZ0N0MnBjOXFYMU0 (https://drive.google.com/folderview?id=0B4vhNdf69qaSQnZHYlZfSWNJM2M&tid=0B4vhNdf69qaSZ0N0MnBjOXFYMU0) Your import, fully rigged. If you find something wrong and have to reimport, you will have to repeat this process. Prior Warnings: First off, if you're applying this to a material that already is specially built (like Specular, ENV, etc), this will DESTROY the previous features. There is a way to do that, it won't be covered here. Two, this can be done with Previous versions of BrawlBox, but don't cross files that were built with different versions. Try to import materials from .67 into .71 and the program will crash. DON'T CROSS THE STREAMS. Step 1: Extract the Material/Shader This step will stay the same no matter what you're doing. First, we want to find a texture in a vanilla Brawl file that uses Transparency. If we open up BrawlBox, and in turn open up our FitSZerosuit00.pac, we'll be able to find textures under the red TextureData[0] node. (http://imageshack.com/a/img849/9645/t3ai.png) Here, we have Fit_Nsam_Atama. That's pretty transparent. Let's use that. So, now that we've found a texture that's transparent, let's find the Material that uses that texture! If we click on the little plus on the MDL0 node in our ModelData[0] node, we can look at the folder representation of the individual parts of our model. We'll want to look inside Materials. Because we're looking for a Material. Remember? In specific, we're looking for the material that's holding a reference to our Texture! (http://imageshack.com/a/img822/3616/qnsm.png) Like this guy. Once we've found this guy, we need to find what Shader he's using. See, texture attributes ingame rely on a combination of Materials and Shaders to achieve how they look, whether they be shiny, glowing, reflective, matte, scratched, etc. So, in the right window, scroll until you find what Shader your material is using. (http://imageshack.com/a/img827/2294/t7m3.png) When you scroll, make sure you have the Material highlighted, and not its Texture Reference. They contain different information, and you won't find Shader details there. In the MDL0's folder section, there should be a Shader folder as well. Look for the Shader that your Material was using. (http://imageshack.com/a/img196/9286/2892.png) And now that you've found both, export both the Material and the Shader to somewhere you'll remember. (http://imageshack.com/a/img401/6485/iai8.png) And now that we have this info, we can move on to step two. You can close the Zero Suit file now. Step 2: Apply the Material/Shader So, open up your imported model. Nice, rigged, all that jazz. Just needs the final touches. I'm just going to apply this process to Popo, but you can do it to whomever. AS A NOTE: Your texture must be compressed in such a way that it allows Transparency. Use CMPR for Extreme Compression, RBG5A3 for High Detail, and RGB5A8 for no Compression whatsoever. First, find the material that uses the texture you want transparent: (http://imageshack.com/a/img163/4517/lp4k.png) Copy down its texture reference. Next, use the replace function on it, and replace it with the Material you exported earlier. (You DO remember where it is, right?) (http://imageshack.com/a/img547/9123/eol0.png) (http://imageshack.com/a/img401/6485/iai8.png) Next, once you replace it, you should see that the material name stayed the same, but the texture references got destroyed. Put them back. (http://imageshack.com/a/img706/3716/tuce.png) (http://imageshack.com/a/img163/4517/lp4k.png) Next, right-click on your MDL0 node and Create a new Shader (http://imageshack.com/a/img545/7038/oqjf.png) Replace this Shader with the Shader you exported earlier. (http://imageshack.com/a/img809/7066/uf6n.png) And then, last but not least, set your material's Shader to the new Shader you just created! (http://imageshack.com/a/img850/4949/355g.png) And poof. Your texture should now be transparent ingame! Probably. Post any questions you have and I'll try to answer them if I can! Title: Re: [BEGINNERS] Adding Transparency to your Imports! Post by: Gamma Ridley on February 13, 2014, 01:57:18 PM If I recall correctly, you don't actually need the shader, the material will usually be sufficient. Also, this is good if you're a complete beginner and you're working on a character, but if you're working on a stage, try nabbing a transparent material from a stage element and use that, since the lighting settings will be different.
But yes, this tutorial is good. Good good. Title: Re: [BEGINNERS] Adding Transparency to your Imports! Post by: the_randomizer on February 23, 2014, 10:06:27 AM I should note that adding a new shader is impossible for Wolf, it's grayed out in Brawl Box 0.71, ctrl+H cannot be used at all, even after properly replacing the material, it doesn't work, I can't add the new shader at all.
Title: Re: [BEGINNERS] Adding Transparency to your Imports! Post by: BlackJax96 on February 23, 2014, 11:24:44 AM You can't have more shaders than materials.
Title: Re: [BEGINNERS] Adding Transparency to your Imports! Post by: Mewtwo2000 on February 23, 2014, 12:06:50 PM Come on, you don't need to copy over materials nor shaders at all, with the EnableBlend and XLUMaterial properties on materials set on true you're done...
It's easier than copying over, you only need to experiment just a little... Title: Re: [BEGINNERS] Adding Transparency to your Imports! Post by: Spex130 on February 24, 2014, 09:36:24 AM There you have it, leave it the pros you guys!
|