It seems to work fine when I don't set the matrix to identity after clumpbegin but just copy it, clumpend will pop it off anyway. In VP the hierarchy is entirely flattened so it does not really matter as long as it comes out right in the end.
Something that I'm still wondering about is the joint transform matrix, how is it used exactly? VP right now does not make a difference between the joint transform commands and the other transform commands. The model mount1.rwx in the object path of VP-Build seems to be using identityjoint to reset a scale applied with the normal transform command. If I just ignore the identityjoint command the avatars will render correctly, mount1.rwx however will be rendered with a factor 10 scale.
Mount1.rwx looks like this:
Code: Select all
transform 10.000000 0.000000 0.000000 0.000000 0.000000 10.000000 0.000000 0.000000 0.000000 0.000000 10.000000 0.000000 0.000000 0.000000 0.000000 1.000000
color 0.000000 0.000000 0.000000
surface 0.000000 0.000000 0.000000
<lots of vertices here>
color 0.843750 0.578125 0.562500
surface 0.250000 0.700000 0.180000
<los of triangles here, no quads or other polygons>
identityjoint used like identity:
The blue wall is what used to be the blue mountains in the background, I have not found any other models affected by this.