Broxxar / GlowingObjectOutlines

A technique for Glowing Object Outlines in Unity.
The Unlicense
161 stars 50 forks source link

Rendering Error in Console Log #9

Open AidenKitamura opened 5 years ago

AidenKitamura commented 5 years ago

Hello. Currently, I'm using Unity version 2018.3.3f1 while getting these errors in the log while launching the editor. The Errors below kept appearing:

  1. Socket: unable to join multicast group, error: An invalid argument was supplied.
  2. Unable to join player connection multicast group.
  3. RenderTexture.Create failed: width & height must be larger than 0 UnityEngine.Camera:set_targetTexture() GlowPrePass:OnEnable() (at Assets/Scripts/GlowScript/GlowPrePass.cs:20)
  4. RenderTexture.Create failed: width & height must be larger than 0
  5. RenderTexture.Create failed: width & height must be larger than 0 UnityEngine.Graphics:SetRenderTarget(RenderTexture) GlowPrePass:OnRenderImage(RenderTexture, RenderTexture) (at Assets/Scripts/GlowScript/GlowPrePass.cs:34)
  6. ArgumentException: Graphics.SetRenderTarget called with bad depth RenderBuffer. UnityEngine.Graphics.Internal_SetRTSimple (UnityEngine.RenderBuffer color, UnityEngine.RenderBuffer depth, System.Int32 mip, UnityEngine.CubemapFace face, System.Int32 depthSlice) <0x49f19600 + 0x00072> in :0 UnityEngine.Graphics.SetRenderTargetImpl (UnityEngine.RenderBuffer colorBuffer, UnityEngine.RenderBuffer depthBuffer, System.Int32 mipLevel, UnityEngine.CubemapFace face, System.Int32 depthSlice) (at C:/buildslave/unity/build/Runtime/Export/Graphics.cs:191) UnityEngine.Graphics.SetRenderTargetImpl (UnityEngine.RenderTexture rt, System.Int32 mipLevel, UnityEngine.CubemapFace face, System.Int32 depthSlice) (at C:/buildslave/unity/build/Runtime/Export/Graphics.cs:196) UnityEngine.Graphics.SetRenderTarget (UnityEngine.RenderTexture rt, System.Int32 mipLevel, UnityEngine.CubemapFace face, System.Int32 depthSlice) (at C:/buildslave/unity/build/Runtime/Export/Graphics.cs:208) UnityEngine.Graphics.SetRenderTarget (UnityEngine.RenderTexture rt) (at C:/buildslave/unity/build/Runtime/Export/Graphics_BindingsOverloads.cs:365) GlowPrePass.OnRenderImage (UnityEngine.RenderTexture src, UnityEngine.RenderTexture dst) (at Assets/Scripts/GlowScript/GlowPrePass.cs:34)
  7. RenderTexture.Create failed: width & height must be larger than 0 UnityEngine.Graphics:Blit(Texture, RenderTexture) GlowPrePass:OnRenderImage(RenderTexture, RenderTexture) (at Assets/Scripts/GlowScript/GlowPrePass.cs:32)
  8. RenderTexture.Create failed: width & height must be larger than 0 UnityEngine.Graphics:SetRenderTarget(RenderTexture) GlowPrePass:OnRenderImage(RenderTexture, RenderTexture) (at Assets/Scripts/GlowScript/GlowPrePass.cs:34)

If try to play the game in editor, it works fine. Once it is built and run, it simply gives me a black screen. Any ideas?