microsoft / RoomAliveToolkit

Other
714 stars 191 forks source link

Object Reference #70

Closed Vahid1164 closed 6 years ago

Vahid1164 commented 6 years ago

Hi,

The program stops at line 168 when I am running the sample. The error is:

Object reference not set to an instance of an object.

Would you kindly help?

Thanks!

thundercarrot commented 6 years ago

Sorry, could you give a little bit more information? i.e. which file?

Please note that the sample expects a command line argument (the config file created in the calibration process).

Vahid1164 commented 6 years ago

Hi Andy:

Thanks so much for your reply.

I did pass the config file location in the sample settings. The program passes the source acquisition part.

Here's a screenshot of what I can see:

screenshot

Thanks for your advice. Best

thundercarrot commented 6 years ago

If you inspect the config file in a text editor, does everything look reasonable in the projector section? My hunch is that calibration did not complete successfully.

Vahid1164 commented 6 years ago

Thanks, Andy!

Well, as the logs suggest, everything goes well in the calibration and solving processes. The projectors and cameras are well discovered by the toolkit as well.

I have 3 projectors connected to one computer and surrounded through an MSI Geforce graphics card. When creating a config file through CalibrateEnsemble, I select "1" for projectors (as they are all connected to one computer) and "3" for cameras (as there are three cameras connected to three different computers connected through a switch).

Here's my config file: Config.docx

Thanks for taking the time attend to this issue, Andy! I really appreciate it.

thundercarrot commented 6 years ago

Hmm there's no pose or calibration information for the projector in that config file. I would try creating a fresh one and try running calibration again. If you use the same camera and projector names you won't need to run Acquire again. If that doesn't work for you, zip up the directory and put it somewhere where I can download it and I will take a look.

Vahid1164 commented 6 years ago

Andy,

Sorry for my slow message! I tried making a new calibration file, but it did not work.

Here' s the zipped folder: https://www.dropbox.com/s/myavsaf3hrrsxh2/Roomalive.zip?dl=0

Thanks for taking the time to troubleshoot this issue.

thundercarrot commented 6 years ago

Thanks for posting the files. I took a look. It seems you have three projectors, yet Windows is configured to treat them as a single logical display? If so, that will cause the calibration to fail.

Tweak your setup so that each projector is its own display in Windows, so that when the Gray codes are displayed, you only see them on a single projector.

Vahid1164 commented 6 years ago

Thank, Andy! It worked! I really appreciate your help and support. Best, Vahid

thundercarrot commented 6 years ago

Great to hear!