-
- Downloads
Added NiGeometry::ApplyTransforms function to automatically zero out the...
Added NiGeometry::ApplyTransforms function to automatically zero out the transforms of a mesh and apply them to its vertices. Added NiGeometryData::Transform function to apply an arbitrary transform to all vertices and normals of a mesh (used by above). Added NiNode::PropagateTransform function to apply a NiNode's local transform to its children and then zero it out. Fixed NiTriShapeData to properly set numTriangles when SetTriangles is called. NiGeometry::BindSkin function now automatically propagates transforms of NiNodes between the root and the meshes and then applies those transforms to the vertices, making the NiSkinData overall transform unnecessary. Removed "set root to scene root" option as it is no longer necessary.
Showing
- include/obj/NiGeometry.h 13 additions, 1 deletioninclude/obj/NiGeometry.h
- include/obj/NiGeometryData.h 7 additions, 0 deletionsinclude/obj/NiGeometryData.h
- include/obj/NiNode.h 8 additions, 1 deletioninclude/obj/NiNode.h
- src/obj/NiGeometry.cpp 62 additions, 52 deletionssrc/obj/NiGeometry.cpp
- src/obj/NiGeometryData.cpp 12 additions, 7 deletionssrc/obj/NiGeometryData.cpp
- src/obj/NiNode.cpp 15 additions, 0 deletionssrc/obj/NiNode.cpp
- src/obj/NiTriShapeData.cpp 4 additions, 1 deletionsrc/obj/NiTriShapeData.cpp
Loading
Please register or sign in to comment