Maya R.

asked • 04/29/19

WebGL JavaScript 3D Object

I am trying to render a 3D object using WebGL and Javascript and Right now I am getting an error.

"test.js:123 Uncaught DOMException: Failed to execute 'texImage2D' on 'WebGL2RenderingContext': The image element contains cross-origin data, and may not be loaded.

at initStaticVertexBufferObj"


I've tried to use a fix that I found online which said to add an a tag to the "img" in the html file.

1 Expert Answer

By:

Nickolas N. answered • 01/02/22

Tutor
New to Wyzant

Artsy Web Developer

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.