Update 17.12.2022
I removed the OBS camera and added the step to install @Mayco s Snapmaker Lightburn Host.
Update 16.12.2022
Hello all,
as promised, here is a short tutorial on how to use the camera support of the Snapmaker Laser Module with Lightburn.
First of all: I came up with this when I looked at how to calibrate the camera for Lightburn. Only static images are needed, and we can easily create that with the 10 Watt Laser Module.
Actually, I’m a Linux person, but I made this stab with a Windows system. On Linux it will probably work much easier
To all people with the 1.6 Watt laser module: Sorry - it’s not that easy.
Roughly, it works like this:
A virtual webcam is fed with still images, which we generate via web requests directly through the API.
Step 1: We need a virtual webcam software. @Mayco programmed a good solution for this.
At his github page you’ll find the Snapmaker Lightburn Host. A small tool which feeds a virtual webcam with pictures taken with your snapmaker laser camera. Works great. Please follow his installation instructions. GitHub - PolymerPrints/SnapmakerLightBurnHost: Snapmaker 2.0 10W laser camera in LightBurn
!!! Attention !!! This software starts a web request which moves your laser head, close it after you took your pictures
Step 3: Turn on Snapmaker and find out the IP, this can be done via the settings menu.
Step 4: Start the Snapmaker Lightburn Host, like it’s described in Maycos instructions.
To make it easier for later starts, it’s possible to create a shortcut to the SnapmakerLightburnHost.exe with your snapmakers ip as start parameter.
The Camera Capture System option behaves weird on my system, so just try the best setting for you.
Step 6: Start Lightburn. Under the menu Laser Tools > Calibrate Camera Lens you should now be able to select the DirectShow Softcam.
If you now have a picture there, it worked . If there’s a grey image, or the Softcam is not selectable lightburn cannot read the virtual camera. In the Lightburn settings you may switch the following option.
When the Camera is still not working, there may be an error loading the dll, then a reboot may help.
Step 7: Execute the Camera Calibration. This is described in the Lightburn documentation. There is also a great video about it.
You have to take a look at it before you continue reading here.
There are the following points to note here:
Our camera is static for Lightburn, because the photos are always taken from a fixed position.
For each photo that is taken in Lightburn during calibration, it is important to keep in mind that we do not have realtime recordings here. Here the following procedure has proven itself:
- Place the Lightburn calibration card (It makes sense to make it beforehand, I lasered mine out of 5 mm poplar plywood).
- Start the Powershell script to create the new camera_capture.jpg
- Check in OBS if the new photo arrived, otherwise reload the image source.
- Check if the new image is displayed in Lightburn.
- Click Capture.
- Re-place the calibration card, and then start again.
When the calibration is done, you have the possibility to choose the photo as background for the build area, just like in Luban.
It is also possible to draw on your material, Lightburn will parse it for you, and you can laser it directly. (The controls for this are in the Camera tab on the right).
I am endlessly impressed by the precision Lightburn delivers here.
I hope these instructions are understandable. Yes, in the end it is a crutch, especially the detour via the virtual camera, but it works and that’s the main thing!
Bonus: Picture of a laser cut 3 legged gnome, scribbled with a sharpie on 5 mm poplar plywood. What a precision!
Hey guys,
I managed to get the snapmaker laser camera to work with lightburn.
Too tired now to write a tutorial, but I’ll update this thread tomorrow.
Here are some pictures to prove it