Jump to content
The Dark Mod Forums

Color Grading Shader


rich_is_bored

Recommended Posts

You are brilliant! I was looking to achieve something like this, had basicly given up as it took a lot more knowledge than I thought (and possessed), so cool to see this in action in TDM!

Link to comment
Share on other sites

I don't know if Obs used the same method, but this kind of thing has been possible for a while: http://forums.thedarkmod.com/topic/14394-apples-and-peaches-obsttortes-mapping-and-scripting-thread/?p=332341

Link to comment
Share on other sites

My shader is a bit simpler, but I guess the approach is similar.

FM's: Builder Roads, Old Habits, Old Habits Rebuild

Mapping and Scripting: Apples and Peaches

Sculptris Models and Tutorials: Obsttortes Models

My wiki articles: Obstipedia

Texture Blending in DR: DR ASE Blend Exporter

Link to comment
Share on other sites

Yes, I experimented with that, but was unable to control the shader. Maybe I set it up incorrectly, but I was also unable to get rid of a strong brightness effect. Still, I havent had time to look into Rich's solution yet, but hopefully it will also allow for custom color grading effects (the rgb editing that is refered to in the blog article linked above), which is actually what Ive been looking for!

Edited by RPGista
Link to comment
Share on other sites

Some of the stuff happening in those shaders can require some math, which can be confusing or errorsome if you are not used to work with this. In addition ARB is pretty abstract and hard to read in comparision to modern programming languages. Easy to make mistakes when working with this stuff. :(

FM's: Builder Roads, Old Habits, Old Habits Rebuild

Mapping and Scripting: Apples and Peaches

Sculptris Models and Tutorials: Obsttortes Models

My wiki articles: Obstipedia

Texture Blending in DR: DR ASE Blend Exporter

Link to comment
Share on other sites

Yeh that'd work beautifully for flashbacks

I have an eclectic YouTube channel making videos on a variety of games. Come and have look here:

https://www.youtube.com/c/NeonsStyleHD

 

Dark Mod Missions: Briarwood Manor - available here or in game

http://forums.thedarkmod.com/topic/18980-fan-mission-briarwood-manor-by-neonsstyle-first-mission-6082017-update-16/

 

 

Link to comment
Share on other sites

 


because right now Im using Obs' idea of a sphere attached to the player to test the shader, and it doesnt affect either of those

I think I told you that this approach was just a test and that you should use a gui overlay instead ;)

FM's: Builder Roads, Old Habits, Old Habits Rebuild

Mapping and Scripting: Apples and Peaches

Sculptris Models and Tutorials: Obsttortes Models

My wiki articles: Obstipedia

Texture Blending in DR: DR ASE Blend Exporter

Link to comment
Share on other sites

I've packaged everything into a pk4 and have made it available on my OneDrive.

OneDrive deems it "sensitive info" and requires a log in. I've downloaded it, but it would be nice to reupload this somewhere else besides OneDrive.

Edited by Spooks

My FMs: The King of Diamonds (2016) | Visit my Mapbook thread sometimes! | Read my tutorial on Image-Based Lighting Workflows for TDM!

 

 

Link to comment
Share on other sites

I'm having trouble with this. The post process works half the time and at seemingly random looking angles the screen stops rendering. Without bloom it looks like the image is frozen, with bloom it quickly blooms up to a white screen.

 

I tried playing with switching interaction shaders, vsync and full screen without any success. It doesn't matter which map I use.

My FMs: The King of Diamonds (2016) | Visit my Mapbook thread sometimes! | Read my tutorial on Image-Based Lighting Workflows for TDM!

 

 

Link to comment
Share on other sites

I saw similar issues when testing using g_testPostProcess. It has something to do with visportals as disabling them fixes the problem.

 

To use this in production you need to modify the hud gui by creating an extra windowDef and applying the material there.

 

I'm not able to whip up a modified GUI ATM but if nobody addresses the problem for you in the next day or so I'll see what I can do.

  • Like 2
