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

Add option for backtracking after reinking #13

Open
RoboGenius opened this issue Aug 21, 2013 · 8 comments
Open

Add option for backtracking after reinking #13

RoboGenius opened this issue Aug 21, 2013 · 8 comments

Comments

@RoboGenius
Copy link

Due to the length of the bristles (default brush), when the carriage lifts to reink, then sets the brush back down to complete a given line, you are left with a gap in the line that does not get painted.
This may be acceptable for shorter bristled brushes, pens, pencils, etc., but i believe it would be a "nice-to-have" option in the WCB extension to backtrack from the reink point % (var.) inches before setting back down. This should close the gap.

@techninja
Copy link

For what it's worth: RoboPaint simply calculates from the last two points the angle to "over-stroke" and moves forward enough to offset for brush bend before lifting the brush, allowing for both re-ink gap closing, and line ending accuracy.

@oskay
Copy link
Contributor

oskay commented Aug 21, 2013

Interesting idea! My first guess is that it would be difficult to implement this given the nature of the algorithm that we use. Recursively parsing the SVG file can be paused, but it's hard to advance forwards or backwards a few steps.

One thing that we could do-- much easier to add into the code --would be to add a "lead in." That is to say, when going back to resume painting, we determine the direction of movement, and begin a little further back in that direction. (While I've been typing, Techninja commented that they do the same thing in RoboPaint.)

@RoboGenius
Copy link
Author

I, admittedly, have not had any luck using RoboPaint (I need to try to reinstall it), but that solution sounds great for art created within that program!

Can layered SVGs created in inkscape be imported into (or exported to) RoboPaint and then accurately plotted? If so, then that may be something that may be worth adding to the wiki for seamless lines, or, rather, non-broken lines. That is, if the implementation within the WCB extension would be too cumbersome.

@techninja
Copy link

@RoboGenius I believe the two "applications" have their use cases. You can open an inkscape SVG into robopaints edit mode, then print it, though it's still alpha level stuff, it does work for the most part. If you end up trying it out, feel free and log any problems you find to its issue queue.

@oskay
Copy link
Contributor

oskay commented Aug 21, 2013

@RoboGenius Implementing the lead-in lead-out method (with approximated lines), in the same way that RoboPaint does would not be difficult. It should be reasonably straightforward. Adding an accurate look-ahead would be much harder.

@techninja
Copy link

Something to note about RoboPaint, it currently has no concept of Water Wash or understanding of Inkscape layers, so the cherry blossom SVG is currently unsupported. I'm forced to wonder how something like that would even work.. detected via transparency perhaps? Hmph.

@oskay
Copy link
Contributor

oskay commented Aug 21, 2013

This seems to be wandering off-topic. Perhaps layer support should be added as a feature request over at RoboPaint?

@techninja
Copy link

I agree, but I didn't say so as that would be too off topic from this issue. ;)

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

No branches or pull requests

3 participants