BlenderProc
BlenderProc copied to clipboard
Load a single room for 3D-FRONT dataset
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
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
The repository( https://github.com/3D-FRONT-FUTURE/3D-FRONT-ToolBox ) may help.