color changing tiles?

Discussion in 'Mapping Questions & Discussion' started by ProselyteCanti, Jun 13, 2014.

  1. ProselyteCanti

    ProselyteCanti L2: Junior Member

    Messages:
    91
    Positive Ratings:
    10
    Like for a disco. I was thinking maybe animated vmt's, but is there an easier way to do this? Like where the floor tiles change colors every couple seconds?
     
  2. Idolon

    aa Idolon the worst admin

    Messages:
    1,510
    Positive Ratings:
    4,330
    You'll need a vtf with multiple frames. You could just make it an animated texture, but you can also have the map control it via env_texturetoggle. env_texturetoggle is probably the way to go, since you can manually control each tile within the map, rather than just letting animations do it for you.

    If you decide you want to just animate them, you may want to make sure that the tiles don't all animate together, staying in sync. You can randomize that stuff through material proxies.
     
  3. henke37

    aa henke37

    Messages:
    1,878
    Positive Ratings:
    440
    I was actually doing a disco floor light sequencer generator in flash some time ago. Send me a PM if that sounds interesting.
     
  4. Werewolf

    aa Werewolf Probably not a real Werewolf

    Messages:
    753
    Positive Ratings:
    213
    Or if all the tiles were white textured func_brushes, you could use the 'Color' input to set their colors. Combine it with a logic_case that's recieving a 'PickRandomSuffle' input every so often, you could have randomly picked colors
     
  5. Dr. Orange

    Dr. Orange L6: Sharp Member

    Messages:
    362
    Positive Ratings:
    271
    You can also use material proxies that first sets a random color to the texture face if used on a funch_brush, and then changes the color over time. I'm pretty sure you can make it switch instantly too, I haven't digged deep enough into it to tell. Here's where I found this info: http://www.nodraw.net/2010/01/dynamic-materials-with-proxies/
     
  6. Tumbolisu

    aa Tumbolisu  I ⌄ I 

    Messages:
    937
    Positive Ratings:
    905
    Good job guys on necrobumping a one year old thread.
    Something I did for fun to have a face appear in the colors of a rainbow was to make a one dimensional texture (one pixel high) that is simply a rainbow. In the .vmt I gave it a texturescroll proxy and In hammer I set the texturescale to some crazy big amount. It looks quite alright.
     
  7. henke37

    aa henke37

    Messages:
    1,878
    Positive Ratings:
    440
    That's a nice trick!

    I wonder, is there a proxy that lets you directly set material variables using I/O? That would be awesome.

    Edit: Nope. There are two! MaterialModify and MaterialModifyAnimated. But I worry that they are global and not for materials on a specific brush entity.
     
    Last edited: Sep 12, 2015