Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does Not render on chrome #38

Open
TeamTallos opened this issue Jul 7, 2018 · 1 comment
Open

Does Not render on chrome #38

TeamTallos opened this issue Jul 7, 2018 · 1 comment

Comments

@TeamTallos
Copy link

WebCraft does not render right on chrome

@escottalexander
Copy link

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants