Search Issue Tracker

Fixed in 2018.3

Votes

0

Found in

2018.1.0a1

2018.1.0f2

Issue ID

1042465

Regression

Yes

Sparse Textures do not work when using Unity 2018.1 and up

Graphics - General

-

Steps to reproduce:
1. Open QA-supplied project ("SparseTextureBug.zip")
2. Inspect the Console window and Scene Window

Expected: No errors are thrown and the right texture is displayed
Actual: Errors are thrown and the texture is not displayed

Reproduced in: 2018.1.0a1, 2018.1.4f1, 2018.2.0b7
Not reproduced in: 2017.1.4f1, 2017.2.3p1, 2017.3.2f1, 2017.4.5f1

System used: Windows 10.1, DirectX11, Radeon RX 460

Notes: The project is taken from https://docs.unity3d.com/Manual/SparseTextures.html and modified to remove Component errors (not related)

Errors:
SparseTexture format is not supported on this platform
UnityEngine.SparseTexture:.ctor(Int32, Int32, TextureFormat, Int32)
MapTexture:InitializeThings() (at Assets/MapTexture.cs:101)
MapTexture:LateUpdate() (at Assets/MapTexture.cs:121)

UnityException: Failed to create sparse texture because of invalid parameters.
UnityEngine.SparseTexture..ctor (Int32 width, Int32 height, TextureFormat format, Int32 mipCount) (at C:/buildslave/unity/build/artifacts/generated/bindings_old/common/Core/TextureBindings.gen.cs:510)
MapTexture.InitializeThings () (at Assets/MapTexture.cs:101)
MapTexture.LateUpdate () (at Assets/MapTexture.cs:121)

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.