Unsolved glowmap options

Discussion in 'Mod Support' started by fillman86, May 27, 2024.

  1. fillman86

    fillman86
    Expand Collapse

    Joined:
    Apr 18, 2020
    Messages:
    208
    I'm wanting to do some stuff with glowmaps, how can I rout a custom value in? Can I make my own electrics.value to use? And can I assign more than the 3 states of "off" "on" and "on_intense"?

    I'd like to be able to set my own integers of "on" states. Is this possible?

    also what are "animFlags"? I see it as a line in the jato shock diamond code, but I can't find information on it
     
  2. Musicman27

    Musicman27
    Expand Collapse

    Joined:
    Dec 13, 2023
    Messages:
    2,581
    I don't know anything about this stuff, but I think that might be a in-joke or something.
     
  3. Agent_Y

    Agent_Y
    Expand Collapse
    Jbeam/QA support
    BeamNG Team

    Joined:
    Jul 10, 2020
    Messages:
    10,541
    You can use your own electrics.values, but it will always only work with 3 states, you can bypass it by making the off state invisible and having multiple meshes overlayed with different materials
     
  4. Musicman27

    Musicman27
    Expand Collapse

    Joined:
    Dec 13, 2023
    Messages:
    2,581
    Nice timing, I was trying to ping you but @ wasn't working right. :p
     
  5. fillman86

    fillman86
    Expand Collapse

    Joined:
    Apr 18, 2020
    Messages:
    208
    oh the multiple mesh thing would be easy, and cycle through them. I wouldn't have come up with that on my own!

    how about the animflags thing?
     
  6. Musicman27

    Musicman27
    Expand Collapse

    Joined:
    Dec 13, 2023
    Messages:
    2,581
    Yes. I think it's missing an "E". Don't ask me what it's for but, I think it's an in-joke of some sort.
     
  7. Agent_Y

    Agent_Y
    Expand Collapse
    Jbeam/QA support
    BeamNG Team

    Joined:
    Jul 10, 2020
    Messages:
    10,541
    Defines type of animation: 1=scroll, 2=rotate, 4=wave, 8=scale, 16=sequence. Each flag then allows different animation options. Worth checking lua\ge\extensions\editor\materialEditor.lua to see what they are exactly.
     
  8. JUSTCOD

    JUSTCOD
    Expand Collapse

    Joined:
    Jul 12, 2023
    Messages:
    205
    ah, thats what it is
     
  9. fillman86

    fillman86
    Expand Collapse

    Joined:
    Apr 18, 2020
    Messages:
    208
    ah I see it now, but woof that's a lot of stuff that's going over my head, so I'll leave animflags alone for now, though "sequence" does seem like I could find uses for. I wonder if I could use a live input one day and a camera, so you'd have a security camera type thing... but there's probably an easier way.

    This can be marked as solved
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice