Page MenuHome

Vertex Colors not imported for PLY files in 2.8
Closed, ResolvedPublic


System Information
Operating system: Windows-10-10.0.17134 64 Bits
Graphics card: GeForce GTX 1060 6GB/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 418.96

Blender Version
Broken: version: 2.80 (sub 53), branch: blender2.7, commit date: 2019-03-31 21:52, hash: rBb936d7b16c62
Worked: Blender 2.79 and earlier

Short description of error
In Blender 2.79 and prior, importing .ply files which contained vector color information would bring in vertex colors. Importing the same .ply files in Blender 2.8 does not bring in vertex colors with the mesh. See attached image comparing ver2.7 (left) and ver2.8 (right).

Exact steps for others to reproduce the error

I've attached a .ply file that contains vertex color info. To reproduce, 'File->Import->Stanford (.ply)', and select test.ply (also attached.) Vertex colors should exist for the attached .ply file (test.ply)

Event Timeline

Looks like some code for the vertex color from the 2.79b release was changed in the port to 2.8. I'm not sure why, but there is a comment saying # XXX, colors dont come in right, needs further investigation. in the 2.79b version, so perhaps this feature didn't quite work as expected.

@Jacques Lucke (JacquesLucke) do you know why this feature is missing?

The code for handling vertex colors is there, but changes from the 2.79b version were introduced in 227fafdfcf4f. I'll have to take a closer look.

@Robert Guetzkow (rjg), unfortunately, I don't know why this feature is missing currently.

I think I found the bug. The current implementation requires an alpha channel for the vertex color otherwise it's ignored.

The bug was introduced in 1542092295c9 and @Campbell Barton (campbellbarton) had already noticed it. However there doesn't seem to be any old bug report or patch.