How can we clear these Unity-Skybox warnings that show up when using a texture in the material?

hi folks - I’m trying to clear warnings in an existing-Unity->Needle conversion project, and am trying to get rid of these warnings which seemingly show up when the Unity Skybox Material is set to a mat with the “Skybox/Panoramic” shader and a a texture.

Copied for searchability, these are:

THREE.WebGLTextures: sRGB encoded textures have to use RGBAFormat and UnsignedByteType.
WebGL: INVALID_OPERATION: readPixels: type HALF_FLOAT but ArrayBufferView not Uint16Array

(with that second one repeated 6 times)

We know we could get around this by clearing the skybox and just using a sphere in every scene, but as we’re going to need to convert many scenes set up with existing skyboxes, we’d prefer to avoid that if possible.

Please let me know if you have any leads we could follow to clear these warnings, or if solving them might already be on the Needle roadmap!

Original Post on Discord

by user 248501710404845568

Hello there – we have an experimental AI bot :robot: that might be able to help you with your question. Would you like to try this out?

I believe that this warning will be fixed once we update to the latest threejs version (I had reported it to them quite a while ago). While annoying, it should not have a functional impact on projects at all - am I right to assume you want to get rid of it for „cosmetic“ reasons?

wonderful!! and that’s right, this is just for project cleanliness. Thanks for the fast response!!

by user 248501710404845568

Ok, thanks for confirming! We don’t have a set ETA for when we do the next three.js bump, but we’ve already reached the threshold where it makes sense, so shouldn’t be too far off.

This is the three.js issue if you’re curious