demagogue Posted March 3, 2014 Report Share Posted March 3, 2014 I was thinking about a monochrome FM, and now watching that, I bet it'd make a real impression with B&W because it'd make the whites really stand out & almost washout. It's not for everything, but if you want to make a stylized visual impression for a gimmick artistic FM it'd be interesting to play with. Quote What do you see when you turn out the light? I can't tell you but I know that it's mine. Link to comment Share on other sites More sharing options...
Obsttorte Posted March 3, 2014 Report Share Posted March 3, 2014 It was a little hard to fathom at first but it looks like you've got a basic distance occlusion working correct? Pretty cool stuff. Am I also seeing some changes to dynamic ambient lighting?Lots of bloom on the light sources? Or is there Ambient Occlusion? Difficult to see much because windowed TDM, dark scenes, and you move very quickly so it is hard to see any details. Could you tell what exactly is different there?This is the shader used. !!ARBvp1.0 OPTION ARB_position_invariant; END !!ARBfp1.0 OPTION ARB_precision_hint_fastest; TEMP curPos, curRend, bloom, avg, avg_; TEMP des, des_; # get current position on screen MOV curPos, fragment.position; MUL curPos, curPos, program.env[1]; MUL curPos, curPos, program.env[0]; # get current render and bloom image TEX curRend, curPos, texture[0], 2D; TEX bloom, curPos, texture[1], 2D; #calculate brightness ADD avg, curRend.r, curRend.g; ADD avg, avg, curRend.b; MUL avg, avg, 0.33; SUB avg_, 1.0, avg; #desaturate SUB des, avg, 0.6; MAX des, des, 0; MUL des, des, 2.5; SUB des_, 1.0, des; MUL curRend, curRend, des_; MAD curRend, avg, des, curRend; MUL avg, avg, 1.0; SUB avg_, 1.0, avg; #bloom bright areas MUL curRend, curRend, avg; MAD curRend, bloom, avg_, curRend; #modify brightness SUB curRend, curRend, 0.2; MUL curRend, curRend, 1.1; ADD curRend, curRend, 0.25; #reduce red and green values SUB curRend.r, curRend.r, 0.03; SUB curRend.g, curRend.g, 0.02; #brighten bright areas SUB des, curRend, 0.2; MAX des, des, 0; MUL des, des, 6; MAD curRend, des, avg, curRend; # store result MOV result.color.xyz, curRend; MOV result.color.w, 1.0; END The shader desaturates bright areas. Than it changes the brightness, by darkening dark areas and brightening bright areas. Bright areas get bloomed out a bit more and then brightened a bit more. Red and green color values get reduced during these steps. In addition there are particle effects used on the lights which increases the bloomy effect. To compensate the darkness, there is a non-shadowcasting light attached to the player using ambient_biground. It's a white light of brightness 30 which causes this distance occlusion like effect. In the mission the lightgem modifier would have to be adjusted to compansate this. I didn't do this here as it is just for testing.I was thinking about a monochrome FM, and now watching that, I bet it'd make a real impression with B&W because it'd make the whites really stand out & almost washout. It's not for everything, but if you want to make a stylized visual impression for a gimmick artistic FM it'd be interesting to play with.This is actually pretty easy. For black and white the shader would look as following: !!ARBvp1.0 OPTION ARB_position_invariant; END !!ARBfp1.0 OPTION ARB_precision_hint_fastest; TEMP X; # get current position on screen MOV X, fragment.position; MUL X, X, program.env[1]; MUL X, X, program.env[0]; # get current render image TEX X, X, texture[0], 2D; #compute brightness ADD X.x, X.x, X.y; ADD X.x, X.x, X.z; MUL X.x, X.x, 0.33; #store brightness as screen color MOV result.color, X.x; END If the bright areas look too bright, you can manipulate the brightness, too. For monochrome, you would have to get the color value from the brightness. If you want sepia for example, the RGB values relates to each other like 4-2-1; MUL X.r, X.r, 4.0; MUL X.g, X.g, 2.0; MOV X.b, X.b; MUL result.color.rgb, X.rgb, 0.14; Quote 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 More sharing options...
Obsttorte Posted March 3, 2014 Report Share Posted March 3, 2014 Sepia looks like this: 3 Quote 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 More sharing options...
demagogue Posted March 3, 2014 Report Share Posted March 3, 2014 Oh, and here I was thinking I'd have to manually edit textures like Thief Noir. That saves some time.I should do this for some random FMs sometime.Now all I need is a filter for old film scratches. Quote What do you see when you turn out the light? I can't tell you but I know that it's mine. Link to comment Share on other sites More sharing options...
Obsttorte Posted March 3, 2014 Report Share Posted March 3, 2014 Yep, it's pretty easy. The only thing to keep in mind is that the shader only applies to the 3D scene. The gui (inventory, weapon icons, lightgem and readables etc..) are not affected by that. But that is relatively easy to do (but still a bit time-consuming). Quote 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 More sharing options...
Popular Post SteveL Posted March 7, 2014 Popular Post Report Share Posted March 7, 2014 (edited) There's no visual beauty in these shots but I thought I'd share the techie joy! Moonlight that responds to cloud cover (the cloud layer is moving). Note the correlation between the moon/clouds, the shadows on floor and "buildings", and the lightgem. These shots were taken over the course of 10 seconds as the moon came out. When players are sneaking about a guarded courtyard in any map I make, they'd better keep an eye on the sky and time it right EDIT: To be clear, when I say "any map I make", I'm not reserving this technique for my WIP. Happy to share the details and test map in another thread if people want them. Edited March 7, 2014 by SteveL 14 Quote Link to comment Share on other sites More sharing options...
RJFerret Posted March 7, 2014 Report Share Posted March 7, 2014 I disagree, there's not greater beauty than fun game-play! Happy to share the details and test map in another thread if people want them. Yes please, or could it simply be a prefab? (Discounting the leaf connecting tubes for the lights-that-shall-be-avoided.) My next map I'd not started on yet, as cloud shadows would be a key element. Quote "The measure of a man's character is what he would do if he knew he never would be found out."- Baron Thomas Babington Macauley Link to comment Share on other sites More sharing options...
SteveL Posted March 7, 2014 Report Share Posted March 7, 2014 (edited) You correctly identified the main thing that can't be prefabbed: glitch-free parallel lights across big exteriors. But if my "caulk tube" method proves robust, then the situation is quickly fixable in DR for anyone who can be bothered, which I guess includes all mappers. I'd not attempt to release a solution with that requirement at work! The skybox can easily be prefabbed (stars/moon and cloud layers). But if people wanted to use a custom earth layer in the skybox like I have above, they'd have to re-render the stars layer too, as the only way to add a horizon glow to the scene without screwing up the alpha of the earth layer is to render the horizon glow in the starry backdrop. For a "normal" skybox without a visible horizon, it would be fine. Only thing is, it needs a custom entityDef and custom textures for the cloud layer at least, and about 20 lines of script. Can those be packaged in a prefab? Edited March 7, 2014 by SteveL Quote Link to comment Share on other sites More sharing options...
Obsttorte Posted March 7, 2014 Report Share Posted March 7, 2014 Can you pm me a link to a test map using this? I would like to take a look as this idea is really cool (I never thought about such a thing). Maybe the approach can be easened so it is packageable as a prefab. This is gold for any FM playing outdoor and adds a complete new dimension towards the things the player has to be aware of. Good work btw. Quote 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 More sharing options...
Flanders Posted March 7, 2014 Report Share Posted March 7, 2014 If i see it correctly the whole map lights up if the moon is not blocked by a cloud. You can also try to use a cloud texture for the ambient light, with dark and lighter areas. Ive done this and it works pretty well except for that it is obvious on tall buildings that the projection is top down. Quote Link to comment Share on other sites More sharing options...
RJFerret Posted March 7, 2014 Report Share Posted March 7, 2014 With the ambient light method though (which I had in my first map), how do you coordinate the texture so the player can look up and see when the next change is coming? Quote "The measure of a man's character is what he would do if he knew he never would be found out."- Baron Thomas Babington Macauley Link to comment Share on other sites More sharing options...
SteveL Posted March 7, 2014 Report Share Posted March 7, 2014 If i see it correctly the whole map lights up if the moon is not blocked by a cloud. You can also try to use a cloud texture for the ambient light, with dark and lighter areas. I've done this and it works pretty well except for that it is obvious on tall buildings that the projection is top down. That's right. There's no cloud shadows involved. A script checks the alpha value of the cloud layer over the moon every 2 seconds and adjusts the level of the main moonlight accordingly. I take it your ambient texture idea would fake the line of darkness crossing an open area too? Can you pm me a link to a test map using this? I would like to take a look as this idea is really cool (I never thought about such a thing). Maybe the approach can be easened so it is packageable as a prefab. This is gold for any FM playing outdoor and adds a complete new dimension towards the things the player has to be aware of. Good work btw. Thanks! I'll share a map tomorrow. I've sketched out an idea that'll let me test and demo the single-moonlight-for-whole-map trick, plus this variable moonlight effect. I plan to put in test buttons that'll turn on and off individual visportals in the ceiling. But if I don't get that done in time, I'll let the people who've asked to see it have a stripped-down copy of the map above -- the reason I haven't just posted that map is that it's got loads of my custom textures and stuff embedded right through it plus spoilers for my WIP. Quote Link to comment Share on other sites More sharing options...
SteveL Posted March 7, 2014 Report Share Posted March 7, 2014 (edited) With the ambient light method though (which I had in my first map), how do you coordinate the texture so the player can look up and see when the next change is coming? I'll have a guess: The ambient texture would be made from your cloud layer, offset by the right amount for the angle of the moonlight. Then you give it the same translate (scroll) parameters as the cloud layer. I used a similar method in the varying moonlight example. The script knows what coords to check on the alpha map because it has the same formula for calculating cloud displacement as is used in the cloud shader itself: system time * a couple of constants. That means there's no need to keep them in sync. They resynchronise to the system clock every couple of seconds. Edited March 7, 2014 by SteveL Quote Link to comment Share on other sites More sharing options...
SteveL Posted March 8, 2014 Report Share Posted March 8, 2014 Demo map posted in separate thread: http://forums.thedarkmod.com/topic/16046-dynamic-moonlight/page__view__findpost__p__339382 Quote Link to comment Share on other sites More sharing options...
someTaff Posted March 10, 2014 Report Share Posted March 10, 2014 Ive just uploaded a replacement, but bloody youtube keep downgrading the qaulity of the video so it looks shit.Sony vegas and adobe premier both has settings wich results in hd youtube clips-First, theres project settings: hd 720/30fps. And second- output as hd 720 wmf-file. There tuturial on youtube wich explains it nicely. Quote What excuse do we have not to sculpt, and sculpt, and sculpt, until the job is done? Link to comment Share on other sites More sharing options...
Popular Post Shadowhide Posted March 10, 2014 Popular Post Report Share Posted March 10, 2014 some WIP shots from my city map : 18 Quote Proceed with caution! Link to comment Share on other sites More sharing options...
New Horizon Posted March 10, 2014 Report Share Posted March 10, 2014 Good Lord man. Those are beautiful shots! Good work. Quote Link to comment Share on other sites More sharing options...
Bikerdude Posted March 11, 2014 Report Share Posted March 11, 2014 Very atmospheric looking city street there mister. Sony vegas and adobe premier both has settings wich results in hd youtube clips-No good in that instance because I was working with sub 4k resolution (5140*1050) Quote Link to comment Share on other sites More sharing options...
Moonbo Posted March 11, 2014 Report Share Posted March 11, 2014 Hey Shadowhide, Looks really good! One small nitpick on the last picture is that the window in the center has a texture with a slat of wood running diagonally across it which looks weird running behind the window (probably better to just use a texture with wood around the edges). 1 Quote But you should walk having internal dignity. Be a wonderful person who can dance pleasantly to the rhythm of the universe.-Sun Myung Moon My work blog: gfleisher.blogspot.com Link to comment Share on other sites More sharing options...
SeriousToni Posted March 11, 2014 Report Share Posted March 11, 2014 Nice work there, Shadowhide - looking forward to this! Did you already make use of the mystic firefly script you once developed? I remember reading of it some year ago. Quote "Einen giftigen Trank aus Kräutern und Wurzeln für die närrischen Städter wollen wir brauen." - Text aus einem verlassenen Heidenlager Link to comment Share on other sites More sharing options...
Shadowhide Posted March 11, 2014 Report Share Posted March 11, 2014 (edited) thanks everyone! @Moonbo:yeah,thats a good suggestion,I'll change it @SeriousToni:magic firefly was used in the both of my released fm's,its just a mover with particle effect bound to it thats moves alonge the spline path,so there is nothing special about it Edited March 11, 2014 by Shadowhide Quote Proceed with caution! Link to comment Share on other sites More sharing options...
Popular Post Goldwell Posted March 13, 2014 Popular Post Report Share Posted March 13, 2014 (edited) So Bikerdude and myself have been cooking up a fantastic mission for you all which should be coming out tomorrow (provided final beta test rounds go well). Here is the introduction clip as a little teaser of whats to come tomorrow http://www.youtube.com/watch?v=sJS9Qm1i6jM Edited March 13, 2014 by Goldwell 20 Quote Shadows of Northdale Campaign ACT I: A Curious Mind | ACT II: Down The Rabbit Hole Stand Alone Missions Accountant 1: Thieves and Heirs | Accountant 2: New In town | Spring Cleaning | Lord Edgar's Bathhouse | Snowed Inn | Noble Affairs Link to comment Share on other sites More sharing options...
Vae Posted March 14, 2014 Report Share Posted March 14, 2014 Nice intro...Can't wait to play... 1 Quote Link to comment Share on other sites More sharing options...
Kvorning Posted March 14, 2014 Report Share Posted March 14, 2014 Awesome Definitely gonna play that! 1 Quote FM: Lords & LegacyScreenshots/SpoilersScreenshots from beginning to near end of build (Spoilers) Link to comment Share on other sites More sharing options...
Popular Post Springheel Posted March 14, 2014 Author Popular Post Report Share Posted March 14, 2014 The whole time I was listening to that I couldn't help thinking you sound WAY more like Garrett than Romano in T4. 5 Quote TDM Missions: A Score to Settle * A Reputation to Uphold * A New Job * A Matter of Hours Video Series: Springheel's Modules * Speedbuild Challenge * New Mappers Workshop * Building Traps Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.