Link to comment
Share on other sites

Thats awesome! But unfortunately, I was testing this on a couple of maps and Im getting a black screen. The game is running, you can see the HUD items (and see the night skybox in one map), but everything else is black...

Link to comment
Share on other sites

To use this in production you need to modify the hud gui by creating an extra windowDef and applying the material there.

Simple method to color-grade the screen, is to give the hud-gui a transparant background colour.

(but i didnt added an extra windowdef)

Its doesnt have nice effect like in the screenshots above, but it gives the player a low-systemperformance effect.

Edited by freyk

Info: My portfolio and darkmod graphical installer
Amnesty for Bikerdude!

Link to comment
Share on other sites

@freyk:

 

Sure, if all you want to do is apply a color cast that works.

 

@RPGista:

 

Are there missions where you don't get a black screen? I've tested it in the training mission and it works fine. I'm not sure how to handle this aside from doing something silly like binding a sphere to the player if the gui overlay approach doesn't work.

Link to comment
Share on other sites

Strange... I tried on a few more missions I have here, got an image in Mother Rose, everything was working great in the sense all items but the HUD graphics were being affected by the color grading, but it was extremely dark, several times darker than my clut editing. In A Step too Far, all I get is the starry sky. In my own testing map, only a black screen. Im posting the console dump, if it is any help.

 

mother.txt

 

step.txt

 

testing.txt

 

PS: In all cases, the HUD graphics are showing fine (player items). Its the world view and hud models that are black.

Could it be anything related to graphics settings?

 

PS2: I put the pk4 in the darkmod folder (was using it per mission folder before). I can confirm that the shader works on the training mission, as well as the Saint Lucia one. But both are suffering from strong slow downs on random intervals, the image just freezes, then comes back again. The game doesnt hang, I can escape to the menu and exit the game normally. It just freezes while playing.

Edited by RPGista
Link to comment
Share on other sites

No, this was a lot darker than that, and I just tested it inside the starting area, the cemetery. It was as if I had lowered the levels almost completely on the LUT palette (it was a notch above completely black), but I was using the same one I used to make the screenshots above. It was definitely something to do with the GUI overlay.

 

The bound sphere thing does work, but it has several setbacks. It wont follow you if you crouch (it hovers over your head). If its too small, you'll come out of it when you are mantling things. If its too big, it will clip models around you. I guess thats why you could use two, one big and one small, to account for these problems. But it wont affect the player's HUD models (arms and weapons) which breaks the effect quite a lot. Hopefully this is not hard to fix, having it on the GUI is the perfect solution!

Link to comment
Share on other sites

IIRC, my solution in Cleighmoor for putting a veil over the player's eyes was to not bind the veil to the player, but to move the veil each frame and place it X units in front of the player's eyes, and rotate it properly so that the forward view vector always intersected the veil's plane at 90 degrees. This way, when the player crouches, the veil also crouches. (I might be wrong, but this is how I remember it.)

  • 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

    • The Black Arrow

      Any of you heard Age of Wonders 4's OST?
      https://www.youtube.com/watch?v=Q0TcoMGq4iA
      I love how after all these years, Michiel van den Bos still conserves his "Melodic" spirit.
      · 0 replies
    • nbohr1more

      Moddb article is up:  https://www.moddb.com/mods/the-dark-mod/news/the-dark-mod-212-is-here
      · 3 replies
    • Petike the Taffer

      I've been gone for a while, but now I'm back, have a new desktop and I want to get back to making missions and playing missions. And doing other contributions. Waiting for my reset password for the wiki, but I'll take a look at it soon. Hello, all.
      · 4 replies
    • snatcher

      TDM Modpack 4.0 for The Dark Mod 2.12 released!
      · 1 reply
    • nbohr1more

      Congrats to all the busy Dark Mod developers! TDM 2.12 is here!
      · 4 replies
×
×
  • Create New...