Author : afisher


Reply
Reply
 
Thread Tools Display Modes
Dio's Avatar
Old (#1)
Im having issues with the opacity for a hair map. Simple alpha texturing makes the negative space a window through the rest of the model and Masked creates too harsh a transition. Creating a shader out of it resolves the prior issues but inverts the normals when 2 sided is turned on. Is there some method that elludes me or is this a technical limitation of the engine?
All animals are created equal, but some animals are more equal than others.
JPisME.com
Offline , vertex, 47 Posts, Join Date Mar 2005, Location ATL  
   Reply With Quote

Fordy's Avatar
Old (#2)
When you say that masked textures creates too harsh a transition, do you mean there's an obvious edge around the hair? If thats the case, you may need to save your texture in a different format. I think DXT 5 may do the trick.

Take a look here : http://udn.epicgames.com/Two/TextureSpecifications#DXT5
Offline , spline, 196 Posts, Join Date Oct 2004, Location England  
   Reply With Quote

lkraan's Avatar
Old (#3)
I had that same problem where the option masked really messes up the alpha texture. Even when you convert it to DXT5.

I wold try to create a FinalBlend shader for this material and play around with the ZWrite option.
http://udn.epicgames.com/Two/MaterialsFinalBlend
Offline , polygon, 611 Posts, Join Date Oct 2004, Location Netherlands  
   Reply With Quote

oXYnary's Avatar
Old (#4)
Hmm I noticed this also. So far no luck with the finalblend options. :/
Offline , veteran polycounter, 4,629 Posts, Join Date Oct 2004, Location Seattle, WA Send a message via AIM to oXYnary Send a message via MSN to oXYnary  
   Reply With Quote

Dio's Avatar
Old (#5)
When masked is applied the editor posterizes the alpha channel into a black and white image Resulting in the harsh hair boundries which are fine for certain styles but I'd like a more subtle effect.
Using the FinalBlend I set the FrameBuffer to AlphaBlend, the options to all true, and tweaked the alphaRef # and pretty much achieved my goal. The void window effect might be feathered along the edges but if I tweak the original alpha with the alpha ref choke it should work seemless.




Edited:
I was mistaken, the void is exaserpated in-game and leaves me at square one.
All animals are created equal, but some animals are more equal than others.
JPisME.com
Offline , vertex, 47 Posts, Join Date Mar 2005, Location ATL  
   Reply With Quote

KDR_11k's Avatar
Old (#6)
AlphaRef applies to the alpha test ("masked"). I'm not sure when the alpha ordering errors appear but sometimes it works, sometimes not. Separating the alpha polies into another material (or at least making sure they are written last) might help though I don't know if anything other than Milkshape has a fixed export order for the mesh. Generally, don't apply the alpha texture to more than necessary, the engine will draw solid surfaces first and prevent those "holes" from happening.
No deity could fill any of our requirements if handicapped with existence. -Ambrose Bierce, The Devil's Dictionary
Offline , veteran polycounter, 4,550 Posts, Join Date Oct 2004, Location Peine, Niedersachsen, Germany, Europe, Sol 3, Milky Way  
   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Copyright 1998-2012 A. Risch