当前位置:网站首页>Cesium (4): the reason why gltf model is very dark after loading
Cesium (4): the reason why gltf model is very dark after loading
2022-07-07 16:29:00 【Touch】
1. edition
cesium 1.82.1
2. Effect of closing time on model brightness
viewer.scene.light = new Cesium.DirectionalLight({
direction: new Cesium.Cartesian3(0.354925, -0.890918, -0.283358)
})3. see gltf Model file
1、gltf The model file is opened with text , Open and view materials node , Take one of them as an example .
{
"doubleSided" : true,
"name" : "Material #2145370080",
"pbrMetallicRoughness" : {
"baseColorTexture" : {
"index" : 9
},
"metallicFactor" : 0,
"roughnessFactor" : 0.858578622341156
}
},among :
pbrMetallicRoughness: Specified based on metallic-roughness Material properties of the model ( Material properties that are not explicitly assigned will use the default values of the properties );
baseColorFactor: Including red , green , Blue and alpha composition , Constitute the basic color of the material ( The setting here is bright orange ).
metallicFactor: Used to specify the similarity between the reflection of the material and the metal .
roughnessFactor: Used to specify material roughness .
2、 Check materials Whether the material of the node has metallicFactor attribute ,metallicFactor The value of the 0-1 Between , The bigger the value is. , The darker the model .
边栏推荐
猜你喜欢

Statistical learning method -- perceptron

PyTorch 中的乘法:mul()、multiply()、matmul()、mm()、mv()、dot()

"The" "PIP" "entry cannot be recognized as the name of a cmdlet, function, script file, or runnable program."

SysOM 案例解析:消失的内存都去哪了 !| 龙蜥技术
3000 words speak through HTTP cache

Odoo集成Plausible埋码监控平台

Balanced binary tree (AVL)

Logback日志框架第三方jar包 免费获取

Plate - forme de surveillance par étapes zabbix

Performance comparison of tidb for PostgreSQL and yugabytedb on sysbench
随机推荐
A link opens the applet code. After compilation, it is easy to understand
Regular expression string
Prometheus API deletes all data of a specified job
Excessive dependence on subsidies, difficult collection of key customers, and how strong is the potential to reach the dream of "the first share of domestic databases"?
3000 words speak through HTTP cache
[C language] question set of X
95.(cesium篇)cesium动态单体化-3D建筑物(楼栋)
How to determine whether the checkbox in JS is selected
SysOM 案例解析:消失的内存都去哪了 !| 龙蜥技术
Description of vs common shortcut keys
Tidb cannot start after modifying the configuration file
Eye of depth (VII) -- Elementary Transformation of matrix (attachment: explanation of some mathematical models)
TCP framework___ Unity
Record the migration process of a project
平衡二叉树(AVL)
Aerospace Hongtu information won the bid for the database system research and development project of a unit in Urumqi
JS 模块化
47_Opencv中的轮廓查找 cv::findContours()
如何快速检查钢网开口面积比是否符合 IPC7525
Eye of depth (VI) -- inverse of matrix (attachment: some ideas of logistic model)