Mini Tutorial: Invisible Recolors
Apr. 13th, 2010 07:42 pm![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
It's easier than you'd think to make an invisible object recolor. About half these steps, I picked up from a Lord Darcy tutorial, the rest was from a HugeLunatic tutorial. I figured it was about time to put 'em all in one place.
Start as though making a nice, normal recolor, but substitute a clear .png file of the appropriate size for your largest image. Use Build DDS on DXT3 or DXT5 to maintain transparency.
If you’re lucky, that’s all you need to do. Test your recolor.
Got funky white shiny bits or weird solid black bits? Then you need to look at the TXMT.
Set Reflectivity to 0.0 (or 1)...
Set stdMatAlphaTestEnabled to 1
And stdMatEnvCubeMode to none.
Commit, save, test again.
That should do it!
If it doesn’t?
Set stdMatAlphaBlendMode to blend (lower case B is important)…
Still stuck?
Set stdMatUntexturedDiffAlpha to 0
That has worked on everything I've tried so far. On certain objects, like the OFB crafting tables or Bon Voyage massage tables, some features are attached and would require either cloning or default replacing to change at all.
Start as though making a nice, normal recolor, but substitute a clear .png file of the appropriate size for your largest image. Use Build DDS on DXT3 or DXT5 to maintain transparency.
If you’re lucky, that’s all you need to do. Test your recolor.
Got funky white shiny bits or weird solid black bits? Then you need to look at the TXMT.
Set Reflectivity to 0.0 (or 1)...
Set stdMatAlphaTestEnabled to 1
And stdMatEnvCubeMode to none.
Commit, save, test again.
That should do it!
If it doesn’t?
Set stdMatAlphaBlendMode to blend (lower case B is important)…
Still stuck?
Set stdMatUntexturedDiffAlpha to 0
That has worked on everything I've tried so far. On certain objects, like the OFB crafting tables or Bon Voyage massage tables, some features are attached and would require either cloning or default replacing to change at all.
no subject
Date: 2010-04-15 12:59 am (UTC)This can be REALLY useful :)
no subject
Date: 2010-04-15 01:01 am (UTC)no subject
Date: 2010-04-16 11:48 pm (UTC)By the way, when are we going to get another State of Hat's Sinuses Update?
no subject
Date: 2010-04-17 01:07 am (UTC)... Do people really WANT an update on my sinuses? Spring seems to be my enemy, generic sudafed my friend...
no subject
Date: 2010-04-24 06:18 am (UTC)FyrDragon
no subject
Date: 2010-04-24 06:23 am (UTC)no subject
Date: 2010-04-26 02:35 am (UTC)FyrDragon
no subject
Date: 2010-04-26 04:45 am (UTC)no subject
Date: 2010-04-26 05:51 am (UTC)FyrDragon
no subject
Date: 2010-04-26 05:56 am (UTC)A few questions about fixing those black bits.
Date: 2010-12-28 03:46 pm (UTC)Re: A few questions about fixing those black bits.
Date: 2011-01-03 01:17 am (UTC)You may have to add the stdMat thingies yourself, if the recolor file doesn't already have them. Just make sure they're exactly how I wrote them when you add them. The fact that the options aren't there is probably why you're having trouble doing an alpha edit.
Re: A few questions about fixing those black bits.
Date: 2011-01-03 02:33 am (UTC)If you want to see them in action they're in the December theme thread.
Re: A few questions about fixing those black bits.
Date: 2011-01-03 07:51 am (UTC)