How to load SVG file into SVGRenderer in three.js
问题 I'm trying to use SVGRenderer in three.js (http://threejs.org/examples/#svg_sandbox). The example shows you how to make an SVG element (a circle) on the fly. I want to import an SVG file that I already have in my computer. How would I do that? The createElementNS command doesn't seem to support importing SVG files? I essentially want my image.svg to be displayed on a three.js scene. 回答1: You can use the THREE.SVGLoader() Library to achieve it : var svgManager = new THREE.LegacySVGLoader();