playcanvas / editor

Issue tracker for the PlayCanvas Editor
https://playcanvas.com/
151 stars 28 forks source link

Material from old project is not rendering in preview (transparent?) #1161

Open yaustar opened 1 month ago

yaustar commented 1 month ago

https://playcanvas.com/project/1224024/overview/invisible-material

Look for the player material. I can't see any immediate issues with the editor settings

image
willeastcott commented 1 month ago

That material has blend mode set to 'None'. But also has opacity set to 0.569 and alpha test set to 1. But the actual values for opacity and alpha test cannot be seen until you switch the blend mode to 'Alpha' and set an opacity map:

image

It looks like alpha test is active even when blending is disabled which seems a little odd. This might need @mvaligursky to comment (he's off this week though - I'll assign this to him in the meantime).

albertvanveen commented 1 month ago

To give some background information; The material becomes invisible out of nowhere in a project of mine. So first it's visible and after some time it's invisible. I have replaced the material twice now. As far as I can remember it's just a default material with a diffuse color.

Maksims commented 1 month ago

It looks like alpha test is active even when blending is disabled which seems a little odd. This might need @mvaligursky to comment (he's off this week though - I'll assign this to him in the meantime).

Alpha test should work even with blend None. Editor should show alpha test slider regardless of blend selected.