WebCraft icon indicating copy to clipboard operation
WebCraft copied to clipboard

Does Not render on chrome

Open TeamTallos opened this issue 7 years ago • 1 comments

WebCraft does not render right on chrome

TeamTallos avatar Jul 07 '18 18:07 TeamTallos

@TeamTallos Is this the error you have been getting?

"Uncaught DOMException: Failed to execute 'texImage2D' on 'WebGLRenderingContext': The image element contains cross-origin data, and may not be loaded. at Image.Renderer.terrainTexture.image.onload"

If so, you can fix the problem by using a server with the selected files. For instance, you could install the node package called http-server ( npm install -g http-server ) and then navigate to the WebCraft directory and type http-server -c-1 into your terminal. It will serve up all the files in the directory, click on one of the html files and your rendering issue should be gone.

escottalexander avatar Aug 02 '18 00:08 escottalexander