Fornos
Fornos copied to clipboard
Vertex Colors with Wavefront OBJ
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