Jump to content
The Dark Mod Forums

Feature request: emissive materials/volumetric lights


peter_spy

Recommended Posts

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
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Duzenko, I added dev commentary so we don't get lost in what we have so far. I also added alphatest plane window to check whether lightshafts are working with shadow maps (but that's probably something for later).

 

https://we.tl/t-soCcfjBmz0

Edited by Judith
Link to comment
Share on other sites

Duzenko, please ignore the version above, it turned out the projection was upside down ;) This version is correct: https://we.tl/t-5qEFH0IInM

obraz.png

 

 

The only request id make is have the ability to dictate where the effect starts

 

You can already do that with "Use start/end" option in the light inspector window.

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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)

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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
Link to comment
Share on other sites

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
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.

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

    • Petike the Taffer

      I've finally managed to log in to The Dark Mod Wiki. I'm back in the saddle and before the holidays start in full, I'll be adding a few new FM articles and doing other updates. Written in Stone is already done.
      · 0 replies
    • nbohr1more

      TDM 15th Anniversary Contest is now active! Please declare your participation: https://forums.thedarkmod.com/index.php?/topic/22413-the-dark-mod-15th-anniversary-contest-entry-thread/
       
      · 0 replies
    • JackFarmer

      @TheUnbeholden
      You cannot receive PMs. Could you please be so kind and check your mailbox if it is full (or maybe you switched off the function)?
      · 1 reply
    • OrbWeaver

      I like the new frob highlight but it would nice if it was less "flickery" while moving over objects (especially barred metal doors).
      · 4 replies
    • nbohr1more

      Please vote in the 15th Anniversary Contest Theme Poll
       
      · 0 replies
×
×
  • Create New...