visual3d:documentation:partners:xsens:xsens_prop
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
visual3d:documentation:partners:xsens:xsens_prop [2024/06/19 13:58] – created sgranger | visual3d:documentation:partners:xsens:xsens_prop [2024/07/12 13:29] (current) – removed sgranger | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Introduction ====== | ||
- | |||
- | \\ | ||
- | Visual3Dv2020.## | ||
- | \\ | ||
- | You can however choose to load a graphics object or adjust the location of the prop segment. **This wiki page will explain the steps in the pipeline so that you can modify the script for your own data.**\\ | ||
- | |||
- | |||
- | ===== Sample Data ===== | ||
- | |||
- | **[[https:// | ||
- | |||
- | - Save the sword.obj file in your [[Visual3D: | ||
- | - Open the MVNX file: | ||
- | - File -> Open | ||
- | - Browse for MVNX file | ||
- | - Notice all the information for the prop signal is loaded and the segment coordinate system is displayed in the 3D viewer | ||
- | - Run the pipeline: | ||
- | - Pipeline -> Workshop | ||
- | - Open Pipeline | ||
- | - Browse for Sword.v3s | ||
- | - Execute Pipeline | ||
- | |||
- | **The pipeline will:** | ||
- | |||
- | * Adjust the position of the prop so that it is fixed to the center of mass of the hand | ||
- | * Load the sword graphic object | ||
- | * Color the sword red | ||
- | |||
- | ===== Segment Properties ===== | ||
- | |||
- | The graphics object and kinetic segment properties can be defined using the Segment Properties command. In this example, the sword graphic object is being associated with the prop: | ||
- | |||
- | < | ||
- | Set_Segment_Properties | ||
- | / | ||
- | / | ||
- | ! / | ||
- | ! /MASS= | ||
- | ! / | ||
- | ! / | ||
- | ! / | ||
- | ! / | ||
- | ! / | ||
- | ! / | ||
- | ! / | ||
- | ! / | ||
- | / | ||
- | ! / | ||
- | ! / | ||
- | ! / | ||
- | ! / | ||
- | / | ||
- | / | ||
- | / | ||
- | ! / | ||
- | ! / | ||
- | ! / | ||
- | ; | ||
- | </ | ||
- | |||
- | ==== Graphics Object ==== | ||
- | |||
- | In Visual3D graphics objects are just for visual affect and can be adjusted as needed. [[Visual3D: | ||
- | |||
- | ==== Kinetic Properties ==== | ||
- | |||
- | Set the segment to kinetic (/ | ||
- | |||
- | ===== Adjusted Position ===== | ||
- | |||
- | **A.** By default, Visual3D uses the position data from the MVNX file. In this example, you will notice that the hand and the sword are close at Frame 1.\\ | ||
- | **B.** However, at the end of the file there is an offset between the the sword and the hand segment.\\ | ||
- | **C.** By overwriting the sword position with the hand center of gravity signal, the sword position is then moved to the hand, which may be a more realistic location since the prop is in the person' | ||
- | |||
- | |||
- | | __**A. Frame 1:**__\\ \\ {{Xsens_PropPos_Frame1.png}} | ||
- | |||
- | The position data for the prop is stored in BODY:: | ||
- | |||
- | < | ||
- | Evaluate_Expression | ||
- | / | ||
- | ! / | ||
- | ! / | ||
- | ! / | ||
- | / | ||
- | / | ||
- | / | ||
- | ! / | ||
- | ; | ||
- | </ | ||
- | |||
- | ===== Adjust Graphics Object Color within Visual3D ===== | ||
- | |||
- | This step would be done just for graphics. Typically an OBJ file has a corresponding MTL file which contains the color information. However, you can also add color to a segment graphic in Visual3D using the [[Visual3D: | ||
- | |||
- | < | ||
- | Map_Object_Color_to_Signal_Value | ||
- | / | ||
- | / | ||
- | / | ||
- | / | ||
- | ! / | ||
- | / | ||
- | / | ||
- | / | ||
- | ! / | ||
- | / | ||
- | / | ||
- | / | ||
- | ! / | ||
- | ! / | ||
- | ! / | ||
- | ; | ||
- | </ | ||
- | |||
- | |||
visual3d/documentation/partners/xsens/xsens_prop.1718805531.txt.gz · Last modified: 2024/06/19 13:58 by sgranger