Jump to content
The Dark Mod Forums

Recommended Posts

Posted (edited)

So TDM has a lot of textures with alpha, and an added level of detail I like to make this textures cast shadows. Where said textures are twosided this isnt possible, but when said texture is on a model you can remove the twosided line and still see both sides of the texture. And because you have remove the twosided line that textures with then cast a shadow. I have attached a stock fern that I have tweaked to cast a shadow.

The issue I'm running into is I am trying to do the same thing on the palmtree leaf texture and for the life me I cant get the alphatest to work on the leaf texture. Its just casting a shadow of the whole patch, instead of the edges of the leaf...

So any idea's on what I'm doing incorrectly in this instance?

image.png.be9826c5902219555e7c28ca28dd5d50.png

Untitled_result.jpg

Untitled1_result.jpg

Edited by Bikerdude
  • Like 2

bhm_banner.jpg

Posted

So I have made discovery, I put the model inside another light entity with a smaller volume (500,500,600) and the palm tree leaves started casting shadows as expected. The light in other area has radius of 6000 6000 100.

@stgatilov is there any work around for this issue..? I already have a custom mission config with the following lines set as I have other parts of the map with large trees and medium sized lights that cast shadows from thier leaves just fine - 

image.png.7cbe9897d6bc47e42bbd12adec9953de.png

 

bhm_banner.jpg

Posted

Can't say anything certain.

There is the well-known trigger that turns large shadow map lights into stencil shadows, in which case alpha-testing does not work. Aside from that, I don't think there is any special cases for alpha-tested shadows.

Posted
On 6/11/2026 at 7:56 AM, Bikerdude said:

So I have made discovery, I put the model inside another light entity with a smaller volume (500,500,600) and the palm tree leaves started casting shadows as expected. The light in other area has radius of 6000 6000 100.

@stgatilov is there any work around for this issue..? I already have a custom mission config with the following lines set as I have other parts of the map with large trees and medium sized lights that cast shadows from thier leaves just fine - 

image.png.7cbe9897d6bc47e42bbd12adec9953de.png

 

Yes, you would need to set r_maxShadowMapLight to something larger. Keep increasing until you get the right results. Downside is that this will get worse and worse for performance.

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

 

http://www.indiedb.com/mods/the-dark-mod

 

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

Posted (edited)
On 6/13/2026 at 1:02 PM, nbohr1more said:

Yes, you would need to set r_maxShadowMapLight to something larger. Keep increasing until you get the right results. Downside is that this will get worse and worse for performance.

I gave on that path fairly quickly after even increasing both to 32k made no difference. The custom shadow mesh for the model was the way to go.

Edited by Bikerdude
  • Like 1

bhm_banner.jpg

Join the conversation

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

Guest
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

    • jaxa

      Talk GabeCube:
      https://forums.thedarkmod.com/index.php?/topic/18055-2016-cpugpu-news/page/39/#findComment-508710
      · 0 replies
    • The Black Arrow

      Things have been so bad these days for me...
      Just a year ago, I've been feeling dizzy, I thought it was nothing, today's stress, that type of thing, went to sleep...Still dizzy! 9 more days dizzy, went to doctor (I would have gone on the first day if NOT for the long appointment time)
      Said it may be Neck Dizziness...I did exercises for 6 months, no changes.
      Went to a Physical Therapist, went to another, no changes.
      I've asked my doctor for a full check this time.
      I hated yesteryear so much due to personal reasons, this year might be the same.
      To be brutally honest, I'd rather have cancer or/and chronic pain than suffer dizziness any second longer, especially when nothing helps.
      Hard to enjoy Thief when you're dizzy so I was hoping this year, Winter will be best for me.
      · 7 replies
    • JackFarmer

      Hello mappers and taffers! 

      Are you still out there? It is so calm here these days and I am afraid this is no good sign.
      Proof me wrong, tell your best friend (=me), that you are still here and that you will not go away!
      · 5 replies
    • JackFarmer

      Happy Labour Day, my taffing taffers & hard working mapping friends!
      And remember the poor souls who, within the Inventors’ organization, labor under Jonus’s yoke to ensure the success of that very guild! Always remember the hard workers!
      · 2 replies
    • datiswous

      Is there a script command to make a screenshot?
      I just though it could be interesting to be able to create a screenshot at a certain point in time. Then use that screenshot possibly in a debrief.
      I guess the second question is: Can you use a (in-game made) screenshot in a (debrief) gui?
      · 1 reply
×
×
  • Create New...