Hi,
I’m using the SVGLoader and am getting an error:
Uncaught TypeError: THREE.SVGObject is not a constructor
Here’s the code:
`
var svg_manager = new THREE.SVGLoader();
var url = ‘brush.svg’;
function svg_loading_done_callback(doc) {
var obj = new THREE.SVGObject(doc)
scene.add(svgObject);
};
svg_manager.load(url,
svg_loading_done_callback,
function(){console.log("Loading SVG...");},
function(){console.log("Error loading SVG!");
});
`
Am I loading the .svg incorrectly?
/Anton