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

3
  • Your images might be rendering fine -- you may just not be able to see them because you don't have any lighting. Sep 10, 2013 at 9:34
  • 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
    Sep 10, 2013 at 13:39
  • 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
    Sep 13, 2013 at 12:27

1 Answer 1

0

I can see "img/floor.png" have size 400x400... Use POT (Power Of Two) textures. (32x32, 64x64, 128x128, ...)

Check catalogs permissions.

1
  • Thanks for the tip, but didn't make a difference
    – lloydimus
    Sep 10, 2013 at 7:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.