BlenderProc icon indicating copy to clipboard operation
BlenderProc copied to clipboard

Load a single room for 3D-FRONT dataset

Open ruili3 opened this issue 10 months ago • 2 comments

Describe your feature request

Thanks for the awesome library! I want to load only one room rather than a whole house when rendering each scene of the 3D-FRONT dataset and then saving the single room's structure into a ".obj" file. Is there any solution for this?

Thank you very much!

Describe a possible solution

No response

ruili3 avatar Jan 25 '25 13:01 ruili3

This is currently not implemented in BlenderProc, however it should be possible by slightly adjusting the Front3DLoader. The furniture objects are already loaded room-by-room: https://github.com/DLR-RM/BlenderProc/blob/main/blenderproc/python/loader/Front3DLoader.py#L407 So here you just need to do only one iteration for the room you want to load. For the walls and ceilings its a bit more difficult. Here you would need to first match them with their data["scene"]["room"]["children"] entry and then only create the ones from the selected room https://github.com/DLR-RM/BlenderProc/blob/main/blenderproc/python/loader/Front3DLoader.py#L52

cornerfarmer avatar Jan 27 '25 11:01 cornerfarmer

The repository( https://github.com/3D-FRONT-FUTURE/3D-FRONT-ToolBox ) may help.

yyyysr avatar Apr 12 '25 06:04 yyyysr