Welcome, Guest.
Username: Password: Remember me

TOPIC: MXAO in Anno 1404/Dawn of Discovery Gold Edition

MXAO in Anno 1404/Dawn of Discovery Gold Edition 2 months 6 days ago #1

Hi guys,

Has anyone got this shader working with this game? For some reason it do not apply. Lumasharpen, and others work without issues, but not this one.

I'm running the game in DX10 mode.

Any tip or advice where to look or do to try to figure out why?

Thank you.
The administrator has disabled public write access.

MXAO in Anno 1404/Dawn of Discovery Gold Edition 2 months 6 days ago #2

  • Marty McFly
  • Marty McFly's Avatar
  • Offline
  • We've tried nothing and we're all out of ideas!
  • Posts: 610
  • Thank you received: 720
Are you sure that depth buffer support is given in this game?
Without depth buffer (the texture that stores the distance from camera to any object onscreen per pxel) MXAO cannot evaluate the occlusion between objects. Effects like lumasharpen only use the color buffer so they work without a problem. Almost every game has a depth buffer but sometimes ReShade cannot find it.. To check if missing depth buffer data is the issue, do the following: open up MXAO.fx file, scroll down to the techniques section and right above that there should be a line somewhere that says

res = color;

Right after that,, before the }, create a new line that says

res=GetLinearDepth(texcoord.xy);

Save and close.
Open up the game again and the scene should be a mixture of black and white If it is fully black or white, do check for objects that are close to camera etc, if you see any change onscreen it means that the depth buffer is recognized, just the function that prepares it for MXAO is not fitting. If it still stays entirely black or white, depth buffer is not recognized and you can't do anything about that.
The administrator has disabled public write access.
The following user(s) said Thank You: blackdragonbird

MXAO in Anno 1404/Dawn of Discovery Gold Edition 2 months 6 days ago #3

It seems to be the problem. Totally black image no matter the distance or angle of the camera. A pity. =(

Thank you for the info. =)
The administrator has disabled public write access.