Home Gallery Resources The Team Rules chat Login Register
Pages: [1]
Author Topic: Partially Transparent Textures  (Read 2027 times)
0 Members and 1 Guest are viewing this topic.
ForOhFor Error
Holy Kitten
*
Offline Offline

Posts: 1472


DOG is your destiny

  • Awards Super Saiyan Topic Pin Collector Starstormer Famous Hacker

  • View Profile Awards
    « on: April 19, 2013, 06:09:35 PM »


    I'm working on a stage, and I need to add a semi-transparent glass texture. I have a png of it imported as a CI8 texture with a palette, and the material has EnableAlphaFunction set to true, but while the brawlbox preview is fine, the texture is opaque ingame.
    Logged


    FC: 2191-7379-6272

    Gamma Ridley
    ~Mercenary~
    Moderator
    ****
    Offline Offline

    Posts: 4606


  • Awards Featured Super Saiyan Topic Heart Container Famous Hacker

  • View Profile WWW Awards
    « Reply #1 on: April 19, 2013, 06:15:26 PM »


    In my testing, I've found that the alpha value in KReg3Color in the TEV Konstant Block is useful for semi-opacity. KonstantAlphaSelection in the shader probably has to be set to KSel_3_Alpha I think.
    Logged


    ForOhFor Error
    Holy Kitten
    *
    Offline Offline

    Posts: 1472


    DOG is your destiny

  • Awards Super Saiyan Topic Pin Collector Starstormer Famous Hacker

  • View Profile Awards
    « Reply #2 on: April 19, 2013, 06:30:58 PM »


    So would 0 in that be fully transparent, or 255?
    Logged


    FC: 2191-7379-6272

    Gamma Ridley
    ~Mercenary~
    Moderator
    ****
    Offline Offline

    Posts: 4606


  • Awards Featured Super Saiyan Topic Heart Container Famous Hacker

  • View Profile WWW Awards
    « Reply #3 on: April 19, 2013, 06:43:35 PM »


    Shiet, I've forgotten. I believe 255 is completely opaque...?

    100/128 would be a good starting point I think.
    Logged


    ForOhFor Error
    Holy Kitten
    *
    Offline Offline

    Posts: 1472


    DOG is your destiny

  • Awards Super Saiyan Topic Pin Collector Starstormer Famous Hacker

  • View Profile Awards
    « Reply #4 on: April 19, 2013, 08:04:42 PM »


    :/ Still fully opaque.
    Logged


    FC: 2191-7379-6272

    Gamma Ridley
    ~Mercenary~
    Moderator
    ****
    Offline Offline

    Posts: 4606


  • Awards Featured Super Saiyan Topic Heart Container Famous Hacker

  • View Profile WWW Awards
    « Reply #5 on: April 19, 2013, 08:05:48 PM »


    Hnnnnnghnjecnjnw

    Try examining Tabuu's materials/shaders, that's what I did. You should be able to build up your own by examining his.
    Logged


    ForOhFor Error
    Holy Kitten
    *
    Offline Offline

    Posts: 1472


    DOG is your destiny

  • Awards Super Saiyan Topic Pin Collector Starstormer Famous Hacker

  • View Profile Awards
    « Reply #6 on: April 19, 2013, 08:06:48 PM »


    Maybe look at falco's scouter thing? Tabuu seems like a complex model.
    Logged


    FC: 2191-7379-6272

    Gamma Ridley
    ~Mercenary~
    Moderator
    ****
    Offline Offline

    Posts: 4606


  • Awards Featured Super Saiyan Topic Heart Container Famous Hacker

  • View Profile WWW Awards
    « Reply #7 on: April 19, 2013, 08:07:43 PM »


    Tabuu isn't too bad, but yeah that might work a whole lot better, actually. Didn't even think about that.
    Logged


    DarkPikachu
    Angel Kitten
    ***
    Offline Offline

    Posts: 3069


    complexity == fun

  • Awards Super Saiyan Topic Heart Container KCMM Veteran Tutorial Writer

  • View Profile Awards
    « Reply #8 on: April 19, 2013, 08:14:31 PM »


    BJ mentioned something quite a while ago about the material definitions needing to be linked to the object before alpha will work...

    I have an RGBA8 texture for Pikachu's main texture to be used for alpha on Pika's tail.

    if all goes well, it should be semi-transparent to make the "fur" look more realistic


    I currently get the same thing...
    it's fine in brbx,
    but shows up black where the alpha is on the model in game.


    EDIT:
    yes, the alpha function needs to be on, and you need to set the TEV's correctly...
    (I havn't played around with the TEV's too much to know exactly how they work)
    « Last Edit: April 19, 2013, 08:16:52 PM by DarkPika » Logged


    Quote: Friedslick6
    you have been through a lot of hassle. I've watched every topic you posted on this, and most of them seemed to disintegrate gradually.
    But the coolest part was that you didn't stop working on it despite that.

    Quote: Internet Explorer
    you're doing more with your life right now than probably most other people around you. You're a valuable asset to the Smash community. So yeah, you should be proud.

    quote: Greg
    You do have a gift which I've seen many developers use to their advantage. You can become a great coder, and with all of those ideas I think you can really build something great.

    BlackJax96
    Brawl Mod God
    Boss Kitten
    ****
    Offline Offline

    Posts: 4612


  • Awards KCMM Veteran Sniper King for a Day Featured

  • View Profile Awards
    « Reply #9 on: April 19, 2013, 08:22:40 PM »


    http://forums.kc-mm.com/index.php?topic=38135.0

    If you want the texture to be semi-opaque, like the lenses of some sweet shades or something, then you'll want to set EnableBlend to true instead of using the alpha function.
    When using the alpha function, keep EnableBlend set to false.
    Logged

    Pages: [1]
    Print
    Jump to: