Search Home Members Contacts
About Us
Products
Downloads
Community
Support
Bug #489: TVMiniMesh - .setMatrix and .setMatrixArray broken
Product:
TV3D SDK 6.5
Language:
Not Specified
Current State:
Closed
Resolution:
Fixed
Created On:
October 15th, 2005
Last Modified:
October 19th, 2005
Reported By:
Hypnotron
.setMatrix works fine on the first element in the mini-mesh, but trying to use it to set the matrix for a sub-mesh index 0 results in all the sub-meshes in the TVMiniMesh having the exact same location.

.setMatrixArray() is broken too.

If you need more info let me know.

Comments:

Posted by Hypnotron on October 17th, 2005 at 4:12 PM
Sylvain, please check out this updated test code:

(Link)

In that, with the conditional compile option #CONST USE_SET_GEOMETRY, the positions are fixed. But why? The _only_ change is the second call to .CreateMeshBuilder followed by .SetGeometry. Other than that though, the minimeshes are still created from that same m_RecycledCrate mesh.

This is a mystery to me. Hopefully this extra info can help us solve this.
Posted by SylvainTV on October 19th, 2005 at 3:09 PM
OK The problem with SetMatrix/SetMatrixArray was a problem of scaling.
The engine automatically scales the mesh when you call minimesh CreateFromMesh. Added a boolean to prevent this from happening ( bPrecomputeScale you will have toput to false ).