About Store Forum Documentation Contact



Post Reply 
Problems with Decal with tansparent regions
Author Message
Gian-Reto Offline
Member

Post: #1
Problems with Decal with tansparent regions
Hi all

this is maybe a dumb question, but here it goes anyway:

I'm trying to create a decal of a small plant.

I created a Photoshop texture of this plant, with a transparent background. Now, when I create my material and apply this to the decal, the background is transparent, but I get ugly white borders around the painted plant no matter what shader I pick.

If I increase the alpha, which seems to cut away the border for the alpha test shader in the preview window, the texture itself is getting more transparent on the decal.

What am I doing wrong?


Thanks for any help

gian-Reto
01-02-2012 06:34 PM
Find all posts by this user Quote this message in a reply
Gian-Reto Offline
Member

Post: #2
RE: Problems with Decal with tansparent regions
No one can help me with my problem?

Then let me rephrase my qestion:

-> How should I create an Image for a Decal with transparent areas so that I get no white borders?

Regards

Gian-Reto
01-09-2012 08:44 AM
Find all posts by this user Quote this message in a reply
knocks Offline
Member

Post: #3
RE: Problems with Decal with tansparent regions
You are better using an alpha channel to depict the area of transparency and have your leaves on a solid green background and saving the image as an .tga (Targa)
01-09-2012 10:51 AM
Find all posts by this user Quote this message in a reply
Gian-Reto Offline
Member

Post: #4
RE: Problems with Decal with tansparent regions
Okay, tried TGA with an alpha channel, still the same problem. I made a picture to illustrate my problem better, see attachment. Alpha Testing is not working

I tried both decals and mesh_overlays, no difference



EDIT: after rereading your answer I finally got what you meant. Instead of a transparent background (which seems to be interpreted as white) I should use a colored one.... I might try that, still I fail to see why alpha testing doesn't seems to work with the decals...


Attached File(s) Image(s)
   
(This post was last modified: 01-09-2012 01:32 PM by Gian-Reto.)
01-09-2012 01:26 PM
Find all posts by this user Quote this message in a reply
Esenthel Online
Administrator

Post: #5
RE: Problems with Decal with tansparent regions
I think decals support only alpha blending
01-11-2012 03:02 PM
Find all posts by this user Quote this message in a reply
Post Reply