当前位置:网站首页>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 .
边栏推荐
- asyncio 概念和用法
- 121. The best time to buy and sell stocks
- Imitate the choice of enterprise wechat conference room
- Odoo integrated plausible embedded code monitoring platform
- iptables只允许指定ip地址访问指定端口
- Leetcode-231-2的幂
- 通知Notification使用全解析
- Sysom case analysis: where is the missing memory| Dragon lizard Technology
- What are compiled languages and interpreted languages?
- Prometheus API deletes all data of a specified job
猜你喜欢
随机推荐
一个普通人除了去工厂上班赚钱,还能干什么工作?
2022 the 4th China (Jinan) International Smart elderly care industry exhibition, Shandong old age Expo
php 自带过滤和转义函数
markdown公式编辑教程
PHP实现执行定时任务的几种思路详解
3000 words speak through HTTP cache
"The" "PIP" "entry cannot be recognized as the name of a cmdlet, function, script file, or runnable program."
[excelexport], Excel to Lua, JSON, XML development tool
torch.numel作用
laravel中将session由文件保存改为数据库保存
JS中null NaN undefined这三个值有什么区别
Unity3d click events added to 3D objects in the scene
Xingruige database was shortlisted as the "typical solution for information technology application and innovation in Fujian Province in 2021"
Balanced binary tree (AVL)
Continuous creation depends on it!
Laravel post shows an exception when submitting data
Step by step monitoring platform ZABBIX
Shader_ Animation sequence frame
PHP has its own filtering and escape functions
SysOM 案例解析:消失的内存都去哪了 !| 龙蜥技术