monniert / differentiable-blocksworld

[NeurIPS 2023] Code for "Differentiable Blocks World: Qualitative 3D Decomposition by Rendering Primitives"
https://www.tmonnier.com/DBW
MIT License
197 stars 10 forks source link

About exporting results to mesh #3

Closed tyhuang0428 closed 1 year ago

tyhuang0428 commented 1 year ago

Hi, thank you for sharing your great work! I notice that your method can successfully decompose scenes into primitive 3D meshes, which is really cool. Since I only found logging codes for image/video rendering, I would like to know whether inference results can be exported as mesh files. If so, could you also share these mesh files with us? Thank you very much!

monniert commented 1 year ago

Hi tyhuang0428, thanks for the reaching out!

Yes results are exported as a single obj file at the end of the optimisation (here using this function). It is quite straightforward to adapt this function to save one obj file for each primitive to import distinct elements in computer graphics engine for physical simulations (let me know if you don't see how to do it, I could add the function in the code)

Sharing mesh files was not planned as you can get yours in a couple of hours, but I can find a place to add them somewhere if you think it is necessary

pingpongballz commented 2 weeks ago

Hi Monniert,

I tried to modify the functions to export individual primitives, but no luck. Is it possible to upload your implementation over?

Thank you! 😃