Jump to content
The Dark Mod Forums

Transparency and alpha channel for patch decal?


Recommended Posts

I've made a new sign decal for Frost_Salamander's map (WIP), and for some reason the editor isn't registering the alpha channel when he applies the texture to the patch.
The texture is a .tga file with an alpha channel. Please see the attached zip file if you want to examine it.
I used the same process for an inventory icon and it worked perfectly. We can't seem to figure out how to make the editor recognize the alpha channel of the texture in order to create a decal. Please help?


Hare Signs.zip

  • Like 1
Link to comment
Share on other sites

	qer_editorimage	textures/darkmod/decals/signs/hare_sign_001_512
    diffusemap      textures/darkmod/decals/signs/hare_sign_001_512
    bumpmap         _flat
    specularmap     _black
	sort decal


Link to comment
Share on other sites

Move all the global keywords to the top, then replace the diffusemap stage with:


   blend diffusemap

   map textures/darkmod/decals/signs/hare_sign_001_512

   alphatest 0.5


  • Thanks 2

Please visit TDM's IndieDB site and help promote the mod:




(Yeah, shameless promotion... but traffic is traffic folks...)

Link to comment
Share on other sites

that appears to have done the trick.  Thank you 👍

Only issue is that both of them appear identical (the 2nd one is supposed to be coloured, while the first is just an engraving).  Might be just too similar a colour to the sign, or is there anything else in the materials def we need to look at?

Link to comment
Share on other sites

Yeah, it's probably near the bottom of the RGB range so it's getting crushed to black by tonemapping.

You'd probably need to brighten the texture a bit to get it to register better as colored.

Please visit TDM's IndieDB site and help promote the mod:




(Yeah, shameless promotion... but traffic is traffic folks...)

Link to comment
Share on other sites


Thank you @nbohr1more for your help!

The reason the coloured rabbit wasn't working is because the alpha channel is the same as the one for the black rabbit which only covers the black outlines, but ignores the blank spaces in between. My fault.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recent Status Updates

    • nbohr1more

      The Dark Mod is hosting an Ask Me Anything thread on the PC Gaming reddit forum:  https://www.reddit.com/r/pcgaming/comments/10nfcwj/hello_we_are_the_international_development_team/
      Feel free to join the discussion there
      · 0 replies
    • stgatilov

      Bumped into an interesting piece of wisdom called Hyrum's Law:
      With a sufficient number of users of an API, it does not matter what you promise in the contract: all observable behaviors of your system will be depended on by somebody.
      · 5 replies
    • The Black Arrow

      I love playing The Dark Mod when it's cold in my place. Bonus points when it's a bit (or even very) dark and it's raining, too.
      · 1 reply
    • The Black Arrow

      I've been having stutters in Vulkan, apparently it's Nvidia Drivers' fault, so I reverted to 512 according to this: https://www.nvidia.com/en-us/geforce/forums/geforce-graphics-cards/5/505679/regular-microstutter-in-vulkan-applications-after-/?topicPage=40

      And no, that did NOT fix it. What's going on? My GPU is an RTX 2070, by the way.
      · 4 replies
    • datiswous

      I just figured out how to make subtitles work in TDM (srt) for ingame cutscenes and how to automatically generate the srt file in Kdenlive's speech recognition (I just had to edit it a bit).
      Kdenlive is a free and open source multiplatform pretty advanced video editor.
      Test case is the first builder gost scene in Requiem saying:
      1 00:00:00,180 --> 00:00:02,140 the builder be with you this night 2 00:00:02,600 --> 00:00:04,840 there will be secrets all around you 3 00:00:05,040 --> 00:00:06,439 so have a keen eye The following page gives you the basic info:
      These 2 tutorials give you the info for creating the srt files:
      If you run into the problem the Kdenlive cannot find your Python PATH, then here is a solution:
      Edit: During the installation of Python, in the installer, if you select more options, you can specify to set the PATH. I tried this on another Windows computer and this fixed the issue. Much easier solution.
      This is all the code for the testcase:
      Maybe I will create a seperate (text,images based) tutorial on the wiki.
      · 8 replies
  • Create New...