की संपत्ति 'स्लाइस' नहीं पढ़ सकता है मैंने A-Frame School से कोड लिया जिसमें एक ग्लैटफ़ मॉडल लोड किया गया है। तब मैं Khronos, this box से नमूना मॉडल लोड और इसे लोड करने की कोशिश की, लेकिन मैं(ए-फ़्रेम) स्थानीय gltf भार भार नहीं; अपरिभाषित
GLTFLoader.js:979 Uncaught (in promise) TypeError: Cannot read property 'slice' of undefined
at GLTFLoader.js:979
at i (GLTFLoader.js:570)
at GLTFLoader.js:975
at <anonymous>
मैं मॉडल .obj लोड और मॉडल के कई संस्करण की कोशिश की, लेकिन हमेशा मिल सकता है इस त्रुटि (कई बार) मिलता है त्रुटि।
नमूना कोड स्थानीय रूप से काम करता है, जिसका अर्थ है कि यह मॉडल को सही तरीके से लोड करता है, इसे aframe cdn से प्राप्त करता है।
यहाँ पूरा होने
<!DOCTYPE html>
<html>
<head>
<title>glTF Model</title>
<meta name="description" content="glTF Model">
<script src="https://rawgit.com/aframevr/aframe/b395ea0/dist/aframe-master.min.js"></script>
</head>
<body>
<a-scene>
<a-assets>
<a-asset-item id="boxModel" src="Box.gltf"></a-asset-item>
</a-assets>
<a-gltf-model src="#boxModel"></a-gltf-model>
</a-scene>
</body>
</html>