Jump to content

Improper Rendering - New w/ Page 7


JelloMold

Recommended Posts

Fun new feature when I loaded up Page 7 today. The world doesn't... draw itself right? It didn't do this yesterday. It's not doing it for other people I talk to. I'm not on the newest computer, but it's never had trouble with ultra+ graphics. Set my graphics to exactly the same as others in the same zones and they do not get this mess. I re-validated twice. Any tips or possible fixes welcome.

screenshot_240220-22-12-11.jpg

screenshot_240220-22-12-11_1.jpg

screenshot_240220-22-12-19.jpg

screenshot_240220-22-12-32.jpg

  • Thumbs Up 1
Link to comment
Share on other sites

This is also happening to me. There's basically a huge gap between the horizon and the skybox. No graphics options change anything, nor does verifying the game.

 

2024-02-2116_31_49-Greenshot.thumb.png.4f00880ebb27e7a036d70894c9d930c9.png

Edited by Nishastra
Added screenshot
Link to comment
Share on other sites

Try adjusting /visscale n — start with 5 and adjust up and down for best visual/fps balance. (Limits are 0-10).

 

This and other key settings have gone in and out of being persistent, so I have a standard "set visuals" keybind I can whack to set everything on start of a post-hangover/-apocalyptic/-update session.

 

F10 "visscale 10$$dofweight 0.5$$fsaa 4"

 

 

Edited by Shenanigunner

UPDATED: v4.15 Technical Guide (post 27p7)... 154 pages of comprehensive and validated info on on the nuts and bolts!
ALSO:  GABS Bindfile  ·  WindowScaler  ·  Teleport Guide  ·  and City of Zeroes  all at  www.Shenanigunner.com

 
Link to comment
Share on other sites

I made some posts about this issue in the patch discussion and was hoping the devs would respond to notes about it from others as well, but since it doesn't seem to get much traction as people are discussing other issues so you did a good thing of making a bug thread of it. With my initial lookaround, and then following that with more testing, the recent patch somehow broke render distance and water rendering. None seem affected by /visscale and are an issue even on the default visual distance.

 

The issues seem to be in heavily lowered render distance, testable by just flying back and forth along some trees and seeing the details on them pop in instantly once you get close enough whereas the details would face in gradually normally and the objects load in with more detail before the patch. You didn't need to be very close to the object to see its model fully loaded, which seems the case now with trees, rocks and even cars, as well as rooftop detailing. The water texture also is rendering on top of every other map effect, causing really uncanny views and in open maps it allows you to see the edge of the world.

 

The third part to it is the seeming removal of world fog that would blur the edges between the skybox and the rest of the map. All of those issues can be tested just by going to Ouroboros as it even has some trees, and just looking to the side you can see both the water textures rendering and see the square of it in the distance, as well as the lack of map fog which causes a weird bright ring to appear around the map area.

 

screenshot_240221-03-46-28.jpg.84355f56b6fe2ba797b483cb53491c86.thumb.jpg.227a9526c871fc3c3d839489d6231942.jpg

Edited by Night
  • Thumbs Up 1
Link to comment
Share on other sites

On 2/20/2024 at 10:29 PM, Lunar Ronin said:

Just to help with data collection, which graphics card (if any), are you using?

I'm on a Radeon RX 480 on this machine. Latest drivers. All settings cranked up and running fine aside from the documented rendering bugs.

 

Just attempted to do the V-day Red Widow arc and oh my god, the last mission is unplayable thanks to whatever's gone wonky in the spaghetti code.

screenshot_240223-00-35-17.jpg

  • Thumbs Up 1
Link to comment
Share on other sites

  • City Council

@JelloMold's first issue looks like possibly a corrupt shader cache. That can be cleared using the "Reset graphics settings on next run" option in the launcher, or if you don't want to do that, manually deleting [cohinstall]\cache\shaders.

 

What @Night and I think @Nishastra are seeing I believe is an issue with the new gamma correction not applying to the skybox fog... and apparently fogged-out water. I did a comparison between page 6 and page 7 in Ouroboros and it looks identical at 100% gamma, but moving gamma to the extremes in page 7 makes it obvious what's happening.

 

