armory3d / armortools

3D Content Creation Tools
https://armorpaint.org
Other
3.26k stars 337 forks source link

SVG/Vector Image Import #335

Closed Hopefullyidontgetbanned closed 4 years ago

Hopefullyidontgetbanned commented 4 years ago

It would be ideal for Armorpaint to have support for vector image formats (ex. SVG) for high resolution procedural texturing. This is a feature that is available in substance painter and it would be nice for it to be in Armorpaint.

Calinou commented 4 years ago

Unfortunately, the state of open source SVG libraries is kind of bleak. If you want to stick to permissively-licensed options, there's the unmaintained nanosvg which works well on simple SVGs but breaks on most complex vectors (in my experience at least). Other libraries are generally tied to a rendering system like Cairo or Skia, both of which are very large dependencies.

I think providing some SVG support is better than no SVG support at all, so I'd still vote for integrating nanosvg. Just make sure to document its caveats in the manual and user interface.

Hopefullyidontgetbanned commented 4 years ago

unfortunately that is true with most vector formats however if basic svg support is possible then that would be ideal. for example pattern generation is what i mostly see svg support as useful for making texturing easier. ex cloth pattern to make procedural cloth textures

Hopefullyidontgetbanned commented 4 years ago

fixed in 5bb60a6cd76c9b0b04a217734f52a629da7d5463