Closed wei292224644 closed 1 year ago
Hi @wei292224644,
Thanks!
This could be related to using a cubemap faces for skydome. When the project starts, a cubemap is created from these, and then internally in the engine, the cubemap is converted to image based lighting probe in the envAtlas format. The problem we currently have is that when a device is lost, the engine does not re-generate this IBL probe and it stays black.
If this is the case, then @slimbuck plans to work on a new workflow, that is available in the engine already, but needs to be exposed in the Editor. Instead of using cubemap, the IBL in png format is created offline, and used directly. As this does not involve any render targets, it does not have any problem with lost device.
This is easy to test / use with the engine only example. In the Editor, this can be done by using a script, instead of specifying cubemap in the settings as skydome:
this.app.scene.envAtlas = asset.helipad.resource;
Loading of the asset has been left out from this example.
I'm closing this. Please reopen if this does not solve your issue.
When using playcanvas as the webgl rendering engine of the WeChat applet, the effects of lighting and skybox can be displayed normally in the emulator. However, when debugging with a real device, the lighting and skybox cannot be displayed normally. Model is black.
playcanvas version :1.58.1 wechat version: 8.0.29 phone: iphone 12 pro phone version : ios16
demo path:https://github.com/wei292224644/playcanvas-wechat-simple