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: 32
Joined: Sun Mar 25, 2018 12:34 am

Dimensions of color surface does not match dimensions of depth surface

Post by numidium3rd » Tue Jun 04, 2019 2:28 am

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

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

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

Post by Interkarma » Tue Jun 04, 2019 2:48 am

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: 32
Joined: Sun Mar 25, 2018 12:34 am

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

Post by numidium3rd » Tue Jun 04, 2019 3:27 am

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: 4863
Joined: Sun Mar 22, 2015 1:51 am

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

Post by Interkarma » Tue Jun 04, 2019 8:02 am

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: 32
Joined: Sun Mar 25, 2018 12:34 am

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

Post by numidium3rd » Thu Jun 06, 2019 2:32 am

Nope, no mods installed.

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

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

Post by TheLacus » Sat Sep 21, 2019 3:03 pm

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
Mod System documentation - Learn how to create mods for Daggerfall Unity.
Modder Discussion - General help and discussion for the mod system.
Github Issues - Submit a bug report for the game, including the mod system.

Post Reply