I’ve been trying to use the SVG feature with no success. The liberation texts shows fine but when I go to replace it with my own svg it never displays anything. I’ve tried multiple vectors and none have worked yet. Anyone got this working?
Interestingly enough, I’ve not had any issue with this. Would you mind sharing some of the files you have been trying to use?
The SVGs need to be SVG tiny format, and they also need to have outlines that aren’t black. Inkscape is the best for this, if you’re using Adobe Illustrator make sure that you are exporting in SVGTiny format. If it still doesn’t work, post the SVGs here!
on Inkscape I don’t see an option for SVGtiny? I’ve tried many files and none of them work. Could you possibly share a file with me that is known to work?
I’ve tried many svgs. Some I made and some online from different sites. Can you send a file that is known to work?
These all work ofxLaser/example_SVG/bin/data/svgs at main · sebleedelisle/ofxLaser · GitHub
Share your failed files here and I’ll have a look.
Tested the files and they do work. Here’s a few I tried that did not work.https://drive.google.com/drive/folders/1fonB9GV5Av7sgUnT103d1uHAXsehueVu?usp=share_link
I don’t think those files are public… but if you make them public I will check in the next few days. It’s late here.
Believe the link is open to anyone. Let me know if you can’t view them. I am really confused at this point to why my files won’t work. I can open up your files that work at a trace of a circle in the middle of the image. I made sure it path was traced and I can open it up on other programs and see the circle, but when it opens on the app its just not there.
I’m out all day today so can’t check but could it be that the shapes only have fills? They need to have strokes as well.
OK some important notes :
- Fills are ignored*, your shapes need to have a stroke colour and weight
- Text (and some special Inkscape primitives like rectangles with rounded corners) need to be converted to paths before exporting (Path->Object to Path)
- Perhaps obviously, black strokes are invisible but you can convert them to a colour using a Colour Change node (the rainbow one)
Your files don’t have any strokes, and the text needs to be converted to paths to show up. Hope this helps!
Seb
*unless you are subtracting them - see the settings
I managed to get the meltdown logo to work just by setting the stroke colour of shapes to white and then resaving the file. That’s literally the only change I had to make and they worked exactly as expected.