Author Topic: Another mesh problem.. [SOLVED]  (Read 999 times)

Offline Bloo.

  • Space-Child ✌
  • Moderator
  • Elder Grey Pelt
  • *****
  • Posts: 2,657
  • Country: us
  • Floof-O-Meter: 191
  • nyoom
    • Bloopaloozer
    • Bloopalooza FH
    • aLittleProzium
    • Bloopalooza
    • View Profile
    • DeviantArt
Another mesh problem.. [SOLVED]
« 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.



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
« Last Edit: April 08, 2016, 02:11:15 am by Bloo. »


You are amazing <3

Offline Enoki

  • Herba Chronographus
  • Elder Grey Pelt
  • ****
  • Posts: 2,698
  • Country: us
  • Floof-O-Meter: 121
  • Who lives in a portabella under a tree?
    • FantasyFungus
    • EnokiTheDryphon
    • Enoki_G
    • View Profile
    • The Realms of Yugure
Re: Another mesh problem..
« Reply #1 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.

Tmw you planned a ten minute nap but instead took a whole year.
☙Icon by dA JRProducts; Sig by PocketMutt❧

Offline Bloo.

  • Space-Child ✌
  • Moderator
  • Elder Grey Pelt
  • *****
  • Posts: 2,657
  • Country: us
  • Floof-O-Meter: 191
  • nyoom
    • Bloopaloozer
    • Bloopalooza FH
    • aLittleProzium
    • Bloopalooza
    • View Profile
    • DeviantArt
Re: Another mesh problem..
« Reply #2 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.


You are amazing <3

Offline Ruby1234

  • Mean Tutorial Queen
  • Elder Grey Pelt
  • ****
  • Posts: 2,794
  • Country: us
  • Floof-O-Meter: 297
  • aka Phloxenfree.
    • View Profile
Re: Another mesh problem..
« Reply #3 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
}
}
}
}

Offline Bloo.

  • Space-Child ✌
  • Moderator
  • Elder Grey Pelt
  • *****
  • Posts: 2,657
  • Country: us
  • Floof-O-Meter: 191
  • nyoom
    • Bloopaloozer
    • Bloopalooza FH
    • aLittleProzium
    • Bloopalooza
    • View Profile
    • DeviantArt
Re: Another mesh problem..
« Reply #4 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


You are amazing <3

Offline Ruby1234

  • Mean Tutorial Queen
  • Elder Grey Pelt
  • ****
  • Posts: 2,794
  • Country: us
  • Floof-O-Meter: 297
  • aka Phloxenfree.
    • View Profile
Re: Another mesh problem..
« Reply #5 on: April 08, 2016, 01:44:59 am »
Haha, no worries!

Offline Warriorstrike

  • . "The truth is often what we make of it; you heard what you wanted to hear, believed what you wanted to believe."
  • Ancient Silver Mane
  • *****
  • Posts: 4,221
  • Country: us
  • Floof-O-Meter: 346
  • . Remember… the Force will be with you. Always.
    • warriorstrike
    • warriorstrike
    • View Profile
    • My Tumblr
Re: Another mesh problem.. [SOLVED]
« Reply #6 on: April 08, 2016, 02:17:27 am »
Locking this topic since you have found the answer to your problem.

If you define yourself by the power to take life, the desire to dominate, to possess… then you have nothing.