image.png

 

image.png

 

image.png

 

Workaround for now is to use 100% gamma or close to it when outdoors until that oversight can be fixed.

 

 

  • Thanks 1
Link to comment
Share on other sites

  • City Council
9 hours ago, JelloMold said:

Just attempted to do the V-day Red Widow arc and oh my god, the last mission is unplayable thanks to whatever's gone wonky in the spaghetti code.

 

This is a completely separate issue specific to that mission (and a couple of Dark Astoria cave missions); we've got a fix in the pipeline for it.

Link to comment
Share on other sites

Hmm, I've never touched gamma. It was already at 100%. If I change it, I can make this look drastically worse, but...

 

2024-02-2311_14_38-Greenshot.thumb.png.5b39f74186b513d9c7f2dc1bd5fbb844.png

 

This is the same place in St. Martial as my other shots but with gamma turned down from 100%.

 

2024-02-2311_16_34-Greenshot.thumb.png.f37aaad99d18a8eb7e63d8eba416ea5d.png

 

Also I can pretty easily replicate JelloMold's picture if I turn on water reflections and go to Port Oakes.

 

EDIT:

2024-02-2312_01_27-Greenshot.thumb.png.fdee68970e50edaae2512eab951ea187.png

 

Okay, it's a shader. I restored older shaders and fiddled around until I found which one specifically. It's "multiplyRegfp.cg". When I use the older version of that, the gap goes away.

 

Edited by Nishastra
  • Like 1
Link to comment
Share on other sites

7 hours ago, Number Six said:

@JelloMold's first issue looks like possibly a corrupt shader cache. That can be cleared using the "Reset graphics settings on next run" option in the launcher, or if you don't want to do that, manually deleting [cohinstall]\cache\shaders.

Tried the Reset Graphics Settings option and it reset to... the same render issue.

screenshot_240223-17-35-39.thumb.jpg.73f7a88e63b479af5e68fb6411187127.jpg

 

4 hours ago, Nishastra said:

Okay, it's a shader. I restored older shaders and fiddled around until I found which one specifically. It's "multiplyRegfp.cg". When I use the older version of that, the gap goes away.

That last shot looks like heaven to me! If I were, say, a very dumb person who wanted to accomplish the same thing you did, do you have any tips on how I might go about that? 

Link to comment
Share on other sites

2 hours ago, JelloMold said:

That last shot looks like heaven to me! If I were, say, a very dumb person who wanted to accomplish the same thing you did, do you have any tips on how I might go about that? 

 

Okay, if you extract this into your Homecoming/Data/ directory, it should override that one file with an older version.

 

(Removed, check next post if you need it)

 

 

The end result should be "Homecoming/Data/shaders/cgfx/multiplyRegfp.cg". And then just delete that file to undo this whenever.

 

I would assume that they updated this file for a reason so this probably breaks something, but I can't stand the huge ugly hole in the world so...

Edited by Nishastra
  • Thanks 1
Link to comment
Share on other sites

  • City Council

There is definitely something screwy going on with that shader, had already identified it as a problem but it's been acting very strange and producing output that makes no sense. Finally got it to cooperate. There's one other problematic one that needs to be fixed as well that's making scene fog not affect some trees.

  • Like 4
Link to comment
Share on other sites

Huh, well, I learned something today: You can edit a shader file while the game is running and it will be reflected in real time. Thanks to that, I know with certainty that the line "out_color.rgb = calc_gamma_correction( out_color.rgb );" is the problem.

 

It seems to be mostly overriding the previous line, which calculates fog color. Having the gamma line there has almost the same results as just removing the fog line.

 

shaders2.zip

 

Here's a better version of my previous zip for anyone still wanting a quick fix. The file I had in there before would break cel-shading. This one shouldn't actually break anything, it just has the gamma line commented out.

Edited by Nishastra
Link to comment
Share on other sites

  • City Council
21 minutes ago, Azari said:

Seems like it should be simple and quick.

 

