Skip to content
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

OBJ file loading misses color handling #1472

Open
VictorLamoine opened this issue Dec 10, 2015 · 2 comments
Open

OBJ file loading misses color handling #1472

VictorLamoine opened this issue Dec 10, 2015 · 2 comments
Labels
needs: pr merge Specify why not closed/merged yet

Comments

@VictorLamoine
Copy link
Contributor

The OBJ file format supports color; example file:

####
#
# OBJ File Generated by Meshlab
#
####
# Object color.obj
#
# Vertices: 6
# Faces: 8
#
####
vn 1.000000 0.000000 0.000000
v 1.000000 0.000000 0.000000 0.678431 0.509804 0.600000
vn 0.000000 1.000000 0.000000
v 0.000000 1.000000 0.000000 0.905882 0.149020 0.654902
vn 0.000000 0.000000 1.000000
v 0.000000 0.000000 1.000000 1.000000 0.019608 0.792157
vn -1.000000 0.000000 0.000000
v -1.000000 0.000000 0.000000 0.188235 0.117647 0.737255
vn 0.000000 -1.000000 0.000000
v 0.000000 -1.000000 0.000000 0.298039 0.243137 0.776471
vn 0.000000 0.000000 -1.000000
v 0.000000 0.000000 -1.000000 0.019608 0.517647 0.439216
#6 vertices, 0 vertices normals

f 1//1 2//2 3//3
f 1//1 3//3 5//5
f 1//1 5//5 6//6
f 1//1 6//6 2//2
f 4//4 2//2 6//6
f 4//4 6//6 5//5
f 4//4 5//5 3//3
f 4//4 3//3 2//2
#8 faces, 0 coords texture

# End of File

loadOBJFile and loadPolygonFileOBJ don't handle color information.

@VictorLamoine VictorLamoine added the changelog: enhancement Meta-information for changelog generation label Dec 10, 2015
@SergioRAgostinho
Copy link
Member

I'm working on this one.

SergioRAgostinho added a commit to SergioRAgostinho/pcl that referenced this issue Feb 3, 2016
WIP of PointCloudLibrary#1472. Added support for color handling in loadOBJFile. Still lacking testing for TextureMesh.
SergioRAgostinho added a commit to SergioRAgostinho/pcl that referenced this issue Feb 3, 2016
WIP of PointCloudLibrary#1472. Added support for color handling in loadOBJFile. Still lacking testing for TextureMesh.
SergioRAgostinho added a commit to SergioRAgostinho/pcl that referenced this issue Feb 14, 2016
Fixes of PointCloudLibrary#1472. Added support for color handling in loadOBJFile. Doesn't support TextureMeshes.
SergioRAgostinho added a commit to SergioRAgostinho/pcl that referenced this issue Feb 14, 2016
Fixes of PointCloudLibrary#1472. Added support for color handling in loadOBJFile. Doesn't support TextureMeshes.
@taketwo taketwo removed the changelog: enhancement Meta-information for changelog generation label Feb 22, 2020
@stale
Copy link

stale bot commented May 19, 2020

Marking this as stale due to 30 days of inactivity. It will be closed in 7 days if no further activity occurs.

@stale stale bot added the status: stale label May 19, 2020
@kunaltyagi kunaltyagi added the needs: pr merge Specify why not closed/merged yet label May 24, 2020
@stale stale bot removed the status: stale label May 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs: pr merge Specify why not closed/merged yet
Projects
None yet
Development

No branches or pull requests

4 participants