Model
        
       
       更加解耦的新架构。这门课仍然是实验性的。
       不要直接调用此函数,而是使用 `from` 函数从源数据类型创建模型。
| Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 
           options
           | Object | 具有以下属性的对象: 
 | 
Experimental
This feature is using part of the 3D Tiles spec that is not final and is subject to change without Cesium's standard deprecation policy.
Members
readonly activeAnimations : ModelExperimentalAnimationCollection
        ModelExperimental#color
       
      
      为半透明或
      
       
        ModelExperimental#silhouetteSize
       
      
      大于 0.0,则不剔除背面。
     - 
      
       Default Value:
      
      
       true
      
     readonly boundingSphere : BoundingSphere
        ModelExperimental#minimumPixelSize
       
      
      。
     - 
      
       Default Value:
      
      
       true
      
     clippingPlanes : ClippingPlaneCollection
        ClippingPlaneCollection
       
      
      用于选择性地禁用渲染模型。
     
       colorBlendMode
      
      为
      
       MIX
      
      时用于确定颜色强度的值。值 0.0 会导致模型的渲染颜色,而值 1.0 会导致纯色,介于两者之间的任何值都会导致两者混合。
     - 
      
       Default Value:
      
      
       0.5
      
     colorBlendMode : Cesium3DTileColorBlendMode | ColorBlendMode
- 
      
       Default Value:
      
      
       ColorBlendMode.HIGHLIGHT
      
     readonly credit : Credit
customShader : CustomShader
        Cesium3DTileStyle
       
      
      的自定义着色器可能会导致未定义的行为。
     为模型中的每个绘制命令绘制边界球体。
- 
      
       Default Value:
      
      
       false
      
     在线框中绘制模型。
- 
      
       Default Value:
      
      
       false
      
     distanceDisplayCondition : DistanceDisplayCondition
- 
      
       Default Value:
      
      
       undefined
      
     对于 EXT_mesh_features,这是特征 ID 的标签属性,如果未指定,则为'featureId_N'(其中 N 是 featureIds 数组中的索引)。 EXT_feature_metadata 没有标签字段,因此此类特征 ID 集始终标记为'featureId_N',其中 N 是所有特征 ID 列表中的索引,其中特征 ID 属性列在特征 ID 纹理之前。
如果 featureIdLabel 设置为整数 N,它会自动转换为字符串'featureId_N'。如果每个基元和每个实例的功能 ID 都存在,则实例功能 ID 优先。
Experimental
This feature is using part of the 3D Tiles spec that is not final and is subject to change without Cesium's standard deprecation policy.
heightReference : HeightReference
- 
      
       Default Value:
      
      
       {HeightReference.NONE}
      
     - 
      
       Default Value:
      
      
       undefined
      
      See:
imageBasedLighting : ImageBasedLighting
如果 instanceFeatureIdLabel 设置为整数 N,它会自动转换为字符串'instanceFeatureId_N'。如果每个基元和每个实例的功能 ID 都存在,则实例功能 ID 优先。
Experimental
This feature is using part of the 3D Tiles spec that is not final and is subject to change without Cesium's standard deprecation policy.
       undefined
      
      时,将使用场景的浅色。
      
       通过设置
       
        model.imageBasedLighting.imageBasedLightingFactor = new Cartesian2(0.0, 0.0)
       
       禁用其他光源将使模型更暗。在这里,增加光源的强度将使模型更亮。
      
- 
      
       Default Value:
      
      
       undefined
      
     
        Model#minimumPixelSize
       
      
      提供上限,确保模型永远不会是不合理的比例。
     
       0.0
      
      时,不强制执行最小大小。
     - 
      
       Default Value:
      
      
       0.0
      
     pointCloudShading : PointCloudShading
        Cesium3DTileset
       
      
      继承的。
     
       true
      
      时,此模型已准备好渲染,即下载了外部二进制文件、图像和着色器文件并创建了 WebGL 资源。在解决
      
       
        ModelExperimental#readyPromise
       
      
      之前将其设置为
      
       true
      
      。
     - 
      
       Default Value:
      
      
       false
      
     readonly readyPromise : Promise.< ModelExperimental >
这个承诺在模型渲染的第一帧之前的帧结束时解决。
- 
      
       Default Value:
      
      
       1.0
      
     - 
      
       Default Value:
      
      
       ShadowMode.ENABLED
      
     - 
      
       Default Value:
      
      
       true
      
     - 
      
       Default Value:
      
      
       false
      
     silhouetteColor : Color
- 
      
       Default Value:
      
      
       Color.RED
      
     - 
      
       Default Value:
      
      
       0.0
      
     splitDirection : SplitDirection
        SplitDirection
       
      
      。
     - 
      
       Default Value:
      
      
       
        
         SplitDirection.NONE
        
       
      
     
        CustomShader
       
      
      ,则无法应用。
     Methods
static Cesium.ModelExperimental.fromGltf (options) → ModelExperimental
       从 glTF 资产创建模型。当模型准备好渲染时,即下载外部二进制文件、图像和着色器文件并创建 WebGL 资源时,
       
        
         Model#readyPromise
        
       
       被解析。
      
该模型可以是具有 .gltf 扩展名的传统 glTF 资产或使用 .glb 扩展名的二进制 glTF。
| Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 
          options
          | Object | 具有以下属性的对象: 
 | 
Returns:
Throws:
- 
 
  DeveloperError : 模型未加载。使用 ModelExperimental.readyPromise 或等待 ModelExperimental.ready 为真。
一旦一个对象被销毁,它就不应该被使用;调用
       isDestroyed
      
      以外的任何函数都将导致
      
       
        DeveloperError
       
      
      异常。因此,如示例中所做的那样,将返回值 (
      
       undefined
      
      ) 分配给对象。
     Throws:
- 
 
  DeveloperError : 该对象被销毁,即调用了destroy()。
Example:
model = model && model.destroy();See:
Returns:
    true
   
   ;否则,
   
    false
   
   。
  | Name | Type | Description | 
|---|---|---|
| 
          articulationStageKey
          | String | 关节名称、空格和舞台名称。 | 
| 
          value
          | Number | 关节的这个阶段的数值。 | 
Throws:
- 
 
  DeveloperError : 模型未加载。使用 ModelExperimental.readyPromise 或等待 ModelExperimental.ready 为真。
Example:
// Sets the value of the stage named "MoveX" belonging to the articulation named "SampleArticulation"
model.setArticulationStage("SampleArticulation MoveX", 50.0);See:
Throws:
- 
 
  RuntimeError : 无法加载外部参考。
