1. We have added a Gift Upgrades feature that allows you to gift an account upgrade to another member, just in time for the holiday season. You can see the gift option when going to the Account Upgrades screen, or on any user profile screen.
    Dismiss Notice

Teamflag for Units and Ships

Discussion in 'Civ4 - Unit Graphics' started by PPQ_Purple, Apr 7, 2020.

  1. PPQ_Purple

    PPQ_Purple Techpriest Engineer

    Joined:
    Oct 11, 2008
    Messages:
    3,667
    For quite some time now I have abandoned teamcolor as a way of identifying units. Instead I have developed a new way of doing this based on the shader code already existing within Civilization4. I call this approach Teamflag.

    Put simply Teamflag is a way of rendering the flag of the owning civilization onto a unit in the form of a rectangular flag. Examples of this can be seen on my ships here:



    The work was inspired by a great warlord model found in Fall from Heaven modmods. It's original source is unknown.


    Instructions for use:
    The *.nif file contains a single node called FLAG. To use the flag in your model simply copy the entire object into your units *.nif file and place it where ever you like. As an example on my ships the flags are pasted so that they are a direct child of the mast bones.
    If you are having problems doing so or getting it to work feel free to contact me.

    The download for the file can be found here.
     
    Schmiddie likes this.
  2. MightyToad

    MightyToad Warlord

    Joined:
    Sep 11, 2015
    Messages:
    119
    I didn't know you could link to textures outside the nifs own folder. How clever.
    I am always underwhelmed with the solid colored flags with most units. This will save some effort.
     
  3. PPQ_Purple

    PPQ_Purple Techpriest Engineer

    Joined:
    Oct 11, 2008
    Messages:
    3,667
    Just make sure to include the credits file with it in some form. Or like link to this thread or the downloads thread in some credits file of your own. I am sort of obsessed by keeping tabs on who did what. Which is why mods like VD drive me insane some times. But I digress.
     
  4. MightyToad

    MightyToad Warlord

    Joined:
    Sep 11, 2015
    Messages:
    119


    What is "VD mod"? I've never played any of the mods.
    I don't care about credits, or what anyone does, or whatever. The only people that care about credits are other modders. Unless they are making that internet money. I'm very interested in that.

    I know its important to you so I would of course mention it. ;)
     
  5. PPQ_Purple

    PPQ_Purple Techpriest Engineer

    Joined:
    Oct 11, 2008
    Messages:
    3,667
    Varias Delectat It's a huge mod package made back in the day that basically picked the download database clean to create (as much as was possible at the time) a complete list of unique unit models for every civ. Awesome, and a great source of both models and inspiration for my own work. But because there are no individual credits in it (as opposed to my OCD style credits in my module) and most of the original threads or uploads are nowhere to be found I can't credit the original authors when I remodel or rework their units for my purposes. Which is sad. These people deserve it. I freely admit that a lot of my work would have been impossible without them.
     
  6. MightyToad

    MightyToad Warlord

    Joined:
    Sep 11, 2015
    Messages:
    119
    Oh, yeah, I've heard of that one. I remember seeing it was a huge d/l and passed. I actually only played warlords until a couple years ago because it had a cooler name than BTS. Shows what I know.

    Anyway, this is why I try not to use other people's work. One, because copying other people is not how you learn. Two, because you never know if you are stepping on toes, or don't even know who made it in the first place.

    But individually we are but weak sticks. Together we are a mighty faggot.
     
  7. PPQ_Purple

    PPQ_Purple Techpriest Engineer

    Joined:
    Oct 11, 2008
    Messages:
    3,667
    I am a programmer which means that I am used to having to use the work of others. The key is to add enough value to it to make it a significant enough change to be a new unique product. Take for example those two ships in the first post.
    The first one is an original model from Europa Universalis 4. It was extracted and converted to a nif by ramzay1945. His work however isn't animated at all, just in a nif. I than took the nif, rigged it to bones and animated it, moved the masts, made a whole new texture for it, added a teamflag, added and animated the paddle wheels on the side. And yes, the paddle wheels are animated with my own unique kfm. The second ship is a vanilla carrack which I modified by adding a new texture and the icicle decorations as well as making my own kfm with a magic ice ball effect instead of the cannon.

    In both cases, I claim that enough work has been done to make the resulting model my own product. But I credit everyone along the line newer the less because without their work mine could not have been. And in both cases I would absolutely love to see the units used on by others again and again to create more cool stuff.
     
    Last edited: Apr 8, 2020
  8. MightyToad

    MightyToad Warlord

    Joined:
    Sep 11, 2015
    Messages:
    119
    That explains a lot. :lol:
    My cavalier attitude hasn't allowed me to think about this as extensively as you have. But, with some self reflecting I'm not really as much a lone wolf as I would like to believe.

    Anyway, something that would be cool is if this flag thing could be incorporated into the main sail texture. Sort of like the vanilla ships have that generic team color thing on their sails.
     
  9. PPQ_Purple

    PPQ_Purple Techpriest Engineer

    Joined:
    Oct 11, 2008
    Messages:
    3,667
    You should be able to apply the material in question to anything, I think. You'd just have to judiciously copy over the material, texture mapping and any other options from the flag to your object. Although I am not sure how it would look stretched over a sail. It's certainly worth a shot.
     
  10. SaibotLieh

    SaibotLieh Emperor

    Joined:
    Sep 25, 2009
    Messages:
    1,478
    Nice work. :)

    The TFlagGloss shader is also applied to the Charlemagne units using shields by the way, namely the Heavy Cavalry, Heavy Spearman, Heavy Swordsman and the Mounted Infantry. They did some interesting stuff with the units in Beyond the Sword. Another interesting example for fancy stuff is the Afterworld Gravebringer.

    I also tried adding the civ flag to a building at one point, but was not successful. I think the problem with that is that buildings do not "know" their owning civ, but never went deeper into that.
     

Share This Page