Material color isn't read properly.

Issue #65 new
Former user created an issue
newmtl Color_A06
Ka 0.000000 0.000000 0.000000
Kd 0.647059 0.000000 0.000000
Ks 0.330000 0.330000 0.330000

For the material above, it seems the native library doesn't properly parse the diffuse and specular colors. For Kd and Ks, I'm seeing (0.6, 0.6, 0.6) and (0, 0, 0) returned for them respectively in AssimpNet. Upon inspecting source for the native library, it seems (0.6, 0.6, 0.6) is used as a default value, but it's unclear why the actual color values are not being read properly.

It seems the only time I can see color is when it comes from actual textures. The above material has no texture associated with it. Just color.

Note: I'm working in Unity and attempting to integrate this plugin so I can load models from disk at runtime. I'm traversing the Scene and Nodes in order to create GameObjects and attaching MeshRender and MeshFilter components.

Comments (0)

  1. Log in to comment