Results 1 to 7 of 7

Thread: Weird shader problem

  1. #1
    sucks and is talentless Gravemind's Avatar
    Join Date
    Jan 2010
    Location
    Australia
    Posts
    23

    Weird shader problem

    Im trying to make a halo3 assault rifle, ive got the model done but it keeps acting weird ingame...
    No matter what i do with the shaders and bitmaps it always has these problems:
    It either goes all weird like this: (3ds max also does this when i have hardware shading turned on)
    http://img441.imageshack.us/i/pic1qq.png

    or it has weird random colour differences like this: (mainly on the top of the ar and on the grip)
    http://img443.imageshack.us/i/pic2r.png

    can someone tell me whats causing this?
    Reply With Quote

  2. #2

    Re: Weird shader problem

    Looks like an Alpha channel thinking it's transparent to me.


    Remake your shaders and make them just simple (basic diffuse and nothing more) and see what happens.
    Reply With Quote

  3. #3
    sucks and is talentless Gravemind's Avatar
    Join Date
    Jan 2010
    Location
    Australia
    Posts
    23

    Re: Weird shader problem

    It just went mostly invisible again... Could this be the problem?:
    ==> !!WARNING!! bitmap with greater than 1-bit alpha being compressed as DXT1 <==

    tool says it with all the bitmaps i compile, how do i fix this?
    Reply With Quote

  4. #4
    Neanderthal Dwood's Avatar
    Join Date
    Sep 2008
    Location
    Wouldn't u like to know?
    Posts
    4,189

    Re: Weird shader problem

    Change the compression to dxt3 in the bitmap tag, and recompile the real bitmap.
    Reply With Quote

  5. #5
    sucks and is talentless Gravemind's Avatar
    Join Date
    Jan 2010
    Location
    Australia
    Posts
    23

    Re: Weird shader problem

    I changed it to DXT3 with kornman00 (normal guerilla wouldnt let me) and it just went back to DXT1 when i recompiled it

    Edit: I took out the alpha but now instead of being half invisible it has the annoying weird colour difference like in the 2nd pic.
    Last edited by Gravemind; March 19th, 2010 at 06:12 AM.
    Reply With Quote

  6. #6

    Re: Weird shader problem

    Halo 3 uses the alpha channel as the specular mask. Remove the alpha channel and recompile as DXT1. If your lazy, check the "not alpha-tested" flag in the shader model tag and you won't have to recompile.
    Reply With Quote

  7. #7
    sucks and is talentless Gravemind's Avatar
    Join Date
    Jan 2010
    Location
    Australia
    Posts
    23

    Re: Weird shader problem

    It still has the random highlights, ill redo the materials in max and try to make the shaders better
    Reply With Quote

Thread Information

Users Browsing this Thread

There are currently 6 users browsing this thread. (0 members and 6 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •