gltf

Cesium czml change orientation of 3d model (gltf/glb) along with position in time

空扰寡人 提交于 2019-12-23 13:01:20
问题 I have implemented a 3d model (cesium air) aircraft to move along a path. Its position is being changed based on time and the detailed data is available in the czml file under position attribute. However, I am not able to change the orientation of the aircraft along with path. The aircraft flies through the path but its heading , pitch and roll are constant. It does not pitch up with increase in height etc. How to implement the attitude changes using orientation attribute in the czml file or

(A-Frame) local gltf wont load; Cannot read property 'slice' of undefined

谁都会走 提交于 2019-12-23 07:52:08
问题 I took the code from the A-Frame School in which a gltf model is loaded. Then I loaded the Sample Models from Khronos, this box and tried to load it, but I get this error (several times) 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> I can load .obj models and tried the several versions of the model, but get always the error. The sample code does work locally,

Why is blender rigged animation distorted when exported as GLTF?

穿精又带淫゛_ 提交于 2019-12-22 09:53:26
问题 I created an animation in Blender with armature rigging. When I test it in Blender by pressing Alt-A, it works perfectly fine. However, when I export it as a .glb using the KhronosGroup GLTF exporter, the resulting animation is distorted (e.g., limbs are disconnected and moving in a weird way). Why is this happening (and how can I fix it)? For the past two days, I have been trying solutions from similar questions (such as applying location/rotation/scale with Ctrl-A, or deleting the Armature

Aframe angular 7 unable to load gltf model

白昼怎懂夜的黑 提交于 2019-12-16 18:06:10
问题 I am trying to display a gltf-model in Aframe using Angular 7. `<a-scene embedded="" cursor="rayOrigin: mouse"> <a-assets> <a-asset-item id="bedroom" src="../../assets/models/homedesign/scene.gltf"></a-asset-item> </a-assets> <a-entity id="camera" camera="" position="0 0 0" look-controls wasd-controls> </a-entity> <a-entity id="room" gltf-model="#bedroom" position="-14 -30 -125" rotation= "0 160 0" material-map="map: map"> </a-entity> </a-scene> ` But the model is not displayed and I see the

After converting my FBX file to a .gltf, the model is incredibly small, why?

折月煮酒 提交于 2019-12-13 16:08:19
问题 QUESTION: After converting my FBX file to a .gltf, the model is incredibly small, why ? I tried scaling the model with frontObject.scale.set( 1000, 1000, 1000 ); but I get the following error: TypeError: Cannot read property 'set' of undefined Furthermore, in function ( xhr ) { progressBar.style.display = "block"; progressBar.style.width = ( xhr.loaded / xhr.total * 100 ) + '%'; loadingText.innerHTML = 'Loading... '+xhr.loaded+"/"+xhr.total; // For some reason, xhr.total = 0, so I can't use

Archilogic gltf model can't be loaded in a-frame

夙愿已清 提交于 2019-12-12 10:41:34
问题 I wrote a demo scene on glitch to test my exported gltf model in a-frame, but I am getting an error in the console: My code <!DOCTYPE html> <html> <head> <title>Basic Scene - A-Frame</title> <meta name="description" content="Basic Scene - A-Frame"> <script src="https://aframe.io/releases/0.6.0/aframe.min.js"></script> </head> <body> <a-scene> <a-assets> <a-asset-item id="gltfDemo" src="https://cdn.glitch.com/a3c2afff-dcc6-4918-bb73-5716b35f39b0%2Fexport.gltf?1499844855169"></a-asset-item> <a

How to export morph changed meshes from threejs application?

[亡魂溺海] 提交于 2019-12-11 19:56:02
问题 I'm trying to customize a mesh and then export it by using gltfExporter from Threejs, however it still exports with all morph/shape keys attached, I would like to remove them in the final export mesh. Cloning the scene / mesh didn't work. function exportModel() { var exporter = new THREE.GLTFExporter(); if (!gltfExportEnabled) gltfExporterConfig.binary = false; var finalRenderModel = mainScene.children[2]; // Remove Morph Targets if (!!removeExportMorphs) { // finalRenderModel.children[0]

Getting an {“isTrusted”:true} error when using GLTFLoader

烂漫一生 提交于 2019-12-11 08:59:57
问题 QUESTION: Everything was working fine: I converted my FBX files to GLTF inside my /GLTF/ subfolder. Sadly, some geometry was missing from some of the converted files, so I tried to convert again my FBX files, this time to /TEST/. Suddenly, the models don't load and from my console.log statement: console.log( 'An error happened: '+JSON.stringify(error) ); I get this strange useless error: An error happened: {"isTrusted":true} So I try to convert my FBX files to .glb instead, this time to

How to load a gltf model to Three.js?

落爺英雄遲暮 提交于 2019-12-08 18:48:36
问题 I decided to try out gltf format for rendering models in Three.js and I'm using this converter (http://cesiumjs.org/convertmodel.html) to convert the model from Collada to GlTF. It spits out a *.gltf file, however in the examples in Three.js they pass a *.json file. How can I load the *.gltf file or how can I get the proper set of files to load? Thanks 回答1: You can use THREE.glTFLoader which can be found in the examples/js/loaders directory. For a demo, see http://threejs.org/examples/webgl

Is there a way to convert gltf to dae?

我们两清 提交于 2019-12-07 05:40:54
问题 I can make gltf files with the collada to gltf converter. But is there a way to reverse this? 回答1: UPDATE - October 2019 - Blender 2.80 has shipped with full glTF 2.0 import/export capability. It also has COLLADA import/export capability, so can be used to convert one to the other. UPDATE - November 2018 rewrote answer for glTF version 2.0, which has almost completely replaced 1.0 in the time since this question was originally asked. glTF 2.0 can be processed by a variety of tools, many of