Simplify 3ds matrix handling.