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

How can I read .obj with mtl file? #48

Open
lisc199 opened this issue Jul 8, 2021 · 2 comments
Open

How can I read .obj with mtl file? #48

lisc199 opened this issue Jul 8, 2021 · 2 comments

Comments

@lisc199
Copy link

lisc199 commented Jul 8, 2021

I have a obj file with mtl file. The mtl file concludes my material files. Ther are png file. How can I read them and render the object? Could you give some suggestions?

@lisc199
Copy link
Author

lisc199 commented Jul 8, 2021

I found that I can use tina.PBR to read png files and define the material. However I have multiple materials in one obj. How can I read these materials?

@lisc199
Copy link
Author

lisc199 commented Jul 9, 2021

I solved this problem. I wrote a function to read multiple objects from a single obj file and specify their materials for rendering.

我写了一个函数从单一的obj文件中读取多个object并分别指定材质进行渲染。希望后面能添加单文件多object的支持。

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

1 participant