我一直在試圖在unboring.net上關於如何將動畫網格從攪拌機導出到threejs的教程。當我使用本教程的作者提供的eva-animated.blend文件時,一切正常。但是,當我嘗試創建自己的網格並將其導出到threejs時,結果的格式不正確,並且骨骼數據似乎未包含在內。攪拌機threejs導出文件沒有骨頭和錯誤的格式
我的檔案:monkey.blend。網址:https://drive.google.com/file/d/0B-4iDXLNwo9_WmtmSXBEWVhBa2s/view輸出格式:
{
data: {
attributes: {
position: {
type: "Float32Array",
array: [...],
itemSize: 3
},
normal: {
type: "Float32Array",
array: [...],
itemSize: 3
},
uv: {
type: "Float32Array",
array: [...],
itemSize: 2
}
},
index: {
type: "Uint16Array",
array: [...],
itemSize: 1
}
},
metadata: {
position: 2898,
version: 3,
uv: 2898,
type: "BufferGeometry",
normal: 2898,
generator: "io_three"
}
}
作家的文件:EVA-animated.blend。網址:https://drive.google.com/file/d/0B-4iDXLNwo9_eXZTWlBkdlp3SzA/view輸出:
{
normals: [...],
metadata: {
normals: 762,
generator: "io_three",
vertices: 738,
version: 3,
uvs: 1,
materials: 1,
bones: 33,
type: "Geometry",
faces: 762
},
skinWeights: [...],
vertices: [...],
bones: [..],
animations: [...],
uvs: [...],
skinIndices: [...],
materials: [...],
name: "BodyGeometry.6",
influencesPerVertex: 2,
faces: [...]
}
猴只是不threejs加載數據,而EVA動畫作品完美。我想知道我的monkey.blend文件出了什麼問題,因爲我試過了所有的東西,而我卻無法得到正確的輸出結果。我的文件有被操控的網,一個簡單的動畫,等等
這個工作。非常感謝! – Pablo