A tutorial of how to weave a thread and a cloth material