load .obj mtl material data
HappyKuTou opened this issue · 2 comments
HappyKuTou commented
Describe the issue
I have to convert obj to gltf by c++
data in obj mtl file is not pbr data
how can I fill the tinygltf material struct after load obj mtl file
To Reproduce
- OS win10
- Compiler vs2019
Expected behaviour
I need to write mtl data in tinygltf material struct
lilleyse commented
@HappyKuTou this area of the code is how obj2gltf
converts .mtl to glTF PBR materials:
Lines 733 to 755 in 79848fe
Ultimately there's not a perfect conversion from the blinn/phong model to metallic-roughness so we approximated it as best we could. Hopefully this is enough to get started with your converter. I'm going to close the issue since there's no action here for obj2gltf
.
HappyKuTou commented
thanks
Sean Lilley <notifications@github.com> 于2020年8月28日周五 下午9:49写道:
… Closed #249 <#249>.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#249 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKGJOIWEQH5SCBBASCAEWCTSC6YWHANCNFSM4QNSQOZQ>
.