add transfer function support
fix camera motion, remove dead code