Closed kaanTosunoglu closed 3 months ago
This is indeed a bug in 1.6.0, which has been fixed on master (https://github.com/aframevr/aframe/pull/5532).
You can use a master build by using the link found at https://github.com/aframevr/aframe/tree/master/dist. If that isn't an option, it should be possible to workaround the issue by manually creating a THREE.CubeTexture
and using it as value for envMap
.
Hi,
I’m encountering an issue after updating my A-Frame version from 1.5.0 to 1.6.0, specifically related to the envMap attribute. In my project, I use the a-cubemap component, and I dynamically manage the envMap based on data received from the server.
When I try to apply the envMap to an asset using the following line:
el.setAttribute('material', 'envMap: #worldenvmap');
I receive the following error:
Upon inspecting the code at line 16447 in three.module.js, I noticed that the issue seems to be related to this line:
this._setSize( texture.image.length === 0 ? 16 : ( texture.image[ 0 ].width || texture.image[ 0 ].image.width ) );
However, in my case, the correct path to the width property appears to be texture.image[0].data.width.
This issue can be reproduced using the following link: https://husky-marvelous-challenge.glitch.me/
code from glitch (this is not actual project code)
Please let me know if i am missing something with A-frame 1.6.0.
Thanks;