Origen cruzado - Texturas negras con imágenes de dominio propio
Frecuentes
Visto 91 veces
0
I've read quite a few 'fixes' and tricks for the cross-origin problem but can't seem to fix it for myself. I have no errors, the images are on the same domein as the webgl test but the textures are black and when I keep spamming refresh I can see the Cross-origin error.
Anyone any idea if Im actually doing something wrong? www.mariusposthumus.nl/webgl
1 Respuestas
No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas javascript html three.js or haz tu propia pregunta.
Your images might be rendering fine -- you may just not be able to see them because you don't have any lighting. - IceCreamYou
This thought had crossed my mind, but I was following a tutorial and there are no lights used in the tutorial. Still I might try to figure out how to do it and see if that helps. - lloydimus
apparently I had to add a requestAnimationFrame for the render function to constantly update. Then it started working. Thanks for all the suggestions though - lloydimus