Feral Heart

Help & Guidance => Game Help => Topic started by: Bloo. on April 06, 2016, 03:27:16 pm

Title: Another mesh problem.. [SOLVED]
Post by: Bloo. on April 06, 2016, 03:27:16 pm
So...I've had the problem before where there was black surrounding things like leaves on my meshes which was quickly solved by adding this:

Code: [Select]
alpha_rejection greater_equal 128
I've now run into a different problem where the code above doesn't work, I feel it may have something to do with the fact that the color surrounding parts of my mesh isn't black but a lighter color of what the material color is.

(http://i68BannedImageSite/2v193c2.png)

Here's what this object's code looks like for that particular part of the material:

Code: [Select]
material celestialtree1bl
{
    technique
    {
        pass
        {
            texture_unit
            {
                alpha_rejection greater_equal 128
                texture celestialtree1bl.png
                filtering trilinear
            }
        }
    }
}

I've already tried making the 128 a larger number as well as a smaller number but nothing is getting rid of that blockiness! Any help is appreciated, thanks!<3
Title: Re: Another mesh problem..
Post by: Enoki on April 06, 2016, 03:50:12 pm
Hmmm, I can't seem to find anything wrong with y'er coding at the moment, but I'll definitely compare it to some others when I get on m'computer. (Foruming it on the phone)

'Ave ye tried any other images with the mesh's coding? It could be a faulty texture that's causing the issue.
Title: Re: Another mesh problem..
Post by: Bloo. on April 06, 2016, 03:54:50 pm
Hmmm, I can't seem to find anything wrong with y'er coding at the moment, but I'll definitely compare it to some others when I get on m'computer. (Foruming it on the phone)

'Ave ye tried any other images with the mesh's coding? It could be a faulty texture that's causing the issue.

Indeed I have :c There were some dinosaur meshes I'd converted but their teeth had the color around it. There were some dinosaurs with black around their teeth, which that code fixed. However there was one with brown around the teeth and another with olive green around the teeth that the code didn't seem to have an effect on.
Title: Re: Another mesh problem..
Post by: Ruby1234 on April 07, 2016, 10:07:48 pm
The code is in the wrong place, it goes above texture_unit
Code: [Select]
material celestialtree1bl
{
technique
{
pass
{
alpha_rejection greater_equal 128
texture_unit
{
texture celestialtree1bl.png
filtering trilinear
}
}
}
}
Title: Re: Another mesh problem..
Post by: Bloo. on April 08, 2016, 12:57:31 am
The code is in the wrong place, it goes above texture_unit
Code: [Select]
material celestialtree1bl
{
technique
{
pass
{
alpha_rejection greater_equal 128
texture_unit
{
texture celestialtree1bl.png
filtering trilinear
}
}
}
}

Oh sugar...I knew that too! What a simple mistake holding me up haha, thank you!<3
Title: Re: Another mesh problem..
Post by: Ruby1234 on April 08, 2016, 01:44:59 am
Haha, no worries!
Title: Re: Another mesh problem.. [SOLVED]
Post by: Warriorstrike on April 08, 2016, 02:17:27 am
Locking this topic since you have found the answer to your problem.