Building and running C++ plugins
 
 
 

The project settings in the samples *.vcproj contain the required configuration options for Visual Studio development.

How to set up Visual Studio

  1. Create a new project. Select a DLL project template.
  2. Add any sample project to the newly created workspace.
  3. Open the project settings for the workspace.
  4. Configure the new project to correspond exactly to the sample project settings.
  5. Delete the sample project from the workspace.

C++ plugins are made by compiling code into Dynamically Linked Libraries (DLLs) which you put in [MotionBuilder]\bin\plugins from where they are detected and loaded at startup.

You can also define additional custom plugin paths via Settings > Preferences > SDK. You could define network directories, for example, enabling a group of users to share a centralized repository of plugins on a file server.

Code samples are in [MotionBuilder]\OpenRealitySDK\samples. In each sub-directory there are detailed descriptions of each plug-in, indluding how to test them.