Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用PBR参数以后, 材质反而变差了! #304

Closed
FengFengmomo opened this issue May 11, 2024 · 7 comments
Closed

使用PBR参数以后, 材质反而变差了! #304

FengFengmomo opened this issue May 11, 2024 · 7 comments

Comments

@FengFengmomo
Copy link

摘自gltf的版本协议介绍:
Most likely, if you used unlit materials in glTF 1.0, you should use the KHR_materials_unlit extension in glTF 2.0. If you used blinn, phong, or lambert, you should use metal/rough or spec/gloss PBR in glTF 2.0. The PBR conversion of those materials should look quite good, although if you're looking for an exact match of the legacy materials, you may need to consider the custom GLSL extension.
但是我使用pbr参数以后,材质反而变差了。

@FengFengmomo
Copy link
Author

对比了正常文件,应该是b3dm文件里的json少了两个字段: "extensionsRequired": [
"KHR_materials_unlit"
],
"extensionsUsed": [
"KHR_materials_unlit"
],

@FengFengmomo
Copy link
Author

我使用了它的工具转换出来材质显示是正常的,同时用你的工具得到的json替换掉这个作者的工具转换得到的json,材质依然不清晰,这个是另外一个作者的链接:https://github.com/scially/Cesium3DTilesConverter

@fanvanzh
Copy link
Owner

你使用的是最新代码吗? 代码里可以搜到

model.extensionsRequired = { "KHR_materials_unlit" };
model.extensionsUsed = { "KHR_materials_unlit" };

@FengFengmomo
Copy link
Author

你使用的是最新代码吗? 代码里可以搜到

model.extensionsRequired = { "KHR_materials_unlit" };
model.extensionsUsed = { "KHR_materials_unlit" };

我用的是你build好的程序进行转换的。

@FengFengmomo
Copy link
Author

我使用了它的工具转换出来材质显示是正常的,同时用你的工具得到的json替换掉这个作者的工具转换得到的json,材质依然不清晰,这个是另外一个作者的链接:https://github.com/scially/Cesium3DTilesConverter

这个是让我最奇怪的,b3dm文件都是一样的,换个tileset.json就还是材质不清晰的了。可能问着这个问题比较愚蠢,没有学过transform相关知识。

@fanvanzh
Copy link
Owner

自己拉源码 build 一个,估计是很久之前的代码了

@fanvanzh
Copy link
Owner

参考主页 Build 最新代码

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants