You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the load_obj function we load the Ns, Ka, Kd, Ks properties from the .mtl file. You can retrieve them from the aux tuple that is return from load_obj e.g.
I was able to create the Materials object from aux.material_colors. But passing it to shader causes a RuntimeError when rendering. (Same error with renderer(materials=materials)). My feeling is faces.materials_idx missing in the pipeline. As @nikhilaravi said, faces.materials_idx indexes into the material properties for each face, but I couldn't find a place to pass it to the renderer.
In this question was explained how render image without texture
#51
But in my case in MTL-file contain material with constatnt color and in OBJ-file described what vertex have this color
Can I generate texture using commands from OBJ-file: usemtl Color_003?
The text was updated successfully, but these errors were encountered: