But when I load this material with the function: app.assets.loadFromUrl(url, 'material', function (err, asset) { ... })
the result is there are no cubemap in the ‘asset.resourse’.
I don’t konw why and I don’t know how to add this cubemap to this material either,please help ,thank you!
I’ll do a demo, which contains the materials I downloaded from the editor, and then send out the address for you to have a look,give me some minutes,thank you
This is a demo,you can see my way of load material
and you can see In the loaded material there is no cubemap in the console,but the material data downloaded from the editor,you can find cubemap,may I send you the demo which contains the materials I downloaded from the editor?
Yes,It is,I can send you the demo,you can take a look.the material was downloaded from Editor,and I have checked it,it truely have all the assets that this material need.
Could you give me your email address,I send the demo to you, the reason you got 404 is because I changed the name which is contain chinese characters,but I forgot to change all.
The JSON that is downloaded from the Editor is not the same as the JSON used by the engine when it is published. I don’t know if this is by design or bug though.
It looks like your best bet is to either use the prefiltered DDS file (if you are using one) or construct the cubemap yourself in code.
I think it is a bug,because I usually don’t change the resource file downloaded from the Editor. last time I changed the name of textures because it containes chinese characters, it is just a debug.
In addition, I’m worried that the problem is that the downloaded resources are not fully decompressed. Therefore, after downloading and decompressing several times, but the cubumap of this material can’t be loaded normally,by the way,if you need,I can send the material resources downloaded from Editor to do tests,sorry for that I can’t give you more information because of disclosure agreement.thank you very much!