folkertdev / freestyle-svg-exporter

a Blender addon for exporting stylized lines created by the Freestyle render engine to an SVG format.
54 stars 18 forks source link

Per face material fill #11

Closed anonimo82 closed 5 years ago

anonimo82 commented 5 years ago

Hello everyone. I'd like FreeStyle SVG exporter to correctly export fills as in this script: https://github.com/mrossini-ethz/vector-render

Basically, this script uses flat shading and has basic light support, but the most important thing is that this correctly export fils (per-face material, flat shading). Here is a sample render: https://drive.google.com/open?id=18n5e-yCuF_s-N7L4ByVaPgIK8p_VLyXr

Please, make SVG Exporter look like this.

Thanks if you do.

anonimo82 commented 5 years ago

May I have some feedback?

xuv commented 5 years ago

@anonimo82 Thx for the suggestion. Indeed, it's a nice proposition. Though I can't speak on the feasibility of it.

What I'm curious of is if you already a have a script that does it the way you want it, why would you want it to be added to this freestyle-svg-exporter? What is missing from that script that SVG exporter has?

Another thing to take into consideration is that everyone around this project is doing this on their free time. So if you don't have an immediate answer to your question, please be patient, or try to find someone you know who can help you with this.

anonimo82 commented 5 years ago

Because FS renders whatever geometry, not only polygons, and because FS also renders animations.

xuv commented 5 years ago

@anonimo82 Thx for the information. I see that similar discussions have already happened in issues #8 & #10. I understand that you are actively looking for this feature. I'm not usre @folkertdev will have the time to do this. Best would be to find a developer interested in your project and that would help you "merge" these two pieces of code. Maybe @folkertdev can flag this issue with a "help-requested" label so that other devs know they can jump in.

anonimo82 commented 5 years ago

Yes, I-d really like that. Please, mark this as help-requested. I asked the author of Vector render, but he said algorithms are different. I instead guess this can be done.

anonimo82 commented 5 years ago

SVG rendering works too oddly to find any issue without stepping the code while it runs. Sometimes it works if I reverse normals, other times works if I split a mesh in planes, etc.

It's very buggy indeed.

folkertdev commented 5 years ago

In general, Freestyle is very sensitive to small changes in the geometry, this is not something I can easily fix in the addon. It looks like LNPR brings some improvements in this area.

anonimo82 commented 5 years ago

Excuse me, what is NLPR?