Hello, I’m new using Cesium, so far the platform looks great.
My issue is that i need to render a 3D model which is a .obj and has .mtl and .jpg for textures, i tried with the sandcastle example just to place my object by doing this:
{
text: "Monument",
onselect: function () {
createModel(
"../../SampleData/models/Monument/monument.obj",
0
);
},
},
but got an error:
RuntimeError: Failed to load model: ../../SampleData/models/Monument/monument.obj
undefined
Error
at new RuntimeError (http://localhost:8080/Source/Core/RuntimeError.js:38:11)
at http://localhost:8080/Source/Scene/ModelUtility.js:166:32
at Promise.then (http://localhost:8080/Source/ThirdParty/when.js:217:33)
at http://localhost:8080/Source/ThirdParty/when.js:297:13
at processQueue (http://localhost:8080/Source/ThirdParty/when.js:647:4)
at _resolve (http://localhost:8080/Source/ThirdParty/when.js:333:4)
at promiseReject (http://localhost:8080/Source/ThirdParty/when.js:366:11)
at Promise.then (http://localhost:8080/Source/ThirdParty/when.js:217:33)
at http://localhost:8080/Source/ThirdParty/when.js:298:7
at processQueue (http://localhost:8080/Source/ThirdParty/when.js:647:4)
Is there any way to load my assets?