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 12:49] – 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.1718801368.txt.gz · Last modified: 2024/06/19 12:49 by sgranger