Jump to content
System downtime for updates - Sunday 13 July 2025 ×
The Dark Mod Forums

Recommended Posts

Posted

The effect works as in other games, the room would look darker only because you'd be casting a shadow standing in a light shaft. Since the player shadow is off, this doesn't look that way, and it's not a problem.

 

 

 

Posted (edited)

No, bikerdude is right, standing inside the light cone shouldnt make the entirety of the room appear brighter. You can see it clearly in one of the previous screenshots ( http://forums.thedarkmod.com/topic/19659-feature-request-emissive-materialsvolumetric-lights/page-3?do=findComment&comment=428009 ).

 

PS: This is becoming more and more impressive by the minute, duzenko. Great work.

Edited by RPGista
Posted

That's because so far just a shape defined by projection and spotlight cone, nothing else. It doesn't even use light color, and you're already jumping to real-life comparisons, dust particles and that kind of stuff. It's ridiculous.

 

 

 

Posted

Nobody is "jumping" to anything, bikerdude just pointed out a visual glitch the same way you were pointing out others. Im sure duzenko is well aware of all the issues himself, but people are gonna try to help out and participate any way they can.

Posted

This not helping. How you seen how this effect works in other games? If you want this and decent performance, you won't get much more than that.

 

So far, the light volume needs to use the light color value and the falloff image (as either I'm doing something wrong, or the volume itself doesn't use it, only light does. Will check that later.) It already uses some depth-based alpha, similar to our fog particles, and maybe that will need tweaking to look beter, but that's it. And that's something to be taken care of later, when the basics is done. How hard is that to structure that in your brain, in order of necessity?

 

Otherwise, if you want a detailed volumetric lighting effect, go render yourself a static image in Vray or other offline renderer, because you wont get that and maintain 60 fps in all your scenes.

 

 

 

Posted

personally Id be happy with the first effect as it like its cheaper on the pref hit. The only request id make is have the ability to dictate where the effect starts - as in so its not starting from a point, but where its further away and wider, which the mapper could then place at the surface of a window etc.

bhm_banner.jpg

Posted

This will be a killer efx/SFX to have once you guys get it working.

Would you maybe revisit a couple of your released maps to make use of it?

 

The new test build:

  • using the light color
  • using the falloff texture
  • added an optional volumetric intensity param
lights/glowtest/light_shaft
{
    volumetric 0.1
    {
        forceHighQuality
        map    lights/falloff_exp2
        colored
        zeroClamp
    }
}

  • fixed what I suspect to break shadow maps on nVidia

 

https://drive.google.com/file/d/1dqR1zaOADwkWO9bRN0JlHZatL63mzbJK/view?usp=sharing

 

I'll be looking at the transparent shadow caster now.

post-3508-0-87111600-1538145546_thumb.jpg

  • Like 2
Posted

I confirm the light color and intensity, it looks great. I still don't have transparency shadow maps, but that's something for another topic.

 

Volumetric intensity also works as intended, it's a good idea to have this kind of tweak. One other thing to improve would be to get rid of that banding in the light shaft itself:

obraz.png

 

But I guess this goes back to how poorly the engine handles gradient textures in general, and AFAIR, you're working on it too.

 

 

 

Posted
One other thing to improve would be to get rid of that banding in the light shaft itself:

 

 

But I guess this goes back to how poorly the engine handles gradient textures in general, and AFAIR, you're working on it too.

For custom projection textures, can't do.

Only can work around the few standard textures I can break down to an algebra function with more or less precision (biground, exp, quadratic, etc)

Posted (edited)

That herringbone pattern kind of depends on how blurred the image is and what is its resolution. Higher res textures with sharp shapes will have this pattern more prominent.

 

I blurred the image so it looks like this now:

obraz.png --> obraz.png

 

And the result looks like this:

obraz.png

 

The banding is only visible only when you stick your nose into it.

Edited by Judith
  • Like 1

 

 

 

Posted

I turned the projection texture light into a shadow caster (window frame is noshadows) and let AI in. It already looks pretty cool, even though the light shaft isn't occluded by geometry yet:

 

obraz.png

  • Like 4

 

 

 

Posted

IMO next thing is to make geometry occlude the light shaft. Maybe there should be a spawnarg similar to noshadows for this, so mappers can control it and disable it to improve performance.

  • Like 2

 

 

 

Posted (edited)

What should be the next step?

 

Make a AI occlude the beam?

 

Make a way to give different densities to the beam, for example the beam is stronger next to the window and fainter has it goes farther away?

 

Make a material keyword to give it some animation or augment the shader so you have "moving particles" inside the beam to simulate moving dust?

 

I assume it can be binded to a moving light, i don't see why not, but if don't that could be also a next step.

 

Ability to have volumetrics of different shapes, we don't need to copy reality, this effect could be used to make some fantasy effects.

 

I can't think of anything else right now.

 

 

Btw imo this effect alone will help TDM reputation increase ten fold, when those saying TDM engine is old and lacks modern effects, see this, they will think UE4 my a** TDM engine is cool!!! ;P

Edited by HMart
Posted

Make a way to give different densities to the beam, for example the beam is stronger next to the window and fainter has it goes farther away?

 

You can already do that with falloff image and Use start/end option in light inspector.

 

Make a material keyword to give it some animation or augment the shader so you have "moving particles" inside the beam to simulate moving dust?

 

This can already be done separately via particle emitters.

 

I assume it can be binded to a moving light, i don't see why not, but if don't that could be also a next step.

 

It probably can already, but moving lights hurt performance like hell and should be avoided whenever possible.

 

Ability to have volumetrics of different shapes, we don't need to copy reality, this effect could be used to make some fantasy effects.

 

This should be possible when the light shaft will be colliding with geometry, so you can put it in omni light and make it shine through holes in an object.

 

All in all, this is performance heavy effect and should be used sparingly, for strong light sources like floodlights, or to simulate sunlight / moonlight, but definitely not for every light or every window.

  • Like 1

 

 

 

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

    • JackFarmer

      "The Year of the Rat." 
      😄

      Al Stewart must be proud of you!
      Happy testing!
      @MirceaKitsune
      · 1 reply
    • datiswous

      I posted about it before, but I think the default tdm logo video looks outdated. For a (i.m.o.) better looking version, you can download the pk4 attached to this post and plonk it in your tdm root folder. Every mission that starts with the tdm logo then starts with the better looking one. Try for example mission COS1 Pearls and Swine.
      tdm_logo_video.pk4
      · 2 replies
    • JackFarmer

      Kill the bots! (see the "Who is online" bar)
      · 3 replies
    • STiFU

      I finished DOOM - The Dark Ages the other day. It is a decent shooter, but not as great as its predecessors, especially because of the soundtrack.
      · 5 replies
    • JackFarmer

      What do you know about a 40 degree day?
      @demagogue
      · 4 replies
×
×
  • Create New...