Material Rendering Issue - Last editor version

Hi All,

we’re experiencing a problem with how a material is rendering

Latest version 1.76 - works

Any engine release prior, we’re seeing this instead

Also, here’s a project link: PlayCanvas | HTML5 Game Engine

Thanks for your help

Hello @Nesti I think this is the same issue, see if this:New issue with Black material in your scene - #55 by mvaligursky helps.

Hi @Codeknight999 thanks for your answer

I’ve read the link

  • the ambient AO color of the material is already white
  • maybe i’m just tired, but i don’t see the usual ‘tonemapping’ options under the skybox settings :sweat_smile:

@KPal - the gamma / tonemapping should not be missing in the Editor, a new issue I think.

@Nesti - this could be related to what you’re seeing: New materials become Phong shaded in old engines · Issue #1239 · playcanvas/editor · GitHub

1 Like

Fixing now

Hi apologies those options have now been restored :slight_smile:

2 Likes

They’re back, thanks!

1 Like

@mvaligursky i guess it is

Forcing a material shading update makes it render correctly

Guess we need to update to PC > 1.75 for new editor builds

upgrading if possible is definitely the best way to fix the issues, hopefully that’s not too much trouble?

Upgrading is possible but might be not straightforward, as we deploy editor builds directly to sites where an older version of the PC engine is used

We’ll probably do something like this on asset load to patch it from a script

asset.ready(function (asset) {
  asset.resource.shadingModel = pc.SPECULAR_BLINN;
  asset.resource.update();
})
2 Likes