[REL] Red mex [52973]

Discussion in 'Mod Discussions' started by cola_colin, July 28, 2013.

  1. cola_colin

    cola_colin Moderator Alumni

    Messages:
    12,074
    Likes Received:
    16,221
    The Beta changed the file format for these textures from png to "papa". So this is broken now!

    Simple and quick: Makes mex red. They look weird, but you can see them from the orbit, even on moons.

    Download: http://nanodesu.info/stuff/pa/mods/metal_splats.zip
    Unpack in PA\media\pa\effects\textures\metal_splats


    [​IMG]

    [​IMG]

    [​IMG]

    There is also a shader that is supposed to improve this, but it makes problems with shiny rocks:
    viewtopic.php?p=769249#p769249
    Last edited: September 27, 2013
  2. comham

    comham Active Member

    Messages:
    651
    Likes Received:
    123
    Re: [REL] Red mex

    Screenies?
  3. vipez

    vipez Member

    Messages:
    82
    Likes Received:
    13
    Re: [REL] Red mex

    [​IMG]
  4. cola_colin

    cola_colin Moderator Alumni

    Messages:
    12,074
    Likes Received:
    16,221
    Re: [REL] Red mex

    I wonder if anyone could make a shader that makes mex glow somehow. I have no idea how shaders work...
  5. mushroomars

    mushroomars Well-Known Member

    Messages:
    1,655
    Likes Received:
    319
    Re: [REL] Red mex

    I think it's possible... But at this stage it would also make Trees and Rocks glow.
  6. cola_colin

    cola_colin Moderator Alumni

    Messages:
    12,074
    Likes Received:
    16,221
    Re: [REL] Red mex

    That would not really improve the visibility of mex spots :/
  7. Gorbles

    Gorbles Post Master General

    Messages:
    1,832
    Likes Received:
    1,421
    Re: [REL] Red mex [51118]

    It would be absolutely fabulous though.
  8. zaphodx

    zaphodx Post Master General

    Messages:
    2,350
    Likes Received:
    2,409
    Re: [REL] Red mex [51118]

    Haven't tested this yet but from the screenshots it looks very useful.
  9. mushroomars

    mushroomars Well-Known Member

    Messages:
    1,655
    Likes Received:
    319
    Re: [REL] Red mex [51118]

    Extract to Planetary Annihilation\PA\Media\Shaders. It isn't perfect, there is a single type of desert rock that will glow as well. Metal Spots (and certain rocks) will glow in the dark and appear as a vibrant green.

    http://pbrd.co/1bBJgr4

    Glow color can be modified by opening the shader and changing the RGB values -

    Code:
    //-----------VARIABLES-------------
    //---COLOR AND INTESNITY OF GLOW---
    vec3 glowcolor = vec3(0.0,1.0,0.0);
    //---------END VARIABLES------------
    
    vec3(0.0,1.0,0.0) = vec3(Red,Green,Blue) for those that don't know.

    Attached Files:

  10. cola_colin

    cola_colin Moderator Alumni

    Messages:
    12,074
    Likes Received:
    16,221
    Re: [REL] Red mex [51118]

    Awesome!
    I need to try this when I am home.
    Maybe it is possible to somehow get rid of the rocks completely? Like delete them or something? Or are they not that annoying?
  11. mushroomars

    mushroomars Well-Known Member

    Messages:
    1,655
    Likes Received:
    319
    Re: [REL] Red mex [51118]

    What you could do is set the add color to (1.0,1.0,1.0) and use it in tandem with your red metal retexture. That way the rocks are only slightly brighter (and glower in the darker) than normal, instead of glowing a peculiar color.

    Edit: I guess you could just create a blank text file and replace the rock's model file with that. However, I have no idea which specific rock it is that is affected by prelight_normal, nor do I have any idea *why* it glows. The use of prelight_normal is specified by the engine or a script, *not* by the shader itself.
  12. cola_colin

    cola_colin Moderator Alumni

    Messages:
    12,074
    Likes Received:
    16,221
    Re: [REL] Red mex [51118]

    The rocks are easy to distinguish from the mex anyway. It's pretty good like this.
    Well, ofc not as good as it will probably be once Uber tries to solve this problem, but until then this is good enough.
  13. mushroomars

    mushroomars Well-Known Member

    Messages:
    1,655
    Likes Received:
    319
    Re: [REL] Red mex [51118]

    Badabadabump! With content!

    [​IMG]

    I modified the shader to display mexes underwater, and I changed the colors to be green as per popular request. I'll gladly play with a pink teamcolor, but pink mexes is an eyesore.

    Anyways, rocks still glow, but that can't be helped. It is also now compatible with the mod manager.

    Cola, could you update the OP?

    Attached Files:

  14. cola_colin

    cola_colin Moderator Alumni

    Messages:
    12,074
    Likes Received:
    16,221
    Re: [REL] Red mex [51464]

    I can confirm this all still works with 51464.
  15. zaphodx

    zaphodx Post Master General

    Messages:
    2,350
    Likes Received:
    2,409
  16. cola_colin

    cola_colin Moderator Alumni

    Messages:
    12,074
    Likes Received:
    16,221
    Re: [REL] Red mex [51464]

    keeps working in 51531
  17. tatsujb

    tatsujb Post Master General

    Messages:
    12,902
    Likes Received:
    5,385
    Re: [REL] Red mex [51531]

    As of version 51853 RedMex no longer works, they have decided to use the shader for mex on a rock and an iceblock (maybe some other things) that is now scattered around the map. all these rocks light up in the same way as the mex.
  18. cola_colin

    cola_colin Moderator Alumni

    Messages:
    12,074
    Likes Received:
    16,221
    Re: [REL] Red mex [51531]

    You don't really need the shader if you make the mex really red.
    I've updated the OP with what I actually use by now.
  19. tatsujb

    tatsujb Post Master General

    Messages:
    12,902
    Likes Received:
    5,385
    better version in my megapack and lightpack.
    [​IMG]
  20. mushroomars

    mushroomars Well-Known Member

    Messages:
    1,655
    Likes Received:
    319
    Update again, I tweaked things a bit so now the mexes are most visible. Rocks still glow, but they don't glow the same color as mexes.

    Attached Files:

Share This Page