I'm attempting to use THREE.JSONLoader to load a JSON file that contains coordinates, not a JSON model.
Here's what I'm aiming to achieve:
var loader = new THREE.JSONLoader();
loader.load("coordinates.json", function(result) { console.log(result) })
The "coordinates.json"
file will just have a JSON object structured like this:
[{"x":0, "y": 1, "z":1}, {"x":0, "y": 1, "z":1}, ...]
Is there a way for me to load JSON in this manner in Three.js? Thanks!!