Currently, I am delving into the world of ThreeCSG.js, a JavaScript Constructive Solid Geometry front-end for Three.js. To kickstart my learning journey, I decided to replicate a basic example that I stumbled upon online. I attempted to save a local copy of an impressive little demonstration of Constructive Solid Geometry in JavaScript created by Chandler Prall using ThreeCSG.js from this website:
However, upon saving a local version of the page (via Chrome's Save as webpage function), I quickly discovered that the checkerboard texture file was missing. An error message popped up in the JavaScript console:
Failed to load resource: net::ERR_FILE_NOT_FOUND
The error included the full path to the absent jpg file. After manually downloading the image and placing it where Chrome expected to find it, a new error emerged:
The cross-origin image at file:///C:/tmp/images/checkerboard.jpg may not be loaded.
I am currently using Chrome 43.0.2357.134 on Windows 7 64-bit. Similar issues arose while using Internet Explorer. In an attempt to resolve the problem, I upgraded to the latest version of three.min.js but encountered syntax errors. It seems that the example utilizes an outdated version of threecsg.js, causing compatibility issues with the newer API.
Could someone please guide me on what steps I might be overlooking?