editor icon indicating copy to clipboard operation
editor copied to clipboard

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

Open yaustar opened this issue 1 year ago • 3 comments

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

yaustar avatar May 29 '24 11:05 yaustar

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).

willeastcott avatar May 29 '24 12:05 willeastcott

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.

albertvanveen avatar May 29 '24 16:05 albertvanveen

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.

Maksims avatar May 30 '24 14:05 Maksims