LaserWeb

298 views
Skip to first unread message

Peter van der Walt (Gmail)

unread,
Jan 22, 2016, 12:34:28 AM1/22/16
to lase...@googlegroups.com
HI All.

We have had a few lasersaur users coming around and commiting code to LaserWeb (https://github.com/openhardwarecoza/LaserWeb/commits/master) over the last few days



Here's one lasersaur user's results with playing with the raster and DXF modules:
(Running a 80w tube on lasaurgrbl  14.11 firmware)



Just abusing my access to this list to spread the word a little more (: - can always use a few extra developers helping out around there too

Have a good one!

Peter van der Walt

Jondale Stratton

unread,
Jan 23, 2016, 1:51:37 PM1/23/16
to lase...@googlegroups.com
I've looked into your project a few times.  The last time I looked SVG import was broken so I just mentally planned to look in again later.

I think it looks very promising.  My hope for it, coming from a Lasersaur user, would be the ability to select passes/feed rate/laser intensity based on stroke color.  I know that personally that would be a huge loss for me from my current work flow.  Also the button to send the bounding box to the laser head is something I use very often to align my material (you may have something like this now).  

Something that is currently missing and would give an incentive to switch would be an interface that supported importing svg's that had embedded images and then would use a true raster mode (not an image to gcode conversion).  That way we could just put our rasters straight in our design file.  Unfortunately most people are running firmware that does not support raster mode and so it would take an update to Martin's code or similar.  If there were a web interface that supported it though I'd certainly give it a shot.



--
You received this message because you are subscribed to the Google Groups "lasersaur" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lasersaur+...@googlegroups.com.
To post to this group, send email to lase...@googlegroups.com.
Visit this group at https://groups.google.com/group/lasersaur.
To view this discussion on the web visit https://groups.google.com/d/msgid/lasersaur/CAJjaewGqSx1_wyQ5nFHM-yG3YQP0h9X0VOmUXR2kuP4Wxd4Tsw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Peter van der Walt (Gmail)

unread,
Jan 23, 2016, 2:50:25 PM1/23/16
to lase...@googlegroups.com
Hi Jondale

SVG import has since been fixed, using one of Stefan's old Lasersaur javascript libraries as a matter of fact (from before the filereaders moved to python - see https://github.com/openhardwarecoza/LaserWeb/tree/master/i/svg/js) - sadly that library didnt fully support color yet.

I did push the first commit on getting it going though, just a few mins ago: https://github.com/openhardwarecoza/LaserWeb/commit/966c91019c85d3ddd0a2c75af53bebe9e8f88645 - i can parse out the colors, now just quick work to add it to the UI workflow and gcode generator...
To follow the specific development of the feature, please follow along on https://github.com/openhardwarecoza/LaserWeb/issues/81

Bounding box:  Been in there for a few weeks already (Commit says 20 Dec: https://github.com/openhardwarecoza/LaserWeb/commit/f36a1b0ef98ca4125a37e834ccc5004d89c38a6e)

Paper.js can raster SVGs (the engine I use for rastering the PNG/JPG/BMP) - it should be easy to seperate the paths out and push them to svg2gcode, and push the image data to paper.js - please open an issue on github (enhancement tag) so we can keep that in mind?

Regarding the firmware, really not as big a deal as people always say (people like inventing barriers for themselves) - In the test group we have Smoothieboards (over serial), Marlin (off SD - by far the slowest mind you), Lasersaur (over USB off a PC not via BBB), Lasersaur at Fablab-KA, Grbl based diode engravers, and none of these really choke on G0/G1 moves for engraving. My raster code is optimised to only have 10 levels of gray (you can make it 100 if you want to) - and it concatenates same shade pixels into rows. So very little data.   Follow me on google plus, theres often pictures I share there.    Really, improvements with a binary raster protocol is welcome, but not needed. Gcode gets the job done

As one of my devs the other day said, better to have a slightly crappy feature now than not having it at all!

Peter


Jondale Stratton

unread,
Jan 23, 2016, 4:46:46 PM1/23/16
to lase...@googlegroups.com
I'm glad to see you already have have plans to do the svg colors.

Don't get me wrong.. I think having the svg2gcode stuff is better than not having it.  It's just not a feature we can't do now as many of us have added a gcode tab to our interface.  I'm also keenly aware that a real raster mode is something missing from most of the open source firmwares.  One exception would be using the 2x_laser configuration for LinuxCNC (specifically https://github.com/bjj/2x_laser/blob/master/M144).

I've spent quite a bit of time trying to get decent raster results from gcode on my lasersaur.  I've tried svg2gcode and the various other scripts I could find.  I dabbled with it myself at https://github.com/jondale/svgRaster .  I can get acceptable results on things where the hatch fill extension would probably do the same thing.  Anything with high dpi requirements and I just can't get near the quality I can off a laser with a real raster mode.  I believe it's due to acceleration/deceleration in a non-raster mode.

I'm certainly willing to be proven wrong and I will also continue trying to prove myself wrong.  As of now though, unfortunately, I fall back to using a different laser to do raster work.


Steve Baker

unread,
Jan 23, 2016, 6:02:13 PM1/23/16
to lase...@googlegroups.com

Jondale Stratton wrote:

> I could find. I dabbled with it myself at
> https://github.com/jondale/svgRaster . I can get acceptable results on
> things where the hatch fill extension would probably do the same thing.
> Anything with high dpi requirements and I just can't get near the quality
> I
> can off a laser with a real raster mode. I believe it's due to
> acceleration/deceleration in a non-raster mode.

I built a quick hack that takes PNG and generates SVG - it generates
little disconnected squares for each pixel - which tricks the draw-order
optimiser into drawing each square completely before moving onto the next
nearest one.

Drawing these small squares guarantees that the acceleration/deceleration
is consistent from one pixel to the next - no matter how many nearby
pixels are the same color.

The **HUGE** win over this approach is that I can preprocess the image
into SVG - then import the image into other SVG designs completely
seamlessly...also rotate and crop the image into weird shapes - and use
vector cutting to cut out whatever 'frame' I need.

However, it's VERY slow.

Fortunately, I only very rarely need raster, so it works fine for me.

-- Steve
>>>> ​
>>>> Here's one lasersaur user's results with playing with the raster and
>>>> DXF
>>>> modules:
>>>> (Running a 80w tube on lasaurgrbl 14.11 firmware)
>>>>
>>>>
>>>>
>>>> Just abusing my access to this list to spread the word a little more
>>>> (:
>>>> - can always use a few extra developers helping out around there too
>>>>
>>>> Have a good one!
>>>>
>>>> Peter van der Walt
>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "lasersaur" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to lasersaur+...@googlegroups.com.
>>>> To post to this group, send email to lase...@googlegroups.com.
>>>> Visit this group at https://groups.google.com/group/lasersaur.
>>>> To view this discussion on the web visit
>>>> https://groups.google.com/d/msgid/lasersaur/CAJjaewGqSx1_wyQ5nFHM-yG3YQP0h9X0VOmUXR2kuP4Wxd4Tsw%40mail.gmail.com
>>>> <https://groups.google.com/d/msgid/lasersaur/CAJjaewGqSx1_wyQ5nFHM-yG3YQP0h9X0VOmUXR2kuP4Wxd4Tsw%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>> .
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups
>>> "lasersaur" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an
>>> email to lasersaur+...@googlegroups.com.
>>> To post to this group, send email to lase...@googlegroups.com.
>>> Visit this group at https://groups.google.com/group/lasersaur.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/lasersaur/CAPLxAtU92qeoQSRsyfK5kATXMdnq%3DcpW6iBVo6xRxyx5bemLQQ%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/lasersaur/CAPLxAtU92qeoQSRsyfK5kATXMdnq%3DcpW6iBVo6xRxyx5bemLQQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups
>> "lasersaur" group.
>> To unsubscribe from this group and stop receiving emails from it, send
>> an
>> email to lasersaur+...@googlegroups.com.
>> To post to this group, send email to lase...@googlegroups.com.
>> Visit this group at https://groups.google.com/group/lasersaur.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/lasersaur/CAJjaewGjucjG7m4P7wuNASyN6gGYgJQ9LJm3df%3D-ViXZiORJXA%40mail.gmail.com
>> <https://groups.google.com/d/msgid/lasersaur/CAJjaewGjucjG7m4P7wuNASyN6gGYgJQ9LJm3df%3D-ViXZiORJXA%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
> --
> You received this message because you are subscribed to the Google Groups
> "lasersaur" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to lasersaur+...@googlegroups.com.
> To post to this group, send email to lase...@googlegroups.com.
> Visit this group at https://groups.google.com/group/lasersaur.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/lasersaur/CAPLxAtXm4gSG5oP7ZmOBjet2y503O_XHcMv12E5sLLqj2UTUKw%40mail.gmail.com.
> For more options, visit https://groups.google.com/d/optout.
>


-- Steve

Peter van der Walt (Gmail)

unread,
Jan 24, 2016, 3:57:37 AM1/24/16
to lase...@googlegroups.com

Thats actually a pretty neat trick Steve. 

At the end of the say,  all for personal fun here (:

Peter van der Walt (Gmail)

unread,
Feb 1, 2016, 10:11:02 AM2/1/16
to lase...@googlegroups.com
SVG Colors is now live in Laserweb:




Christian Kortenhorst

unread,
Feb 1, 2016, 10:12:55 AM2/1/16
to lase...@googlegroups.com
Does this work for lasersaur?

Thank you 


For more options, visit https://groups.google.com/d/optout.



--

We would love your feedback on our service if you had 30 seconds http://bit.ly/1FfdMVf

CK Computer Solutions
For all your computer needs
For all support questions please email sup...@cksolutions.ie
Sign up to news letter on homepage http://cksolutions.ie
 
Christian Kortenhorst
mob: +353-(0)87-6183349
work: +353-(0)1-4853765
chri...@cksolutions.ie | twitter: cksolutions | web: http://cksolutions.ie

review CK Solutions: http://bit.ly/1FfdMVf
linkedin: http://www.linkedin.com/in/cksolutions
youtube: http://www.youtube.com/itsupportdublin
locate us: http://goo.gl/nmj3K
blog: http://cksolutions.ie/about-us/blog/

Jondale Stratton

unread,
Feb 1, 2016, 10:13:51 AM2/1/16
to lase...@googlegroups.com
Looks good from the screenshot Peter.    I will have to make time to try this out.

Peter van der Walt (Gmail)

unread,
Feb 1, 2016, 10:21:24 AM2/1/16
to lase...@googlegroups.com

It does yes,  i tried my best to get it running against lasaurgrbl.  One of my friends in town runs it against his lasersaur (over usb-serial), and Fablab-KA also played with it against theirs a bit. 

The nodejs app autodetects the firmware in use and adapts the ui/gcode dialect/etc to suite.

Nb note,  very beta,  but always welcome any testing / help / pull requests (:

See github.com/openhardwarecoza/LaserWeb

Also, if you are a JS whizz we have motivation (free laser spares as bounty)  see https://plus.google.com/+PetervanderWalt/posts/4ebnqbP8Ttf  and https://github.com/openhardwarecoza/LaserWeb/wiki/SPONSORS (we encourage sponsors to donate to the contibutors directly))  for you to come and get involved (:

Peter

Adam Haile

unread,
Mar 28, 2018, 7:41:46 PM3/28/18
to lasersaur
I have an older LaserSaur I just got, version 12.08... will LaserWeb work with that by chance? The LaserWeb wiki says grbl 1.1 but I cannot find what version of grbl LasaurGrbl is based on.
Reply all
Reply to author
Forward
0 new messages