3D viewer setup