[3D viewer] add camera code

add camera code