HI all.
I’m on trouble at 3D-model import.
at firtst , I try put on “Cesium_Air.gltf” mode. it is a include cesium sample files.
this is works fine.
at next.
down load sketchup file(.skp) from 3dwarehouse.sketchup.com.
and convert it to .dae file using SketchUp Application.
.dae file can preview Xcode on my mac . it looks right.
then I convert .dae to .gltf using online model converter (https://cesiumjs.org/convertmodel.html)
but I cant add this .gltf file to Cesium as a Entity / Primitive.
i try few files. but results is all same.
how can I fix it?
below is error message.
An error occurred while rendering. Rendering has stopped.
RuntimeError: Failed to load external gltf: /Apps/SampleData/models/CesiumAir/787-8.gltf
Error
at new t (http://localhost/Build/Cesium/Cesium.js:418:6883)
at i (http://localhost/Build/Cesium/Cesium.js:441:2889)
at Object.then (http://localhost/Build/Cesium/Cesium.js:417:3023)
at http://localhost/Build/Cesium/Cesium.js:417:3501
at f (http://localhost/Build/Cesium/Cesium.js:417:4883)
at m (http://localhost/Build/Cesium/Cesium.js:417:3637)
at n (http://localhost/Build/Cesium/Cesium.js:417:3161)
at Object.then (http://localhost/Build/Cesium/Cesium.js:417:3023)
at http://localhost/Build/Cesium/Cesium.js:417:3511
at f (http://localhost/Build/Cesium/Cesium.js:417:4883)
Hi Katsu,
It looks like it can’t find the gltf file. Are you sure it is in the right location?
When you use the online model converter, is the model shown on that page after conversion? If so, then it should work fine in Cesium. If not, please share the model if you are able and we can debug it.
Patrick
HI.
I re-check model location. location is right.
please check below files.
2015年4月6日月曜日 8時48分12秒 UTC+9 Patrick Cozzi:
I was able to make this work in the Sandcastle 3D Models showcase by
- Getting the latest Cesium from GitHub, though 1.8 should work too).
- Copying your model to a directory I’ve created for forum questions, /Apps/SampleData/models/Forum.
- Build Cesium and related apps per the published instructions.
- Modified the Sandcastle 3D Models showcase, replacing the CesiumAir.gltf with your model (which is shown below).
var options = [{
text : 'Aircraft',
onselect : function() {
createModel('../../SampleData/models/Forum/Macamor-Air-Boeing-787-8.gltf', 5000.0);
}
}, {
``
Hope that helps.
Scott
thx. Scott.
i have some miss take .and now my code work fine.
thank you for your help!
2015年4月7日火曜日 1時02分49秒 UTC+9 Scott Reynolds: