User Tools

Site Tools


visual3d:documentation:modeling:segments:animation_surface_models

This is an old revision of the document!


here]]. refer to [[visual3d:documentation:modeling:segments:wavefront_obj_file_format|wavefront_obj_file_format]] for how to export for use in visual3d. [[http://en.wikipedia.org/wiki/wavefront_.obj_file|wikipedia documentation]] ===== position and orientation of the surface model ===== visual3d will import models that are stored in either the wavefront (obj) or vrml (wrl) formats visual3d treats all segments independently. this means that wireframe model files must contain polygons for only one segment. the position and orientation of the animation surface model is defined with respect to the segment coordinate system of the segment that the model is assigned to. in order to understand how to orient wireframe models to make them suitable for animation in visual3d, it is important to understand how the segment coordinate system is constructed for each segment. visual3d allows the segment coordinate systems to be modified after the segment has been created. step 1. the segment endpoints are calculated. as described in the visual3d documentation elsewhere, there are many ways to calculate the segment endpoint. the relevance to the calculation is that the markers that are used to define the segment endpoints also determine the frontal plane of the segment coordinate system. in this illustration the three red markers are used to calculate the blue segment endpoints wireframe1.gif\\ step 2. the z-axis is defined by the vector from the distal segment endpoint to the proximal segment endpoint. wireframe2.gif\\ step 3. the frontal plane (x-z) plane is defined by the markers. wireframe3.gif\\ step 4. the y-axis is project forward in the anterior posterior direction. wireframe4.gif\\ step 5. the x-axis is then calculated perpendicular to the y-z plane. wireframe5.gif\\ in order for a polygonal model to be displayed correctly in visual3d it must be oriented to align with the segment coordinate system. note that the model will be created for an ideal segment coordinate system because motion capture data on real subjects only approximates the ideal coordinate system. don’t be surprised if your polygonal models appear slightly askew. in the segment properties dialog in visual3d you can re-orient your polygonal model to make the animation look better without modifying the motion capture data. lastly visual3d will scale the polygonal model to the length of the segment (as determined by motion capture data and model definition) assuming that the polygonal model as a length of 1 in the z-direction. note that this means that your z-values will lie between z=-1 and z=0 for a segment that is constructed to lie from segment endpoint to segment endpoint. **warning!!** visual3d assumes 6 degree of freedom segments which means that joint properties are not defined. the point at which a segment rotates is therefore not necessarily about the segment endpoint. you may have to play with the origin of your wireframe model to make the segment look right in the animation. ===== example - transforming an obj file for a visual3d segment ===== the following is a very simple obj file that described the polygons for a cone. }}}}}}}}

visual3d/documentation/modeling/segments/animation_surface_models.1718801328.txt.gz · Last modified: 2024/06/19 12:48 by sgranger