How to improve the effectiveness of the model on display ?

Hello guys ,

How to improve the effectiveness of the model on display ,when I have 100 gltf files?

loading these models , can use the distance between the model and the camera as shown ?

As part of the red font :

var entity = viewer.entities.add({

name : url,

position : position,

orientation : orientation,

model : {

uri : url,

allowPicking : true,

distance : 300 ,

minimumPixelSize : 0

}

});

There’s currently no out of the box for displaying models or other entities based on distance, but it is on the roadmap. You could probably creating something workable specifically for models by using the the camera position and toggling the entity.show property based on the result.

Also, check out the work-in-progress in the gfx branch: https://github.com/AnalyticalGraphicsInc/cesium/compare/gfx#diff-b63bb2797bd8e2bc3fc273f1d6b1bca0R29

Basically, you’ll be able to assign a DistanceDisplayCondition (or something similar) to each model.

Patrick