Hahahaha, no, it's a complete nightmare I've been fighting for hours. out_color.rgb = calc_gamma_correction( out_color.rgb ); should work. It works fine in half a dozen other fragment programs. But in that one, it causes the fog calculation to go screwy in a way that defies logic. Reversing the order or changing random other things causes different seemingly non-deterministic behavior that makes no sense.

 

I went so far as to rewrite how the fog is handled so I can change the order and do it the opposite way, which makes it work correctly for multiplyRegfp (yay!). But doing that somehow breaks it for colorBlendDualfp, in a similar way. And let's not even talk about the headache that SSAO adds to the mix.

 

So yeah, about to throw up my hands and just do it in a postprocessing pass instead. I really didn't want to do that because you lose a little bit of color fidelity that way, but it may be the only way that's feasible with the house of cards that is the renderer.

  • Thanks 3
  • Thumbs Up 1
Link to comment
Share on other sites

just saw this, as i was doing the vday granville mission to use cupid's bow. if it's corrupt shader cache, it's happening while playing the game, as i use ccleaner to clear my temp files and shader cache (and to shutdown my computer) every night. yet these still happen. first is to show buildings in the background, 2nd is for the mobs at ground level.image.thumb.jpeg.023206683cf5e66ee2807d204c71162a.jpegimage.thumb.jpeg.6464bdb57f8934d23f7a0a266f6990a8.jpeg

Link to comment
Share on other sites

  • City Council
15 minutes ago, Injunuity said:

just saw this, as i was doing the vday granville mission to use cupid's bow. if it's corrupt shader cache, it's happening while playing the game, as i use ccleaner to clear my temp files and shader cache (and to shutdown my computer) every night. yet these still happen. first is to show buildings in the background, 2nd is for the mobs at ground level.

 

That one is a different issue specific to that map. A fix for it is in the pipeline and should be out soon.

  • Thumbs Up 2
Link to comment
Share on other sites

5 minutes ago, Number Six said:

 

That one is a different issue specific to that map. A fix for it is in the pipeline and should be out soon.

nw, figured i'd post as well, since i'm doing something i hadn't seen in other posts. ie; clearing shader cache nightly

Link to comment
Share on other sites

  • City Council

Thanks, it's was quite frustrating. I ended up scrapping the whole thing and re-implementing it in postprocessing. There's a couple downsides to that but nothing major -- and it works without graphical glitches, so good enough.

  • Like 5
  • Thanks 1
Link to comment
Share on other sites

6 hours ago, Number Six said:

Thanks, it's was quite frustrating. I ended up scrapping the whole thing and re-implementing it in postprocessing. There's a couple downsides to that but nothing major -- and it works without graphical glitches, so good enough.

Thank you for figuring it out, I'd have never guessed it was the gamma setting that's at fault for this. Is it the same cause for the sudden seeming lowering in render distance as well? The distance finer detail on trees, rocks, rooftops and cars load in at seems to have been lowered and requires you to be much closer now before they suddenly pop-in, whereas normally the higher detail would begin loading onto an object and be a bit see-through when you were still a fair distance away from it, and become more 'solid' the closer you got, but I think it would fully load when you were still at a larger distance from it than how close you must be now for the details to suddenly pop-in. It's easier to check by flying back and forth along some trees and seeing their higher-detail bits just pop instantly once you get closer.

Edited by Night
Link to comment
Share on other sites

  • City Council
4 hours ago, Night said:

Is it the same cause for the sudden seeming lowering in render distance as well? The distance finer detail on trees, rocks, rooftops and cars load in at seems to have been lowered and requires you to be much closer now before they suddenly pop-in,

 

Yes, it's not actually causing pop-in, but what's happening is the fog distance calculation is wrong*, so the fog isn't hiding the transition like it normally does. Also if you have SSAO enabled, the difference in the scene fog calculation and the separate fog calculation that SSAO does causes abrupt transitions in brightness that look like pop-in.

 

* (the variable from the vertex program is not consistently getting passed through to the fragment program, thinking we may have hit a limit in the number of uniform variables but it's not showing up on the error console)

  • Thanks 1
Link to comment
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
×
×
  • Create New...