draco icon indicating copy to clipboard operation
draco copied to clipboard

Untextured triangles become textured

Open yvoronov-artec opened this issue 9 years ago • 2 comments

I have an OBJ file with some textured and some untextured triangles. Then I encode OBJ to DRC and decode it back. All untextured triangles become textured, which apparently is not what I want.

yvoronov-artec avatar Feb 09 '17 18:02 yvoronov-artec

That's probably related to this issue. Basically Draco currently requires attributes to be fully defined on all points. If some points on faces don't have texture coordinates defined, they are assigned with a default (0-index) value. Current solution would be to split the obj into two, where one uses the texture coordinates defined and one does not. We may add support for partially defined attributes later on, but it is currently not on our roadmap.

ondys avatar Feb 09 '17 20:02 ondys

Ok, I've got it.

yvoronov-artec avatar Feb 10 '17 12:02 yvoronov-artec