当前位置:网站首页>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 .
边栏推荐
猜你喜欢
Enterprise log analysis system elk
pycharm 终端部启用虚拟环境
TiDB For PostgreSQL和YugabyteDB在Sysbench上的性能对比
PyTorch 中的乘法:mul()、multiply()、matmul()、mm()、mv()、dot()
Unity drawing plug-in = = [support the update of the original atlas]
Talk about the cloud deployment of local projects created by SAP IRPA studio
Vs tool word highlight with margin
Good news! Kelan sundb database and Hongshu technology privacy data protection management software complete compatibility adaptation
Imitate the choice of enterprise wechat conference room
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"?
随机推荐
Leetcode-231-2的幂
Find tags in prefab in unity editing mode
安科瑞电网智能化发展的必然趋势电力系统采用微机保护装置是
How to implement backspace in shell
预测——灰色预测
What else can an ordinary person do besides working in a factory to make money?
PyTorch 中的乘法:mul()、multiply()、matmul()、mm()、mv()、dot()
121. The best time to buy and sell stocks
Step by step monitoring platform ZABBIX
torch. Numel action
[summary of knowledge] summary of notes on using SVN in PHP
JS modularization
[flower carving experience] 15 try to build the Arduino development environment of beetle esp32 C3
asyncio 概念和用法
laravel中将session由文件保存改为数据库保存
What about the pointer in neural network C language
Unity drawing plug-in = = [support the update of the original atlas]
Application example of infinite list [uigridview]
MySQL数据库基本操作-DQL-基本查询
Balanced binary tree (AVL)