Open marsfan opened 4 years ago
I cannot reproduce the problem, there is no prefix in obj file.
####
# OBJ dataFile simple version. File name: /home/mathieu/Documents/RTAB-Map/meshes/mesh.obj
# Vertices: 75921
# Faces: 116781
# Material information:
mtllib mesh.mtl
####
Which RTAB-Map version do you use? Are you exporting from RTAB-Map->File->Export 3D clouds... ?
When exporting obj mesh files to my project, the file path for the associated
.mtl
files is incorrect, it improperly refers to them being in a sub-directory relative to the.obj
files, but they are actually in the same directory.For an example, in my project, I have the project directory (
project
). Within that directory is the main database file. Also within that directory is a directory titledmeshes
, where my exported meshes are stored. When I tell RTABMap to export the as.obj
files to themeshes
directory, it saves the.obj
files, the.mtl
files, and the.jpg
files to themeshes
directory. However, the.obj
files internally state that the.mtl
files are in a directory within themeshes
directory, also calledmeshes
.Here is an example of the start of the file
when in reality the second to last line should read
This results in certain programs (MeshLab in my case), from being able to properly display the textures, and defaulting to displaying a white material, as opposed to the RGB textures.