microsoft / RoomAliveToolkit

Other
715 stars 191 forks source link

Beginner Question: How do I run the sample projects? #8

Open CedYF opened 9 years ago

CedYF commented 9 years ago

"Pass the path of your calibration .xml as a command line argument so that the sample can find it. "

I'm not sure how to pass the path as a command line argument. Can anyone clarify this sentence?

thundercarrot commented 9 years ago

If you are running the sample from Visual Studio, right click the project, go to Properties, Debug Tab. Type the full path to the .xml fil in the "command line arguments" edit box.

If you are running the sample from the command line, just add the path on the command line, e.g.: C:>ProjectionMappingSample C:\users\MyUsername\Desktop\calibration\calibration.xml"

laurenegts commented 9 years ago

Could you possibly provide more details or an example of how to do this?

thundercarrot commented 9 years ago

@legts I'm sorry, I'm not sure I can be any more specific. You might want to partner with someone who has a bit more experience working with Visual Studio, building and running applications etc.

Is there a particular thing you are stumbling on?

laurenegts commented 9 years ago

@thundercarrot My colleague and I figured it out after some wrangling with the code. Thanks for the quick response though!

tcboy88 commented 9 years ago

is there any plan for Unity plugin? like mentioned in the publication. thanks!

jsingh01 commented 8 years ago

@legts I'm having the same issue, how did you manage to get the sample projects to run? Thanks in advance

wolkeger commented 8 years ago

@jsingh01 Me 2. I have the same problem. I am an absolute beginner with Visual Studio. So, I do not understand how to change the properties. But I was reading the ProjectionmappingSample.cs.

Might it be possibe that changes in Line 24 to 27 are the key to directly add the xml path?

// load ensemble.xml string path = args[0]; string directory = Path.GetDirectoryName(path); ensemble = RoomAliveToolkit.ProjectorCameraEnsemble.FromFile(path);