mvrdevelopment / spec

DIN SPEC 15800 General Device Type Format (GDTF) and My Virtual Rig (MVR) File Format description DIN SPEC 15801
67 stars 15 forks source link

Review Primitive Types (GDTF 1.0 Meshes) #231

Open danielmuellerma opened 3 weeks ago

danielmuellerma commented 3 weeks ago

Would it make sense to clean up the Primitive Types? Suggestion: Remove the 1.0 Primitive Types. The library should handle the conversion of the mesh dimensions regarding the GDTF file version.

Verschwiegener commented 3 weeks ago

Is there any info on how this conversion should look like?

petrvanekrobe commented 2 weeks ago

The difference was that in 1.0, the base model's origin point was supposed to be the Z height center of the model. In 1.1 and up, the origin point is supposed to be on the bottom (when standing on a floor) plate of base. The 1.1 origin point is much more useful, as it allows snapping to attach clamps, omega brackets and so on. To accommodate for legs, LegHeight has been added.

So for files with default primitive type models, the difference is the half of the height of the primitive defined base (120 is height, 60 is half height).

1.1 base on the left, 1.0 base on the right.

image