Getting major issue in loading models from remote json - model is loading but not the texture

The version you are looking for is 1.6.2 (as the change was introduced in 1.6.3) and they can be found here:

On a side note, Dave has made a fix for this issue but has failed some tests. Hopefully, a new release will be soon to fix the issue: Fix json material loading by daredevildave · Pull Request #1308 · playcanvas/engine · GitHub

Thanks @yaustar but I am cannot find the min.js file in these projects to replace in my project. All are showing 1.6.4 stable version in readme files.

My bad, I forgot that the releases on GitHub do not have the complied version.

You can get the built versions from https://code.playcanvas.com/playcanvas-1.6.2.min.js

Just change the version number to the one you want in the URL.

I tried replacing all the versions from 1.4.4 to 1.6.3 but getting the same issue in every version. Still cannot see the texture of assets.

It worked for me using the Console Sandbox project. Are you getting any errors in the browser console? Have you tried deleting the cache to ensure that the browser is not caching an old engine file?

Yes I am getting this error.

That’s a cross origin error. This thread talks about the fix: ☑ Cross-origin error when self-hosting

I just put those lines of code in the first thing I can hook in. I think you can even do this in the pre loader script.

In the __loader__.js script, I did:

pc.script.createLoadingScreen(function (app) {
	var handler = app.loader.getHandler("texture");
	handler.crossOrigin = "anonymous";


    var showSplash = function () {
// Rest of the script

This is working again in 1.6.6

@dave I am seeing something strange. Few of my items have got the texture back but not all. Few are still having only shaders and no texture. Any idea?

Are you getting any errors in the console? Would you be able to provide a sample project/model link that showcases the error?

It’s resolved. The issue was again for CORS, I can see textures for all the items now. Thanks a lot @yaustar and @dave.