Closed naivereseacher closed 1 year ago
Hi! Great question. You have correctly identified that our OBJ parser only supports triangles. It is possible that you are encountering these error messages because your OBJ export settings are different than the ones we used when we originally ran dataset_generate_meshes.py
. Have a look at how I programmatically export OBJ files here and here in my personal fork.
In my personal fork, I explicitly set all of the OBJ export settings to a known working state by creating a backup first and then overwriting gw_objexp.ini
. Then, I invoke the OBJ exporter programmatically. Using this approach, I am able to generate OBJ files that only contain triangles, and are handled correctly by the rest of our pipeline.
Thanks for the awesome work. I tried to run the tutorial example 01_marketplace_dataset. I have the asset downloaded from turbosquid and I use 3ds max to convert the assert to obj. But when I run 'dataset_generate_meshes.py', it says '[HYPERSIM: OBJ_FILE_UTILS] ERROR: Couldn't parse: f 11808/3503/8782 11806/3501/8780 12314/4025/9288 12317/4028/9291'.
I did some debugs, the problem is that for my 'scene.obj' file, the faces item has 5 values instead of 4 values used in the code, see the following,
The the length of 'values' attribute in my obj file is 5, e.g. 'f 11808/3503/8782 11806/3501/8780 12314/4025/9288 12317/4028/9291'.
It seems some obj faces are Quads, because the original 3d model is CAD. I wonder how I can convert the 3ds max model to obj model correctly.
Thanks!