PDA

View Full Version : Boundaries of objects have unattractive black pixels


andrewjworz
09-25-2011, 06:52 AM
I am using Xfrog tree models in Vizard (.3ds format). Once the objects are loaded into Vizard 3.0, there are ugly (unrealistic) black pixels at the boundaries of every leaf.

How can I change the color values of the pixels which are on the boundaries of the object so that they are some kind of an average of the pixels from the leaf and of what is in the background? Is this something that can be done with the alphaFunc()?

Andy

Veleno
09-26-2011, 02:45 PM
Hi Andy, this kind of artifact is usually a texture issue. It tends to happen when alpha is used on a cutout that has black as the background color. It can also happen in textues that use pre-multiplied alpha.

What format are the textures in?

Veleno
09-26-2011, 04:02 PM
I've attached a couple example images that should give you an idea about what's going on.