huxingyi / autoremesher

Automatic quad remeshing tool
GNU General Public License v3.0
988 stars 86 forks source link

Blender Addon #10

Open fire opened 3 years ago

fire commented 3 years ago

Create a blender addon for autoremesher.

huxingyi commented 3 years ago

If some one do, I would like to help.

Anafeyka commented 3 years ago

autoremesher just needs to be implemented as a library for python. Then autoremesher can be integrated anywhere. Almost all 3d software supports the python interpreter.

leoschwarz commented 3 years ago

I could potentially take a look at this in the next time. Is there anything interactive in the GUI I'm missing except for density and edge scaling specification? Because otherwise, I would suggest the easiest way will be to expose the functionality the GUI currently offers through a CLI binary. And then import/export obj files to integrate it with Blender with this functionality automated by an addon.

In general this might introduce some overhead due to extra I/O, but given that the computation is non-interactive and takes a lot more time I think this would be the easiest to implement and maintain approach for integration at this time. @Anafeyka's approach would be preferable if it is more interactive, but would be slightly more complex. Also, it currently doesn't seem possible to implement it as a modifier, so it would be a one-off operation as with most addons which generate objects.

huxingyi commented 3 years ago

The GUI is just for rendering and for limited parameters configuring. The current implementation is ok with dense mesh generation, but not good for low poly quads because of parametrization errors. I am working on another approach for quads generation, so, maybe wait a little bit more time to use it in real product environment.

Nicolas-Constanty commented 3 years ago

Hello @huxingyi thanks for your hard work. I managed to create a Blender addon from autoremesher sources. Here is the result : AutoRemesher I just keept the code that was usefull for the quad mesh generation, so I removed completly Qt, and the rendering stuff. I also had to modify some dependencies to get it work with Blender, I will probably create a repository tomorrow so you can have access to the sources I used to build this addon.

huxingyi commented 3 years ago

Hi @Nicolas-Constanty Good work! I'm looking forward to it. BTW, The quality of the result is still not good because of paramatrization errors, I am working on another approach, hopefully will get it released soon.

Nicolas-Constanty commented 3 years ago

Hi @huxingyi.

BTW, The quality of the result is still not good because of paramatrization errors, I am working on another approach, hopefully will get it released soon.

Cool news, I noticed some crashes on low poly meshes that come from parametrization section of the code indeed.

You can find the sources here. There is no CI at the moment, so I only built it on Windows 10 - x64 version. You can download this version here, if you want to test it inside Blender.

Note:

2695429209 commented 11 months ago

可以做个sketchup的吗