jakobwilm / slstudio

SLStudio -- Real Time Structured Light. A comprehensive software suite for capturing and reconstructing 3D scenes with a camera-projector pair.
Other
515 stars 194 forks source link

Hardware Trigger #12

Closed nikkadim closed 7 years ago

nikkadim commented 7 years ago

I've a sync cable between camera and LightCrafter 4500 and I switched SLStudio to Hardware Triggering, but from projector output (_TRIGOUT1) I see no pulse at the scope to trigger the camera. In a project README file you also mention that for realtime setup we have to use /tools/lc4500startup to prepare projector, but I did not find _LCRSetTrigOutConfig function which makes output setup. Am I missed something? Thank you. ht

PS: Another question - why grey-white checkerboard matters? Why not black-white?

jakobwilm commented 7 years ago

Hello. You can configure the projector using the TI GUI if lc4500startup does not work. Put it in pattern sequence mode with HDMI input. Set your graphics card to the native (diamond pixel) 914x1140 resolution. Please read our paper on calibration for an explanation.

nikkadim commented 7 years ago

Thanks @jakobwilm for the tip with native resolution!

That is really strange, I set projector in pattern sequence mode and external (HDMI) pattern input as you did in lc4500startup, but projector still showing anything and not sending output pulses to camera.

Here is the new SLStudio settings: log2

console: log3

and the projector settings: logg

Thank you in advance.

jakobwilm commented 7 years ago

Set pattern source to video port and trigger mode to vsync.

nikkadim commented 7 years ago

It's actually set. TI GUI .3.0.1 for some reason does not show this right. I've added in lc4500startup.cpp reading procedures (LCR_Get...) just to check the current status after I set LCR_SetPatternDisplayMode and LCR_SetPatternTriggerMode:

nikk@STEREO-SYSTEM:~/slstudio/slstudio-master/tools/lc4500startup$ ./lc4500startup lc4500startup: preparing LightCrafter 4500 for duty... LCR_GetPatternDisplayMode = 0 LCR_GetPatternTriggerMode = 0 done!

so everything looks right..

s1 s2

jakobwilm commented 7 years ago

Well, the firmware and GUI have their quirks and bugs and usually take a few days to work around... The S172 looks a bit strange. Also, Pattern Sequence [Variable Exposure] is the new default mode. Maybe something was fixed in LC4500 api in the firmware 3 release. I would try setting it up using the GUI first in Variable Exposure.