Results 1 to 4 of 4

Thread: Color/Texture Change?

  1. #1
    and Masterz1337 too! Advancebo's Avatar
    Join Date
    May 2008
    Location
    Georgia, USA
    Posts
    2,012

    Color/Texture Change?

    How do I achieve the effect in Halo 3, where on The Pit, you have the pop up brutes that change colors when you shoot at it, and turns back to normal when not being damaged?

    How would I setup the tags to do so, like if its a shader or animation function.
    Reply With Quote

  2. #2
    Hmmm... MetKiller Joe's Avatar
    Join Date
    Sep 2006
    Location
    Somewhere in space-time
    Posts
    1,196

    Re: Color/Texture Change?

    Quote Originally Posted by Advancebo View Post
    How do I achieve the effect in Halo 3, where on The Pit, you have the pop up brutes that change colors when you shoot at it, and turns back to normal when not being damaged?

    How would I setup the tags to do so, like if its a shader or animation function.
    I'd imagine you could script that when hit, this texture would change to another texture (something you could set as a shader property).

    I'm almost sure it could be done, but I don't know how you'd script it.
    Reply With Quote

  3. #3
    Senior Member teh lag's Avatar
    Join Date
    Oct 2006
    Posts
    3,566

    Re: Color/Texture Change?

    No, you don't use scripts. I don't understand why everyone thinks that scripts are like magical fairies that come down from the sky and make everyting possible.

    First, set one of the export to functions in the tag at the very top to "recent shield damage" (I assume that you're using shields instead of health). It doesn't have to be "a in," that's just the one that I used.



    Then, set up a function like the one below, ensuring that the "scale function by" is set to the same value that you had "recent shield damage" as. I won't get into what all the other values do, so unless you know what you're doing don't make them different from my screenshot.



    Then, duplicate that function, but have the "inverse" flag checked off.

    Then, create two shader transparents. One should have the default bitmaps, and the other should have another set of bitmaps that you want to be used when the object is damaged.

    Set up the first (default) shader like so. Set the "framebuffer fade source" to the function that has "inverse" checked off. Note that "framebuffer fade mode" does not need to be set to anything; that's just how it is in my tag. Under "extra maps", reference the other (damaged) shader.



    Now in the second shader, set "framebuffer fade source" to the original function (without "inverse" checked off).



    That's it.
    Reply With Quote

  4. #4
    and Masterz1337 too! Advancebo's Avatar
    Join Date
    May 2008
    Location
    Georgia, USA
    Posts
    2,012

    Re: Color/Texture Change?

    Thanks

    It worked
    Reply With Quote

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 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
  •