Jump to content

Recommended Posts

Are you kidding me( @Lion.Kanzen ), that guy he did build a normal line, he realized FXAA, but he failed when he realized MSAA, and I think his code can help my friend  aeonios.

 

 https://trac.wildfiregames.com/ticket/3640   This is the code he implements, my friend, you can take the time to see it. Maybe it can help you. Thank you! 

 

Share this post


Link to post
Share on other sites
47 minutes ago, aeonios said:

I'm considering implementing a variant of FXAA using depth and normals to exclude any non-geometric edges.

I attached FXAA examples earlier, and textures are a little bit blurry (even with depths and normals). And as you said:

On 4/16/2018 at 11:13 PM, aeonios said:

FXAA is probably a bad choice though. It has a bad tendency to blur everything into oblivion, especially for small units or anything with a complicated texture. It's also potentially very expensive, especially when it's hitting false positives and blurring things that it shouldn't be.

Making the FXAA not blurry at all may be expensive.

Share this post


Link to post
Share on other sites
23 minutes ago, vladislavbelov said:

I attached FXAA examples earlier, and textures are a little bit blurry (even with depths and normals). And as you said:

Making the FXAA not blurry at all may be expensive.

Probably not more expensive than MSAA. We're talking 50% more memory and bandwidth to read/store normals vs 300% more for a multisampled texture. The depth/normals test also provides an early exit for FXAA which ought to reduce the memory bandwidth it uses, probably, and definitely reduce compute costs.

  • Like 1

Share this post


Link to post
Share on other sites

 https://code.wildfiregames.com/D1486

@aeonios I tested the patch, and when I started the game, the game had the wrong message:            

ERROR: CCacheLoader failed to find archived or source file for: "shaders/effects/postproc/HDR.xml"

ERROR: Failed to load effect 'postproc/HDR'

ERROR: CCacheLoader failed to find archived or source file for: "shaders/effects/postproc/HDR.xml"

ERROR: Failed to load effect 'postproc/HDR'

Edited by gameboy

Share this post


Link to post
Share on other sites
19 minutes ago, gameboy said:

 https://code.wildfiregames.com/D1486

@aeonios I tested the patch, and when I started the game, the game had the wrong message:            

ERROR: CCacheLoader failed to find archived or source file for: "shaders/effects/postproc/HDR.xml"

ERROR: Failed to load effect 'postproc/HDR'

ERROR: CCacheLoader failed to find archived or source file for: "shaders/effects/postproc/HDR.xml"

ERROR: Failed to load effect 'postproc/HDR'

check that directory. The file name is probably wrong. For some unknown reason tortoiseSVN is a piece of crap and can't handle things like name changes properly.

Share this post


Link to post
Share on other sites

@aeonios I checked that directory.  Need a HDR.XML in directory: shaders/effects/postproc, I do not have this file, this error always appears, and then the game crashes. 

Edited by gameboy

Share this post


Link to post
Share on other sites
38 minutes ago, gameboy said:

@aeonios I checked that directory. HDR directory does not exist. I may need to create a HDR directory. 

It's not a directory. It's a file in mods/public/shaders/effects/postproc. It should be called HDR.xml, with those caps.

Share this post


Link to post
Share on other sites
5 minutes ago, gameboy said:

@aeonios

When I opened this function, I had this problem: 

 

Inked1.jpg

2.png

Hmm. What kind of graphics card are you using, what OS and what drivers?

EDIT: Also, did you recompile pyrogenesis?

Edited by aeonios

Share this post


Link to post
Share on other sites

Also, did you recompile pyrogenesis?    yes.

My operating system is WIN10 64bit, and the graphics card is GTX750M. 

Share this post


Link to post
Share on other sites
4 minutes ago, gameboy said:

Also, did you recompile pyrogenesis?    yes.

My operating system is WIN10 64bit, and the graphics card is GTX750M. 

I have a suspicion. Try dropping this into mods/public/shaders/glsl:

terrain_common.fs

Share this post


Link to post
Share on other sites

Ok keep in mind I only changed the terrain shader, and as you can see it's only models that still have the weird black effects showing up so it worked. The downside is that the bit I removed is what gives the shadows a smooth, gaussian-like falloff. I need to figure out what part of it is screwing up.

Try this, same thing:

terrain_common.fs

Share this post


Link to post
Share on other sites

@aeonios I really hope that you can find the root cause of the mistake as soon as possible. Good luck, my friend. Thank you for your help.

Share this post


Link to post
Share on other sites

@aeonios I tested it again, but I found a problem: when I opened the option: soft shadows, the shadow became blurred, and when I closed it, the shadow became clear, my God, what's the matter? 

Share this post


Link to post
Share on other sites
Just now, gameboy said:

@aeonios I tested it again, but I found a problem: when I opened the option: soft shadows, the shadow became blurred, and when I closed it, the shadow became clear, my God, what's the matter? 

It's supposed to be blurry. If it looks wrong post a screenshot.

Share this post


Link to post
Share on other sites
5 minutes ago, gameboy said:

@aeoniosOK, my friend!

 

40.png

19.png

Yes, that's what it's supposed to look like. I see that the issue with black artifacts is gone also. Newer cards seem to dislike having 0 as an input to the power function.

Share this post


Link to post
Share on other sites

@aeonios No, the black on the building has not disappeared. 

Sorry, please forgive my question: when will you fix this problem?

 

 

 

6.png

Share this post


Link to post
Share on other sites
3 minutes ago, gameboy said:

@aeonios No, the black on the building has not disappeared. 

Sorry, please forgive my question: when will you fix this problem?

 

 

 

6.png

Did you add the new files I posted above? Also don't take screenshots with the freaking settings window open, I can't see what's even going on.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×