omar
December 19, 2018, 2:54pm
1
Hey Ikhlass!
Can you describe a bit more what you’re trying to do and what code you’ve tried so far? If you just want to display 3D models in Cesium, check out this example:
Notice how it specifies a URL to where your glTF or glb is hosted, so that’s all you’d need to do.
i try to write a code in phpstorm that take a gltf file then display a it’s 3D, so that i downloaded the library …
which url you meant?
في الأربعاء، 19 ديسمبر 2018 في 4:54 م تمت كتابة ما يلي بواسطة Omar Shehata <omar.sameh.shehata@gmail.com>:
and then i’ll take a parts of this 3d and Shade it according to what it is !
as example if put a mouse on window in it ,it will be shaded .
في الأربعاء، 19 ديسمبر 2018 في 5:32 م تمت كتابة ما يلي بواسطة Ikhlass Ramadan <ikhlassramadan@gmail.com>:
omar
December 19, 2018, 3:52pm
4
Check out the link I posted in my earlier link. You should see this around line 33:
createModel(’…/…/…/…/Apps/SampleData/models/CesiumAir/Cesium_Air.glb’, 5000.0);
``
Which calls a function to load a model from that URL.
i put v.gltf in the path show in code , but it still show me the default result …ang give this note on gltf "Typo: In word ‘gltf’
Inspection info: Spellchecker inspection helps locate typos and misspelling in your code, comments and literals, and fix them in one click."
في الأربعاء، 19 ديسمبر 2018 في 6:26 م تمت كتابة ما يلي بواسطة Ikhlass Ramadan <ikhlassramadan@gmail.com>:
omar
December 20, 2018, 1:53pm
6
A good way to debug this is to check the browser console. If you’re using Chrome, here’s a good resource on using it:
Please check if there are any errors in the developer console.
Other than that, please make sure you check out the setup steps in this tutorial:
Cesium is geospatial. Use Cesium ion's simple workflow to create 3D maps of your geospatial data for visualization, analysis, and sharing. For developers, use the open-source CesiumJS library to create custom 3D mapping apps.
Which will give you an idea of how to set up a basic app and how to run it.