Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blender Addon #10

Open
fire opened this issue Oct 2, 2020 · 8 comments
Open

Blender Addon #10

fire opened this issue Oct 2, 2020 · 8 comments

Comments

@fire
Copy link

fire commented Oct 2, 2020

Create a blender addon for autoremesher.

  • Support meshes
  • Support armatures
  • Support materials
@huxingyi
Copy link
Owner

huxingyi commented Oct 2, 2020

If some one do, I would like to help.

@Anafeyka
Copy link

Anafeyka commented Dec 5, 2020

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
Copy link

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
Copy link
Owner

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
Copy link

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
Copy link
Owner

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
Copy link

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:

  • I did not implemented the loading bar inside Blender at the moment, so when the computation is started, Blender do not respond until the end of the generation.
  • As you mention above, the generation is pretty unstable at the moment, so you might encounter crashes depending of the mesh that you are using. Blender will be killed since I did not handle this kind of errors.
    Same behaviour happen on the Qt GUI, so I did not handle it (because you are aware of this issue, and you are working toward to fix it).

@2695429209
Copy link

可以做个sketchup的吗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants