This paper proposes a method of retrieving texture from images containing pattern used for one shot 3D scanning system based on a grid pattern. Range scanners using projector-camera systems can be used for real-time 3D scanning with accurate results and at a low cost. However, these techniques cannot retrieve color information from the captured object since to obtain the best results, they require dark environments and the projection on the object to reconstruct dense and bright lines pattern masks most of the object textures. Therefore, we propose a technique of slightly modifying the input of a given 3D scanning system in order to have bright images with texture information and then retrieve the textures of the object using an inpainting method. The presented method adapts simple algorithms such as Canny filter and patches based inpainting in order to obtain a fully automatic method that does not require any user intervention.