Search Issue Tracker
Fixed
Fixed in 6000.0.0b11
Votes
0
Found in
2023.3.0a17
6000.0.0b11
Issue ID
UUM-65306
Regression
No
SpeedTree 9 - Preview is pink under very specific circumstances
* Sometimes, the Mesh preview and the asset icon becomes pink (c.f {*}MeshPreviewAndIconPink.png{*}).
So good and bad news: this problem is not only for *{{SpeedTree}}* assets. I have been able to reproduce it with a classic *{{FBX}}* (c.f {*}BugModelImporter.gif{*}).
The issue is starting from *2023.3.0a7* for the SpeedTree9 assets (since we developed and landed this importer recently), but for the FBX it's probably a really old bug.
The {{preview system}} seems pretty complex. Basically, if I understood it correctly, there's 2 paths:
-- Sometimes your asset is being render in *{{realtime}}* (so you can directly rotate the asset using the left-click of the mouse). Like this: (c.f {*}RealtimePreview.gif{*}).
-- Sometimes your asset is a *{{cached texture}}* (so you cannot rotate it like the previous one, you need to click first on the texture, so it becomes a {{realtime}} scene, and now you can rotate it in realtime). Like this: (c.f {*}CachedPreview.gif{*}).
Not sure what determines the system being used. Though, the icon of the asset is always using the second system (a {{{}cached texture{}}}). And as you can see in my first GIF, the *{{icon}}* of the FBX asset becomes pink after these steps:
-- 1) Extract Materials
-- 2) Delete Materials
-- 3) Reset Asset
-- 4) Extract Materials
Only the *{{icon}}* is pink and not the {*}{{Mesh Preview}}{*}, since it is using the first system (realtime rendering). Though, for assets using the cached texture system, it becomes pink too (it looks like the icon and the preview texture might use the same snapshot? Might make sense since it's very low-res...)
Anyway, I've been able to reproduce the issue for *FBX* and *SpeedTree* assets, on all {*}{{RenderPipeline}}{*}. I attached both asset (realtime FBX & cached ST9 asset) to this ticket in *AssetsPinkPreview.zip*
It seems a problem in the *texture generation* system itself. As far as I dug, it doesn't regenerate a snapshot after re-extracting the materials the second time ({_}step 4{_} in my previous comment), so it's reusing the previous snapshot generated (right before clicking on Reset, so the pink one).
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Inconsistent behaviour when interacting with different dropdown types with pointer events on parent Visual Element
- Hidden GameObjects won't re-enable when they have call "DontDestroyOnLoad" function
- Overlay Canvas are rendered on each split-screen camera when HDR is enabled
- [Android] The Player loses focus when using UnityEngine.Handheld.StartActivityIndicator() with Facebook SDK
- Build fails with "Building Library/Bee/artifacts/MacStandalonePlayerBuildProgram/gahcy/hj9mx3z/951.0 failed with output:..." errors when Scripting Backend is set to IL2CPP
Add comment