Reply To: Can you config CalibrateProjector to start with the capture tool already setup?

Home Forums AR Sandbox Forum Can you config CalibrateProjector to start with the capture tool already setup? Reply To: Can you config CalibrateProjector to start with the capture tool already setup?

#100744
Oliver Kreylos
Keymaster

There are two methods to achieve this.

The simpler method is to start the CalibrateProjector utility as usual, and bind all desired tools manually as usual. Once all tools are bound, open the application’s main menu, and select “Save Input Graph…” from the “Vrui System”->”Devices” sub-menu. Select a file name and location from the file selection menu that pops up (to use the keyboard to type, press “F1” once to enter text mode, and then “F1” again to leave text mode when done) or leave the default name and location, and select “OK.”

The saved input graph file, which has the same general format as any Vrui configuration file, can be loaded back into an application either manually via the “Load Input Graph…” entry in the same sub-menu, or via the command line:

$ CalibrateProjector [usual arguments] -loadInputGraph <input graph file name>

This method works for all Vrui applications, including RawKinectViewer, KinectViewer, and SARndbox itself.

The other method is to directly edit the Vrui.cfg configuration file, or create an application-specific patch configuration file (see the Vrui documentation). Vrui.cfg contains a section called “DefaultTools,” which in turn contains sub-sections for every tool that is to be bound at application start-up. The format for the tool binding sections is as follows:

section SomeUniqueName
  toolClass CaptureTool
  bindings ((Mouse, 1, 2))
endsection

This will bind CalibrateProjector’s capture tool to buttons 1 and 2 on the “Mouse” device (which includes keyboard keys and mouse buttons), in that order.

Comments are closed.