Duion Posted August 8, 2016 Share Posted August 8, 2016 I noticed the ambient colors in 3.9 being overall much brighter. Before 3.9 it was like that 100% bright was 100% bright, 50% bright was 50% bright and 0% was 0% bright, now it feels more like the algorithm works different and 50% bright is more like 85% bright and 25% is like 70% bright etc.What I want to say is that if you want to work with dark scenes like night, you only have like the lower 10% of the brightness scale to work with, since everything else is too bright and the scale is too small to being able to adjust it well through the slider.Like if you want night brightness levels you now have to use values from 0.05 to 0.00 now.For example in one scene before I had for night ambient the value 0.2 and now I have to go down to like 0.025 to 0.035 to have a similar result, you cannot even enter such small numbers in the editor, you can enter only two digits after the comma, you can only hope to hit it with the mouse slider. Overall it looks like you have to go down to almost 10 times lower to achieve a similar result now.So it seems some algorithms have changed like the ambient scale as well as brightness and gamma, which now work differently, since you have brightness, contrast in addition to gamma and gamma only works in a small range now from 2 to 2.5 above and below it will not do anything.So any ideas what has been going on to the algorithms and rendering? I don't necessarily want it changed, but at least the color picker menu needs some change either to be able to pick the colors better and more accurate or bringing the algorithm up so you can use the proper range. Quote Link to comment Share on other sites More sharing options...
Duion Posted August 9, 2016 Author Share Posted August 9, 2016 (edited) I made a comparison screenshot of the same scene with same lighting settings in scatterSky, one in 3.8 and one in 3.9 with the new deferred rendering.The settings are: night color: 0.2fog color: 0moonlight color: 0.33.8: http://duion.com/files/temp/screenshot_005-00002.png3.9: http://duion.com/files/temp/screenshot_TG_Fields_night008-00002.pngAs you can notice the new version is extremely more bright with the same settings.PS: You can also see that the black fog, does not darken anymore in 3.9.PPS: The first screenshot in 3.8 had HDR turned off, that is why the colors are more saturated, but for the brightness it does not alter much, since HDR actually darkens the scene and in 3.9 where it is on, it is still much brighter. Edited August 9, 2016 by Duion Quote Link to comment Share on other sites More sharing options...
Duion Posted August 9, 2016 Author Share Posted August 9, 2016 Being able to pick smaller numbers may not be a solution since the one color picker cannot go lower:0.024 is #060606 and next step is 0.027 which is #070707 and inbetween there is none, that is already the smallest steps you can go.So you are only left with a handful of brightness steps where you can adjust night ambience. Quote Link to comment Share on other sites More sharing options...
Duion Posted August 9, 2016 Author Share Posted August 9, 2016 This may be related to the fog banding issue https://github.com/GarageGames/Torque3D/issues/1724Since when I adjusted the lighting settings to more extreme numbers in 3.8 the fog banding became visible as well, it depends on lighting and contrast to make the banding visible and since you have to use more extreme values in 3.9 this may be the reason the fog banding becomes visible more. Quote Link to comment Share on other sites More sharing options...
NekoDemon117 Posted August 10, 2016 Share Posted August 10, 2016 I think this is because of the fog banding issue.I discovered fog artifacts (auras) in the sky in the "Outpost" level. What I did was change the day/night cycle setting to night and turn off the "play" setting. Then I went up into the "bridge" part of the building. Then when I look up at the sky after looking down at the bridge, the sky has flickering auras that quickly dissipate. This is infinitely repeatable by looking back down at the bridge, then looking back up at the sky.I can't really show the problem properly with a screenshot, but I could show exactly what I mean if I could get a video recording. Is there a built-in video capture in Torque3D?Also, the ground is still very dark, but the sky looks a lot brighter than it should and some places in the map are lit up weird. Quote Link to comment Share on other sites More sharing options...
JeffR Posted August 10, 2016 Share Posted August 10, 2016 @NekoDemon117Try Bandicam. Free, and it produces pretty solid quality videos without a huge amount of recording overhead. I use it and it's pretty solid.OT, As per the work that went on in IRC yesterday, it looks like most of this stems from how linearization of light and colors was being handled. Good headway was made on that, and we can get the code up here for others to verify against before a roll-in. I think the only remaining bit is the fog was still a touch off, but overall the lighting was much improved and correct. Quote Link to comment Share on other sites More sharing options...
Duion Posted August 11, 2016 Author Share Posted August 11, 2016 (edited) Please do not use Bandicam it mutilates your videos with a branding use https://obsproject.com/ instead.And Torque has a build in movie recorder as well.Regarding the issue, yes the code fixes the ambient scale, but the fog, the specular and the backside of the objects may still be wrong.3.8:http://duion.com/files/temp/screenshot_007-00002.png3.9 with fix:http://duion.com/files/temp/screenshot_TG_Fields_night009-00000.pngHere another shot with the Soldier using the same skin, since it uses a darker skin on my first picture.http://duion.com/files/temp/screenshot_TG_Fields_night015-00000.pngAs you can see, fog is too bright and the backside of the soldier is too dark, the specular thing you cannot see much in that screenshot.Settings are 0.2 ambient, 0.3 moonlight color and 0.1 fog color. Edited August 11, 2016 by Duion Quote Link to comment Share on other sites More sharing options...
Duion Posted August 11, 2016 Author Share Posted August 11, 2016 And before someone says my specular maps are adjusted wrong, they cannot be adjusted at the moment, since that system is broken.There is probably a chain reaction of issues since the light colors are wrong to begin with. Quote Link to comment Share on other sites More sharing options...
Azaezel Posted August 11, 2016 Share Posted August 11, 2016 https://github.com/Azaezel/Torque3D/commit/13f00ca79d0dadb47ae8d88498f459d9aef7dd01 the code we were going over regarding ambient. Quote Link to comment Share on other sites More sharing options...
Nils Posted August 11, 2016 Share Posted August 11, 2016 If you have a recent NVIDIA GPU then simply use Shadowplay for recording. There's much less performance drop with that.@Duion The differences shots look worrisome. Even the normal maps seem to be completely off. Are $pref::Video::Contrast, $pref::Video::Brightness and $pref::Video::Gamma properly set? (those are implemented with 3.9, right?)May I ask what difference in performance you see between 3.8 and 3.9? Quote Link to comment Share on other sites More sharing options...
Duion Posted August 11, 2016 Author Share Posted August 11, 2016 The gamma in 3.8 was in the middle of the slider and in 3.9 as well, I let it in the middle default settings, since this looks to be the equivalent to it, I checked before if it looks similar.The normal maps you cannot see much in the screenshots, but they are broken.Regarding the performance I could not tell, seemed to be a little better, but not much. I could notice significantly less polygoncount, so this should impact performance in some way positively. I will make more detailed tests for that later. Quote Link to comment Share on other sites More sharing options...
Nils Posted August 13, 2016 Share Posted August 13, 2016 Sorry, I have been "away" too long, still catching up with the loads of new & replaced code.The global for gamma has been there a long time, true. What I meant are these:$pref::Video::Brightness $pref::Video::ContrastProbably totally not related though, but I would try to tinker with those anyway ;-) Quote Link to comment Share on other sites More sharing options...
Duion Posted August 13, 2016 Author Share Posted August 13, 2016 I already implemented sliders for those and set them to default values, brightness = 0 and contrast = 1 which is similar to the old settings. The issue we have here has nothing to do with those values. Quote Link to comment Share on other sites More sharing options...
JeffR Posted August 15, 2016 Share Posted August 15, 2016 Regarding the performance I could not tell, seemed to be a little better, but not much. I could notice significantly less polygoncount, so this should impact performance in some way positively. I will make more detailed tests for that later. The jump from prepass to deferred will reduce the polycounts rendered, but offset the potential gains there with extra bandwidth costs in setting up the gbuffer and the like.In your average scene, performance is likely to be about the same, but deferred shading scales better when adding more lights and post process heavy effects. Quote Link to comment Share on other sites More sharing options...
Duion Posted August 15, 2016 Author Share Posted August 15, 2016 PostFX was on in my tests, could not notice performance gain. So depends on what you call "heavy effects" Quote Link to comment Share on other sites More sharing options...
Duion Posted September 1, 2016 Author Share Posted September 1, 2016 https://github.com/Azaezel/Torque3D/commit/13f00ca79d0dadb47ae8d88498f459d9aef7dd01 the code we were going over regarding ambient. I'm using this fix, but it still seems that the fog and specular is not taken into account. Ambient and light brightness seem to be pretty exactly the same they were before, but fog and specular are still too bright.There is a night level that is almost black now, did not adapt the settings yet, but I noticed that if there is specular, things can shine extemely bright, even though the rest is hardly visible at all, here is a pic demonstrating the issue at one of the worst points:http://duion.com/files/temp/screenshot_TG_Fields_night029-00004.png Quote Link to comment Share on other sites More sharing options...
Duion Posted September 1, 2016 Author Share Posted September 1, 2016 Az told me to try to flip those two lines here:https://github.com/GarageGames/Torque3D/blob/development/Templates/Full/game/shaders/common/lighting/advanced/deferredShadingP.hlsl#L50-L51The issue seems to be gone now, but specular is a bit problematic to test, since there is some weirdness going on in the intensity sliders and you cannot change intensity when using a texture currently, but overall looks like a fix so far. Quote 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.