c++ version towards face rendering