-
Notifications
You must be signed in to change notification settings - Fork 63
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
Can this library render textured models? #37
Comments
Yes, it is possible, but you'll need to write some code! The texturing
sample already shows how to do simple textured rendering, but I don't
have an example for the rest. You'll need to write code to load the
obj and mtl files, 'rearrange' and tile the material parameters into a
tensor shaped like the vertex colours, then follow the pattern of the
texturing sample -- do deferred rendering passes that write out the
relevant material parameters and UVs to gbuffers, then do the final
lighting & texturing calculations using those buffers.
…On Sat, 20 Jul 2019 at 08:35, Goldname100 ***@***.***> wrote:
I have a .obj, .mtl, and png texture file. Is it possible to render a complete textured version of the model using this library? I wasn't too sure as I don't see any examples taking mtl files as input.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Can you explain what you mean by simple textured rendering? How is that different from normal textured rendering? |
I meant by 'simple' that there's a single material (diffuse only), single texture, and the mesh is given directly in the code. However, there is nothing fundamentally different about rendering an obj+mtl. |
I think |
@pmh47 Hi~ sorry for bothering. I want to know how to render an obj with a transparent background or specific image? I rendered some results, and all my results are like: I know I should adjust the background_attributes, but I do not know how to set it.
Thanks for any help and guidance! |
I have a .obj, .mtl, and png texture file. Is it possible to render a complete textured version of the model using this library? I wasn't too sure as I don't see any examples taking mtl files as input.
The text was updated successfully, but these errors were encountered: