Improved 3D rendering

Fixed: context menu error when compiling