Can 'lights' be added to models?

Discussion in 'Mod Discussions' started by killerkiwijuice, November 11, 2014.

  1. killerkiwijuice

    killerkiwijuice Post Master General

    Messages:
    3,879
    Likes Received:
    3,597
    If I wanted to add new lights to a tank, is that possible? Maybe even commanders with red eyes or something...

    I don't want to waste time trying to figure out if it can work, but from what I see it looks impossible.
  2. cola_colin

    cola_colin Moderator Alumni

    Messages:
    12,074
    Likes Received:
    16,221
    I think lights are defined in the unit json with an offset position relative to ... somewhere in the model.
    So based on that I would assume it is easy.
    thetrophysystem likes this.
  3. killerkiwijuice

    killerkiwijuice Post Master General

    Messages:
    3,879
    Likes Received:
    3,597
    YES!

    I'm going to do this :cool:
  4. thetrophysystem

    thetrophysystem Post Master General

    Messages:
    7,050
    Likes Received:
    2,874
    I would look at Cresources mod as an example of what the code would look like.

    IIRC, the unit's .json can have fx offsets and a bone or position. I believe that fx can be a light or particle effect. Which does make it easy if you look at various examples of particle effects in the game. I mean, I have no clue what they are in complexity, but I know the nanolathe is a particle effect and I made a mod changing it's color based off ONLY that. I can also add nanolathe effect at a position. I just don't know in detail how the game renders particles based off some text, thank God that text is already there for me to make small changes.
  5. Fr33Lancer

    Fr33Lancer Well-Known Member

    Messages:
    595
    Likes Received:
    288
  6. planktum

    planktum Post Master General

    Messages:
    1,060
    Likes Received:
    510
    The game needs a lot more lighting, explosion, weapon effects.

Share This Page