Dimensions of color surface does not match dimensions of depth surface

Discuss coding questions, pull requests, and implementation details.
Post Reply
User avatar
numidium3rd
Posts: 187
Joined: Sun Mar 25, 2018 12:34 am
Location: United States

Dimensions of color surface does not match dimensions of depth surface

Post by numidium3rd »

Is anyone else getting this error repeatedly in exteriors?
Capture.PNG
Capture.PNG (26.11 KiB) Viewed 9917 times

User avatar
Interkarma
Posts: 7236
Joined: Sun Mar 22, 2015 1:51 am

Re: Dimensions of color surface does not match dimensions of depth surface

Post by Interkarma »

I have not experienced this, but it does sound like the below on Unity issue tracker.

https://issuetracker.unity3d.com/issues ... fault-size

There are two new render targets in latest code - retro 320x200 target and paper doll renderer. Only the former needs a depth buffer however.

Try changing PaperDollRenderer line 128 to the below and let me know if that helps. We actually don't need the depth buffer here if this is the cause.

Code: Select all

target = new RenderTexture((int)(paperDollWidth * scale), (int)(paperDollHeight * scale), 0);
Also try disabling 320x200 mode (if enabled) and let me know if that's it.

User avatar
numidium3rd
Posts: 187
Joined: Sun Mar 25, 2018 12:34 am
Location: United States

Re: Dimensions of color surface does not match dimensions of depth surface

Post by numidium3rd »

I tried replacing the line you mentioned and ran it with non-320x200 without any luck. It only appears for me when I'm outdoors. Here's my Unity version in case anyone's curious: 2018.2.21f1.

User avatar
Interkarma
Posts: 7236
Joined: Sun Mar 22, 2015 1:51 am

Re: Dimensions of color surface does not match dimensions of depth surface

Post by Interkarma »

I'm also using 2018.2.21f1, interesting no problems here. It appears to be a Unity editor issue specifically and shouldn't cause issues with execution. Let's monitor and see what comes out of it, solution wise.

Do you have any other mods enabled at all?

User avatar
numidium3rd
Posts: 187
Joined: Sun Mar 25, 2018 12:34 am
Location: United States

Re: Dimensions of color surface does not match dimensions of depth surface

Post by numidium3rd »

Nope, no mods installed.

User avatar
TheLacus
Posts: 1305
Joined: Wed Sep 14, 2016 6:22 pm

Re: Dimensions of color surface does not match dimensions of depth surface

Post by TheLacus »

It has been reported that a few unrelated mods (Real Grass and Handpainted Models) show graphic artifacts, and a log points to this error message.

Image

Post Reply