Jump to content
The Dark Mod Forums

Feature request: emissive materials/volumetric lights


peter_spy

Recommended Posts

 

Ok, I made the change, only the spot light uses the light_shaft material now, other lights use stock falloff_exp2. https://we.tl/t-lGvhXwFaYI

 

As for the performance, the window is 338 tris, shadow tris in that scene take up around 500. It's easier to use a physical model right now, as you don't have to line up things. Fake projection it will be a PITA anyway, since you'll have to make a window noshadows, carve some space behind to line up the light with projection etc. IMO the order of testing should be: 1) a physical model, 2) a plane with alphatest transparency, 3) a light with projection texture.

Makes sense. Not an issue for small rooms.

Link to comment
Share on other sites

In this version you have 2 windows:

1) the one from previous version, it cast shadows

2) a clone that has noshadows 1 spawnarg and a spotlight with projection texture behind it

 

https://we.tl/t-2UfOjvvuO2

 

Btw. what does the exe file in that link do?

Edited by Judith
Link to comment
Share on other sites

Any way to make this new features automatically match the light color?

So simple I left it for the end.

 

In this version you have 2 windows:

1) the one from previous version, it cast shadows

2) a clone that has noshadows 1 spawnarg and a spotlight with projection texture behind it

 

https://we.tl/t-2UfOjvvuO2

 

Btw. what does the exe file in that link do?

That's the test volumetric build

Link to comment
Share on other sites

In this version you have 2 windows:

1) the one from previous version, it cast shadows

2) a clone that has noshadows 1 spawnarg and a spotlight with projection texture behind it

 

https://we.tl/t-2UfOjvvuO2

 

Btw. what does the exe file in that link do?

You have four lights in that room.

I think you should only set the volumetric flag for the floor lights. The window lights are better off without it.

Here's the test build

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

Link to comment
Share on other sites

Without the custom projection it's just a re-implementation of the fog light

 

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

 

Hum that just means the current implementation does not support occlusion, what would happen if you put a object in front of the beam?

 

something like this

 

bc031b63-ebe7-446d-8594-3534.png

Edited by HMart
Link to comment
Share on other sites

You have four lights in that room.

I think you should only set the volumetric flag for the floor lights. The window lights are better off without it.

Here's the test build

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

 

Yup, the two lights nearby the windows are there just to illuminate the frame. They use stock falloff_exp2 texture and they're no shadows, so they're not messing with anything. Only the spotlights have custom light materials with volumetric keyword. Downloading the test build.

Link to comment
Share on other sites

 

Yup, the two lights nearby the windows are there just to illuminate the frame. They use stock falloff_exp2 texture and they're no shadows, so they're not messing with anything. Only the spotlights have custom light materials with volumetric keyword. Downloading the test build.

Then it's a problem on my side. I will double check that.

Link to comment
Share on other sites

 

 

Alright, we're going somewhere, but right now the faces of the volume are kind of flipped, and there's no "inside".

I'm pretty sure you have the wrong shaders. You need to put the fs/vs files in \glprogs.

 

I double checked the lights and now only the floor lights are affected - so that's sorted.

It's back again.

post-3508-0-60437700-1538074528_thumb.jpg

  • Like 1
Link to comment
Share on other sites

Question -

 

Whats the relative hits of perf. for the different version's of this new feature..?

I expect it to be costly enough, depending on the desired quality. The current version does 120 texture samples per pixel which is a lot. We have to do that many samples because we're taking integral of a function in a range, and few sample mean visible banding.

 

and will they be mapper selectable..?

As selectable as the test map in this thread.

Link to comment
Share on other sites

The dust in the light cone is still visible when you're inside the cone too.

Your gonna get some light bounce for sure, but in RL the dust wouldnt allow you to see the rest of the room as if you had raised the gamma.

 

While trying a photgraphic example (still looking) I found this -

 

1.jpg

Edited by Bikerdude
  • 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

    • Ansome

      Turns out my 15th anniversary mission idea has already been done once or twice before! I've been beaten to the punch once again, but I suppose that's to be expected when there's over 170 FMs out there, eh? I'm not complaining though, I love learning new tricks and taking inspiration from past FMs. Best of luck on your own fan missions!
      · 4 replies
    • The Black Arrow

      I wanna play Doom 3, but fhDoom has much better features than dhewm3, yet fhDoom is old, outdated and probably not supported. Damn!
      Makes me think that TDM engine for Doom 3 itself would actually be perfect.
      · 6 replies
    • Petike the Taffer

      Maybe a bit of advice ? In the FM series I'm preparing, the two main characters have the given names Toby and Agnes (it's the protagonist and deuteragonist, respectively), I've been toying with the idea of giving them family names as well, since many of the FM series have named protagonists who have surnames. Toby's from a family who were usually farriers, though he eventually wound up working as a cobbler (this serves as a daylight "front" for his night time thieving). Would it make sense if the man's popularly accepted family name was Farrier ? It's an existing, though less common English surname, and it directly refers to the profession practiced by his relatives. Your suggestions ?
      · 9 replies
    • nbohr1more

      Looks like the "Reverse April Fools" releases were too well hidden. Darkfate still hasn't acknowledge all the new releases. Did you play any of the new April Fools missions?
      · 5 replies
    • The Black Arrow

      Hope everyone has the blessing of undying motivation for "The Dark Mod 15th Anniversary Contest". Can't wait to see the many magnificent missions you all may have planned. Good luck, with an Ace!
      · 0 replies
×
×
  • Create New...