Author : Nate Broach


Reply
Reply
 
Thread Tools Display Modes
Tom Ellis's Avatar
Old (#1)
Hey there,

I'm just trying to setup a decalMaterial and last time I did it, I'm sure I just plugged in my diffuse and set the blend to modulate. However I just downloaded the June UDK (I was using an old build prior to this) and now I get a message saying it can't use modulate with dynamic lighting.

I Googled and found Metalliandys answer to a similar question over on Eat3D but I didn't fully understand his solution, which was to invert the diffuse and use BlendMode Translucent.

I tried inverting each of my diffuse channels in Photoshop (which is just 3 black/white images plugged into R,G,B to get 3 maps out of 1 tga) but this just resulted in a black plane.

I'm clearly doing something wrong so any help would be much appreciated!

Thanks
Offline , dedicated polycounter, 1,809 Posts, Join Date Aug 2009, Location Warwickshire, UK  
   Reply With Quote

divi's Avatar
Old (#2)
he inverted his diffuse because they are b/w and can be used as a opacity map for the translucency. if your decals aren't b/w that obviously won't help you a lot. depending on what the decal look like you could extract a mask from the diffuse by clamping values, but you are probably better off just using an alpha...

so yeah, diffuse in the diffuse slot, alpha in the opacity slot and blend mode to translucent.
Offline , polycounter, 865 Posts, Join Date Jan 2009,  
   Reply With Quote

Tom Ellis's Avatar
Old (#3)
Thanks Divi,

Yeah my diffuse maps are grayscale, I'm just using the RGB channels of a TGA so I can get 3 different diffuse textures out of a single TGA. The plan was to create 3 materials, and then the R into the diffuse of the first, G into the diffuse of the second etc.

I was hoping to do it without a mask but if that's the only way then I guess that'll have to do!

Thanks again
Offline , dedicated polycounter, 1,809 Posts, Join Date Aug 2009, Location Warwickshire, UK  
   Reply With Quote

divi's Avatar
Old (#4)
ah, now i understand your problem should've read your first post more carefully.
i would use the texture sample only for the opacity and do the color of the decal with a constant. that way you can avoid getting color bleeding due to mipmaps and the dxt compression. inverting inside the material editor works via the oneMinus node which can come in handy depending on the decal to get even more variation.
Offline , polycounter, 865 Posts, Join Date Jan 2009,  
   Reply With Quote

Tom Ellis's Avatar
Old (#5)
Perfect Divi thanks a lot!
Offline , dedicated polycounter, 1,809 Posts, Join Date Aug 2009, Location Warwickshire, UK  
   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