This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

One Frame Delay (PC Camera = Lightcrafter4500)

Hello

When we use APIs to capture the synchronized projection Image, PC always captures one frame delay. Would you please check out the following sequence wether we proceed it correctly?

1) Write DLP parameters
①LCR__SetLedEnables
SeqCtrl=false, Red=0, Green=0, Blue=0
②LCR_AddToPatLut
TrigType=1, PatNum=0, BitDepth=8, LEDSelect=6, InvertPat=false, InsertBlack=true, BufSwap=false, trigOutPrev=false 
③LCR_SetPatternDisplayMode
external=true
④LCR_SetPatternConfig
numLutEntries=1, repeat=true, numPatsForTrigOut2=1, numSplash=1
⑤LCR_SetExposure_FramePeriod
exposurePeriod=16000, framePeriod=16667
⑥LCR_SetPatternTriggerMode
IntExt_or_Vsync=0
⑦LCR_SendPatLut
⑧LCR_ValidateStatus

2) Power up Camera

3) Start Pattern Sequence using "LCR_PatternDisplay"

4) Capture the Image

5) Stop Pattern Sequence using "LCR_PatternDisplay"

6) Repeat 1) to 5)

 

Regards,

Takeshi 

  • I made mistake. Please look at the following sequence.
    1) Write DLP parameters
    ①LCR__SetLedEnables
    SeqCtrl=false, Red=0, Green=0, Blue=0
    ②LCR_AddToPatLut
    TrigType=1, PatNum=0, BitDepth=8, LEDSelect=6, InvertPat=false, InsertBlack=true, BufSwap=false, trigOutPrev=false
    ③LCR_SetPatternDisplayMode
    external=true
    ④LCR_SetPatternConfig
    numLutEntries=1, repeat=true, numPatsForTrigOut2=1, numSplash=1
    ⑤LCR_SetExposure_FramePeriod
    exposurePeriod=16000, framePeriod=16667
    ⑥LCR_SetPatternTriggerMode
    IntExt_or_Vsync=0
    ⑦LCR_SendPatLut
    ⑧LCR_ValidateStatus

    2) Power up Camera
    3) Project DLP image
    ①make projection image by OpneGL
    ②Swithc Double Buffers by SwapBuffers (Vsync)
    ③Start Pattern Sequence by LCR_PatternDisplay
    ④ Repeat ①→② entries
    4) Camera captures Images

    Regards,
    Takeshi
  • Hello Takeshi-san,

    LCR_SetPatternConfig - the numLutEntries are 0 index based, so for one entry it must be set to '0' same thing applies for numPatsForTrigOut2.

    Regards,
    Sanjeev