Closed zubair-irshad closed 4 years ago
I was able to resolve the issue by adding the following lines of code:
To save surface normal:
vn_ = 'vn '
vn_ += trimesh.util.array_to_string(mesh.vertex_normals,col_delim=' ',row_delim='\nvn ',digits=8) + '\n'
file.write(vn_)
face_type.append('vn')
To save face vertices/normals:
faces = 'f ' + trimesh.util.array_to_string(mesh.faces[layer_type[layer].inst_segmentation,:] + 1, col_delim=' ', row_delim='\nf ', value_format=face_format)
file.write(faces)
Hence, I am closing this issue.
Hi, I have a query regarding integrating exported semantic .obj/.mtl files with Gibson Env for on the fly computation of 2D scene graph:
The current
load.py
script exportssemantic .obj
in the following non-standard wavefront format:The above format is inconsistent with standard wavefront OBJ laoder provided with Gibson Environment. How can I generate and save
semantic .obj
files in the standard wavefront format described below:Thanks in advance for the help!