Calibrating the camera's view to accurately overlay the virtual workspace grid

calibrating the camera’s view to accurately overlay the virtual workspace grid.
Hey guys
Have been trying to set up a new cam sculpfun 500 with the Sculpfun S9 . I previously used a old web cam mounted on a PVC pipe and had pretty good luck for a beginner , BUT man issues this time around . I have burned the grid 400 x 400 dl,ed from the site. To have a fresh waist grid. Set my device setting to 400x400 but when pop into grid screen it raises it up and to the right . X=-16.0 and Y=25.5 totally offset. automatic ..
so I put those settings back to 0 to center what I was seeing on the screen.
cleared image to go through the cam calibration again to get grid on screen to match up with the waste grid by adjusting H-W-X-Y. Exported cam settings to my 3 mm pieces, Hit capture, And be damn , it auto offsets it again same numbers . I click import those settings I exported. and it auto back to the same offset X=-16.0 and Y=25.5
What am I doing wrong ?
I guess what I am trying to do is get the visible grid in lightburn to match up with the waste grid I just burned . I have since that screen shot got it a lot better ! and exported and saved the cam setting. but its still a smidge off setting now is at W 0.0, H 0.5, X 0.0, Y -0.5, but still not perfect,
But I close LB . Open LB and its right back to the X=-16.0 and Y=25.5

Check the timestamp on the prefs.ini file in the Prefs folder before and after pushing the Save Settings button in Camera Control window. Can you confirm that the file is in fact changing and getting an updated timestamp?

Also, please export your prefs and upload the file here. Can review to see what values are being stored. If you’re comfortable with JSON files then search for an entry named “backgroundAdjust”.

I noticed when tried to save had to save it in doc folder. I look in C/windows/ programfiles/lightburn but do not see a pref folder .. hmm

In LB I can go to the pref folder and I see pref.ini

Opened the palette.json file in notepad but all I see is entrys like “fff00e0e0” and such , nothing else .
this is the exported setting I saved in Doc folder
Cam-2.5mm.lbcm (835 Bytes)

You can identify your LB prefs folder by going to File->Preferences->Open Prefs Folder in LightBurn. From there, you should see a file called prefs.ini which stores all your current settings.

Note the timestamp of the prefs.ini file, then try saving the camera adjustments. Refresh the prefs folder and check the timestamp again. Does it change?

Can you upload the prefs.ini file here for review?

The .lbcm file doesn’t seem to store the XY adjustments.

hm does not seem to want me to upload the file . tried zipping it as well
its only 37kb
Pref folder shows prefs.ini.old and also pref *says config setting but does not have a ini extention.

This is probably due to a Windows configuration setting that hides extensions for known file types. This can be changed in Explorer Options dialogue.

You can work around this by arbitrarily adding “.TXT” extension to the filename or other allowed file type extension.

You could also export your prefs from LightBurn which will create a file with .lbprefs extension which is allowed on the forum.

OK Lets try this
prefs.ini.lbprefs (36.5 KB)

That worked.

Here’s what you are showing in the prefs file. This matches the adjustments you indicated were being reverted to each time:

                "backgroundAdjust": [
                    -2,
                    0,
                    -16,
                    -25.5
                ],

I’ve modified the file to match your desired values of W 0.0, H 0.5, X 0.0, Y -0.5. Try importing this modified file by going to File->Preferences->Import Prefs file. That’s the only change I’ve made.

prefs_cam_adjustments.lbprefs (36.5 KB)

That seemed to do the trick ! Thank you for your time and help with this .
You guys are GREAT !!

1 Like

Glad that worked. Although I’m a bit bothered that this wasn’t updating for you normally since you wouldn’t want to have to do this on the backend each time. Hopefully it’s a one-time thing.