PDA

View Full Version : Help with editing existing code



Maayan
05-08-2012, 08:18 AM
hi,

i tried to take and edit the source code of the next page - http://learningwebgl.com/lessons/lesson10/index.html.

i changed all the relative files paths to an absolute files paths in the site (for exsample, instand of "mud.gif", i wrote "http://learningwebgl.com/lessons/lesson10/mud.gif"), and it's not working! (I see black square...)

what is wrong?

Maayan

williamsma
05-09-2012, 10:55 AM
I'm guessing here, but I think due to the nature of WebGL and security issues, it won't allow the .htm file to come from one directory, and any other files to come from a different directory.

I believe the spec may even allude to this issue.

Maayan
06-12-2012, 04:58 PM
Update - it was an IIS problem. now it's ok.
thanks!

firemastrr
07-18-2012, 06:27 PM
What exactly did you do? I have the same problem, all I can get is a black square when I run the code from my computer.