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

Using "Improvement" Graphics as Unit Graphics

Discussion in 'Civ4 - Creation & Customization' started by LPlate2, Jul 8, 2020.

  1. LPlate2

    LPlate2 Warlord

    Dec 27, 2018

    There's a couple of graphics, which were uploaded to the database as improvement graphics, which I want to use as units;
    @dacubz145's Flag Pole, which I'm using as to stake a claim to territory, which is outside of the cultural borders claimed by a city and
    @Himan's rotating rune veil node, which I'm trying to base several glyph/rune units on, one of which grants visibility of the adjacent tiles.

    The xml for the flag art unit is,
    Spoiler :
                    <ShadowAttachNode>BIP Pelvis</ShadowAttachNode>

    Most of the CIV4ArtDefines_Improvement.xml copies straight across to the CIV4ArtDefines_Unit.xml There was no kfm with the improvement art downloads, so I had to insert a blank kfm line.

    Essentially it works, but there's a slight ghost image, so that there appears to be two flags, when you zoom in.
    With the rotating rune, again it works and rotates but there again appears to be a ghost image (two rings at base of obelisks).

    What would I need to do to fix this?

    On a separate query, how can I get the civilization's colour to show on units' graphics?
    I tried replacing all of the black in my flag graphic with transparency but it still comes up as black.

    Attached Files:

  2. SaibotLieh

    SaibotLieh Emperor

    Sep 25, 2009
    My guess would be that your shadow definition is the problem, since you define the unit nif as its own shadow. Maybe try this instead:
    For the team colour, the NiTexturingProperty of the mesh needs to be set up accordingly. Try the attached version of the flag, I think it should work that way.

    Hope this helps. :)

    Attached Files:

    Leoreth likes this.
  3. LPlate2

    LPlate2 Warlord

    Dec 27, 2018
    Thanks, that sorted both issues.
    SaibotLieh likes this.

Share This Page