Currently, I am in the process of learning WebGL and I am looking to incorporate three.js
into my work.
If you visit this site, you will find a variety of examples that showcase the capabilities of three.js
.
One specific example titled geometry/ text/shapes can be accessed through the mentioned link above. This particular example demonstrates the creation of the text "three.js simple text." You can also download the source code for all the examples provided on the page from the bottom right corner.
After downloading the source code, I attempted to run the same example (webgl_geometry_text_shapes.html
) on my PC but encountered an issue where the text was not displayed. Upon inspecting the page, I received the following error message:
three.js:32090 Failed to load file:///C:/grubera/Web-Programmierung/three.js-master/examples/fonts/helvetiker_regular.typeface.json: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https.
An image depicting this issue is also available for viewing here.
I am seeking assistance in resolving this particular problem. As someone who is brand new to HTML
, JavaScript
, and web programming as a whole, any guidance would be greatly appreciated!
I am hopeful that someone within this community can offer me some valuable advice and help navigate through this challenge. Thank you in advance.