3D-FRONT-FUTURE / 3D-FRONT-ToolBox

95 stars 20 forks source link

missing vertex and face textures #2

Open agp-ka32 opened 4 years ago

agp-ka32 commented 4 years ago

Hi,

Thanks for the helpful scripts. I saved the obj files, but without vertex and face textures, i.e., without 'vt' and 'ftc'. 'vt' and 'ftc' variables were missing when the execution comes to Line 138 of run.py. Removing these variables from Line 138 and modifying this function helps to save the obj files (without texture info), but is it the case, or am I missing something for textures?

jwzxgy2007 commented 4 years ago

Hi, Thanks for your feedback. I add the missing import lib and the saved obj file has vt and ftc. You can try it again. If it is still wrong, please describe your system info.

agp-ka32 commented 4 years ago

Hi, Thanks for your feedback. I add the missing import lib and the saved obj file has vt and ftc. You can try it again. If it is still wrong, please describe your system info.

Thank you for your quick response. The error still exists for me. Please see the snapshot below. image

My system info is: Windows 10 64-bit. I am not sure what else to provide for the system info, but happy to provide specific details that you may ask. Pls let me know.

jwzxgy2007 commented 4 years ago

Could you please tell me which python you use, 2 or 3? and what the version of igl and trimesh lib?

agp-ka32 commented 4 years ago

I am using python 3.7 and the versions of "igl" and "trimesh" are the ones that I downloaded using the commands provided. I think they use the versions available on Anaconda, i.e., "igl" 2.2.0 and "trimesh" 3.7.12.

jwzxgy2007 commented 4 years ago

My env is same with yours. I think maybe your 'future_path' param is not valid, and you can check if below path is valid args.future_path+'/' + model_jid[idx]

agp-ka32 commented 4 years ago

Thanks for your help. It works. The problem was with the Pycharm version on Windows, I believe. When I ran it on Linux, everything seemed to work. Still weird.....

agp-ka32 commented 4 years ago

Another question: I don't see any furniture in the obj files obtained after running the json2obj.py script. Am I missing something? How to visualize the scenes with furniture present?

jwzxgy2007 commented 4 years ago

Hi, after running the py file, if you get obj files like this image? If not, please check if the future_path param is valid and igl.read_obj function is work.

agp-ka32 commented 4 years ago

Oh, right. Sorry, yes, I see the objects. But not for all room types (ex: kitchen, bathroom). Are only a few room types supported with furniture?

jwzxgy2007 commented 4 years ago

Yes, the kitchen and bathroom don't contain furniture. We will open more ornament and the texture of the floors, walls once these are prepared. Please check the updated news on the website.

ttsesm commented 4 years ago

Hi,

Thanks for the dataset, it seems really promising.

I have a couple of questions as well:

  1. When I run the json2obj.py script I am getting these warning messages:
a826f9e0-54d6-472e-92cc-e9b053526c74
Warning: readOBJ() ignored non-comment line 54:
  o solid_001
Warning: readOBJ() ignored non-comment line 121:
  o solid_002
Warning: readOBJ() ignored non-comment line 263:
  o solid_003
Warning: readOBJ() ignored non-comment line 361:
  o solid_004
Warning: readOBJ() ignored non-comment line 739:
  o solid_005
Warning: readOBJ() ignored non-comment line 1319:
  o solid_006
Warning: readOBJ() ignored non-comment line 2373:
  o solid_007
Warning: readOBJ() ignored non-comment line 4683:
  o solid_008
Warning: readOBJ() ignored non-comment line 5875:
  o solid_009
Warning: readOBJ() ignored non-comment line 1722:
  o solid_001
Warning: readOBJ() ignored non-comment line 14859:
  o solid_002
Warning: readOBJ() ignored non-comment line 39780:
  o solid_003
Warning: readOBJ() ignored non-comment line 50530:
  o solid_004
Warning: readOBJ() ignored non-comment line 57902:
  o solid_005
Warning: readOBJ() ignored non-comment line 62742:
  o solid_006
Warning: readOBJ() ignored non-comment line 1451:
  o solid_001
Warning: readOBJ() ignored non-comment line 2861:
  o solid_002
Warning: readOBJ() ignored non-comment line 1451:
  o solid_001
Warning: readOBJ() ignored non-comment line 2861:
  o solid_002
Warning: readOBJ() ignored non-comment line 1451:
  o solid_001
Warning: readOBJ() ignored non-comment line 2861:
  o solid_002
1c1fca70-5f24-43b2-8a84-1f61b8f2a13a
Warning: readOBJ() ignored non-comment line 23810:
  o solid_001
Warning: readOBJ() ignored non-comment line 40658:
  o solid_002

is that something I should be worry about it or it is fine?

  1. Is there any progress on adding texture information for the room surfaces? It is really important to have this available ASAP.
  2. On some mesh.obj files when I load them in meshlab I am getting the following error message: image
  3. In some rooms the faces also seem to be kind of corrupted, check the walls on the left and right side in the following image: image I do not know if this could be related to 3.
  4. If I load all the meshes from the folders of each scene they also seem not to be correctly aligned. E.g. check the screenshot below: image 1, 2, 3, and 4 correspond to the balcony, bedroom, kitchen and bathroom respectively from the scene 1c1fca70-5f24-43b2-8a84-1f61b8f2a13a as you can see there is a gap between room 3 and 4 while the lamp in room 2 as you can see goes out of the ceiling. I am not sure whether this should be happening or not.

Thanks.

ttsesm commented 4 years ago

Ok,for problem No. 5 it was my mistake I have forgotten to load the living room. Thus, there is not gap between the rooms. Apologies my bad. The lamp though is exceeding the ceiling.

jwzxgy2007 commented 4 years ago

Hi, thanks for your feedback.

  1. It is fine.
  2. The texture of surface will be added in the future, but now I can't give you an accurate date. 3.4. We will fix these errors.
ttsesm commented 4 years ago

@jwzxgy2007 thank you for the prompt response :-).

Any approximation about when do you believe that the layout textures and these errors could be resolved? Is there any way we could help so that to speed up?

ttsesm commented 4 years ago

@jwzxgy2007 any update?

Also I've noticed that the material properties are relying only to the texture images, any possibility that you could provide other properties as well, e.g. Ka, Kd, Ks etc. and/or even provide scene properties to the Mitsuba scene description file format.

jwzxgy2007 commented 3 years ago

@jwzxgy2007 thank you for the prompt response :-).

Any approximation about when do you believe that the layout textures and these errors could be resolved? Is there any way we could help so that to speed up?

@ttsesm I'm sorry for late reply. I'm afrried that I can't give a exact time for open the texture of walls but we are working on it. The refined 3D-FRONT dataset and Trescope, a light-weight rendering tool, will be released soon. Please check the website for news, https://tianchi.aliyun.com/specials/promotion/alibaba-3d-scene-dataset thank you!

small-zeng commented 7 months ago

Hi, thanks for your feedback.

  1. It is fine.
  2. The texture of surface will be added in the future, but now I can't give you an accurate date. 3.4. We will fix these errors.

Has the json2obj.py script been updated for textures? I ran it but still no textures.

small-zeng commented 7 months ago

Thanks, but when I run it, it occurs image