EXOT in grayscale

  • EnganK
    7th Feb 2022 Member 0 Permalink
    For some reason, I need a way to display EXOT in grayscale depending on TMP. I tried to make a simple Lua script for this purpose, but I couldn't find a manual for this.
    How can I make the EXOT color be gray, with brightness dependent on TMP?
  • IEATDIRT
    7th Feb 2022 Member 0 Permalink

    @EnganK (View Post)

     You can use NEUT+EXOT to make it grey, but then it can't be encased in anything but WALLS/DMND.

  • EnganK
    7th Feb 2022 Member 0 Permalink
    Thanks, I know it. But for such an EXOT, the maximum brightness does not differ much from the minimum, and besides, the dependence is non-linear. And that's why I need a script.
  • Maticzpl
    7th Feb 2022 Member 0 Permalink

    You can check the source code on github for that. EXOT is grayscale naturaly with life above 1000.

  • EnganK
    7th Feb 2022 Member 0 Permalink
    As I said, instead of a linear dependence of color on tmp, there is a complex sinusoidal function.
    I just need to set EXOT a color where r, g, b are equal to the TMP value.
  • ArolaunTech
    9th Feb 2022 Member 0 Permalink

    you can set the graphics function of EXOT with a Lua script:

     

    function graphicsEXOT(i, colr, colg, colb)

    do stuff here

    end

     

    tpt.graphics_func(graphicsEXOT, elements.DEFAULT_PT_EXOT)

     

    Here is an example for "do stuff here":

    f = sim.partProperty(i, "tmp")

    return 0, ren.PMODE_FLAT + ren.PMODE_BLUR, 255, f, f, f, 255, 255, 255, 255

    Edited once by ArolaunTech. Last: 9th Feb 2022
  • EnganK
    9th Feb 2022 Member 0 Permalink
    @ArolaunTech (View Post)
    It works! Thanks a lot!
  • KnZahid300
    9th Feb 2022 Member 0 Permalink

    Theres 2 ways to make gray EXOT

    1.-EXOT+NEUT

    2.-EXOT+PROP that sets the life to 1000 or more

  • EnganK
    9th Feb 2022 Member 0 Permalink
    @KnZahid300 (View Post)
    First, these ways are same.
    Secondly, this solution is completely not what I need, as I have already said twice.
    Thirdly, a working solution has been obtained and I really don't understand what is the point of your comment.
Locked by LBPHacker: problem solved