Thanks Gaby for paying attention to this.
I’ve trying with models on a server like this
This is what i did
var modelMatrix = Cesium.Transforms.eastNorthUpToFixedFrame(Cesium.Cartesian3.fromDegrees(-78.669713,-1.663594, 0.0));
var model = scene.primitives.add(Cesium.Model.fromGltf({
url : ‘http://192.168.1.7:8887/models/Wood_Tower.gltf’,
modelMatrix : modelMatrix,
scale :5.0
}));
var entity = viewer.entities.add({
name : nombre,
position : position,
orientation : orientation,
model : {
//uri : direccion,
uri : ‘http://192.168.1.7:8887/models/CesiumMilkTruck.glb’,
minimumPixelSize : 64,
//maximumScale : 10
},…
And it renders properly as the capture shows…
Indeed, I’m using webpack, I will attached my webpack configuration…
You said that I need to add the proper loaders, I tried to add a gltf and a bin loader but webpack-dev-server brokes fatally… but I think that if the samples models load, the loaders should be properly added, is it?
I added the capture2 with the folders of the library added because I’m using the pre-built option (It was a configuration I found for vue-webpack and cesium wich works)
I thought it was an error on the model but I tried loading it on the autodesk viewer and it look correct
I think that the sample models have some code to allow cesium load them or to recognize them by default , idk.
Any hint to help me with this I will be glad because I have been long time stuck
webpack config.txt (1.89 KB)
scene.glb (73.1 KB)