Jump to content
The Dark Mod Forums

Search the Community

Showing results for tags 'shader'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • General Discussion
    • News & Announcements
    • The Dark Mod
    • Fan Missions
    • Off-Topic
  • Feedback and Support
    • TDM Tech Support
    • DarkRadiant Feedback and Development
    • I want to Help
  • Editing and Design
    • TDM Editors Guild
    • Art Assets
    • Music & SFX

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests

Found 3 results

  1. Hello, I tried to create a custom cloud effect, this looks fine in the DR Particle editor (can be coloured using the RGB and fades out slowly). However ingame the smoke is always grey coloured and pops up and instead fading to 0 it pops out again which makes the fog feel not very foggy animore. I've set my shader blend to blend. The editor looks like this: This is my shader setup // PARTICLES textures/darkmod/sfx/thunderpuff { qer_editorimage textures/darkmod/sfx/thunderpuff noShadows translucent { blend blend map textures/darkmod/sfx/thunderpuff } } I can get around the colouring issue by changing the DDS texture - however a slow fade in and fade out would be crucial to make it work. Anybody got an idea why my smoke puffs pop in and out instead of slowly fading?
  2. Lately, I was fiddling with TDM frob shader, because often I find it too subtle for my taste. Don’t get me wrong, it works as intended, but it looks best in complete darkness. In more lit rooms, e.g. while putting out candles, it’s a bit hard to see whether you’re able to interact with an object or not. Modern games use Fresnel-based shader to achieve this, so an object gets a bright outline. This is very in-your-face and something more like the “atomic-blue frob” from Thief Deadly Shadows we all hated back in the day. That said, I think you can achieve some middle ground here. I couldn’t get the proper fresnel program to work, since I’m not that good at shaders, but I don’t think I will need it. Instead, I created a “fake Fresnel” cubemap, which looks like this: You can easily make it in Gimp. It’s a 256 texture with radial gradient from black to white, and offset of 50, so the color transition starts further away from the center. If you just want an outline, use pure black as starting color. I wanted both some highlight and an outline, so I used RGB 32. Now you have to save it 6 times with _back, _down, _forward etc., so it gets recognized as a cubemap. Then you have to go to your material definition and put this instead of standard frob code: // This is the code required for frob highlighting this texture { if ( parm11 > 0 ) maskcolor map makealpha (_white) alpha .2 // modify it as you wish } { if ( parm11 > 0 ) blend gl_dst_alpha, gl_one maskalpha cameraCubeMap cubemap/path/here texgen reflect } Cool thing is, you can tweak the cubemap intensity with alpha parameter, so you’ll get more consistent look when you need different values for e.g. wooden and glass objects (the latter typically require more visible frob). This effect also looks a bit different on .ase models and on brushes / func_statics made in DR, so you can tweak it to look the same across all materials and types of surfaces. Small comparison:
  3. I would have liked to post this in the thread that had the upgraded shader that was created for windows where the water is running down the windows. Its likely? that we could use the window running water on roofs to get this effect but it would have to be scaled up. In Thief there is a shader with water sheeting down the roofs. It almost looks "veiny" and a bit like honeycomb in places because of the eddies flowing together from the sheeting action of water down the roofs. There are actually 2 different shaders going on here so I tried to highlight the water streams at the edges of the water sheets and the obvious direction of flow down the roof to make it more clear what the shader is. The water droplet impacts/ripples (circular) are the shader so disregard that effect in these shots. If you look closely you can see the ridges of water running down the roof. It could also be used in sewers where there are run-off concrete/brick slanted angles that water is cascading down. Its a shame there was really only one Thief mission, "Lockdown" with rain in it like this as the effect is really cool. Could one of the shader gurus here create something like this for TDM?
×
×
  • Create New...