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

Vertex Colors with Wavefront OBJ #3

Open
kybio opened this issue May 22, 2018 · 0 comments
Open

Vertex Colors with Wavefront OBJ #3

kybio opened this issue May 22, 2018 · 0 comments

Comments

@kybio
Copy link

kybio commented May 22, 2018

One idea would be to include vertex color to capture meshes with colors, Meshlab saves .obj files with colors.

Link:https://gamedev.stackexchange.com/questions/21303/how-can-i-include-vertex-color-information-in-obj-files

There does exist a flavour of Wavefront's *.obj that facilitates Vertex Coloring.. I know of two applications that can export these namely "MeshLab" (free) and "MeshMixer" (also free from Autodesk).. The vertex colours is actually found just after each vertex definition as shown below..

(Piece of *.obj)

/////////////////////////////////////////////////////////////////////////////////////
OBJ File Generated by Meshlab

Object VERTEXPAINT_004_OBJ.obj

Vertices: 284
Faces: 281

mtllib ./VERTEXPAINT_004_OBJ.obj.mtl

vn 0.029683 0.730087 -0.682709
v 1220.094482 -572.500000 177.713943 0.984314 0.764706 1.000000

"3 vals for Vert and 3 vals for Col"

vn 0.000000 0.858139 -0.513418
v 1291.571533 -609.439636 -28.628490 0.921569 0.219608 1.000000
vn 0.303129 0.896367 -0.323480

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant