樓主,請(qǐng)教下,我也是和你一樣的引用
import * as THREE from 'three';
import { STLLoader } from 'three/examples/jsm/loaders/STLLoader'
import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls'
但是會(huì)有警告
"export 'STLLoader' (imported as 'THREE') was not found in 'three'
關(guān)于Vue中使用three.js加載模型問題后續(xù)就可以正常按照three.js加載模型語法進(jìn)行編寫了(因?yàn)槭褂玫氖荲ue,所以data中定義省略) 在寫完相機(jī)和場景之后,就可以進(jìn)行進(jìn)行模型的加載了,代碼如下: 在引用時(shí)...