Fallout 4 0.285 beta

Forum rules
new topics are not allowed in this subsection, only replies.
  • Author
  • Message
Offline
User avatar
*blah-blah-blah maniac*
Posts: 1938
Joined: 05 Mar 2012, 02:08

Re: Fallout 4 0.285 beta

Well then use the boolean annotation then. It displays as a "check mark" used for UseEffect and the other "check mark" activators.

Code: Select all

  bool ENABLE_EFFECT <
    string UIName = "Enable a Effect";
  > = {false};
can also be done like this;

Code: Select all

  bool2 ENABLE_EFFECT <
    string UIName = "Enable a Effect";
  > = {false, true};

Offline
User avatar
*sensei*
Posts: 267
Joined: 12 Oct 2012, 19:14

Re: Fallout 4 0.285 beta

thx alot
_________________
Image

Offline
User avatar
*blah-blah-blah maniac*
Posts: 1938
Joined: 05 Mar 2012, 02:08

Re: Fallout 4 0.285 beta

Display depth;

Code: Select all

color = frac(TextureDepth.Sample(Sampler0, IN.txcoord0.xy) * 1000);
Implementation example;

Code: Select all

// Helper Function
float linearDepth(float d, float n, float f)
{
    return (2.0 * n)/(f + n - d * (f - n));
}

// Pixel Shader
  float Depth        = TextureDepth.Sample(Sampler0, IN.txcoord0.xy ).x;
  float linDepthFrom = linearDepth(Depth, 0.5f, fFromDepth);
  float linDepthTo   = linearDepth(Depth, 0.5f, fToDepth);
    color            = color * (1.0f - linDepthFrom);
    color            = color * linDepthTo;

EDIT;
Maybe this wasn't what you where refering to however?

Offline
User avatar
*sensei*
Posts: 267
Joined: 12 Oct 2012, 19:14

Re: Fallout 4 0.285 beta

nevermind, found the way :)

thx anyway!!
Image
_________________
Image

Offline
User avatar
*blah-blah-blah maniac*
Posts: 17545
Joined: 27 Dec 2011, 08:53
Location: Rather not to say

Re: Fallout 4 0.285 beta

To linearize depth i prefer 1.0/max(1.0-depth, 0.0000000001);
_________________
i9-9900k, 64Gb RAM, RTX 3060 12Gb, Win7

Offline
User avatar
*blah-blah-blah maniac*
Posts: 1938
Joined: 05 Mar 2012, 02:08

Re: Fallout 4 0.285 beta

Thanks for the suggestion Boris, will try it out right away.

Offline
User avatar
*blah-blah-blah maniac*
Posts: 17545
Joined: 27 Dec 2011, 08:53
Location: Rather not to say

Re: Fallout 4 0.285 beta

Folks, i can't decide is enbeffectprepass.fx required or not, if depth of field will be in different shader, before enbeffectprepass.fx. In Skyrim and later in Fallout 3 i made enbeffectprepass for different purposes, but was too late to change it's code. I only have seen artistic filters like painting, which probably computed in post pass shader, hdr data is not required for them. It's not a big problem to add support of prepass shader, but three additional internal textures are not nice addons to vram and creating them when used only is bad for optimization, they could be placed to ram instead of vram.
Another thing, i don't know how dx11 features may help to increase performance of bokeh depth of field. Generating circles as vertex quads on screen is definetly not my choice.
The last i asked already, is enbeffectpostpass.fx need temporary render target which computed once before any other techniques executed. I can't make assigning of render targets in passes via shaders, because it's extra vram requirements for surfaces, game is already have too many of them, so 1gb vram users having issues with stuttering.
_________________
i9-9900k, 64Gb RAM, RTX 3060 12Gb, Win7

Offline
Posts: 77
Joined: 12 Aug 2013, 20:38

Re: Fallout 4 0.285 beta

No errors after 3+ hours of gaming. Thank you Boris!
_________________
I7-4750k @ 4.00ghz, Radeon R9 290x 4gb, 32gb Ripjaw RAM, Win 7 x 64 on SSD

Offline
User avatar
*master*
Posts: 229
Joined: 21 Feb 2013, 03:21
Location: Los Angeles, CA

Re: Fallout 4 0.285 beta

Great update Boris and happy belated birthday to ENB!

I am using the mouse tempInfo1.xy and I found that the .x value is correct, but the .y values map from 0.0 to 0.3161 and not from 0.0 to 1.0. It's easy to just multiply the y coord by 1 / 0.3161 but I was wondering if that value was intended or maybe it's just my setup.
_________________
i7-4970K 4.8ghz, 16gb ram, Geforce Titan X 12gb vram, win7

Offline
User avatar
*blah-blah-blah maniac*
Posts: 17545
Joined: 27 Dec 2011, 08:53
Location: Rather not to say

Re: Fallout 4 0.285 beta

number6
Thanks, will be fixed in next update
_________________
i9-9900k, 64Gb RAM, RTX 3060 12Gb, Win7
Post Reply