Rendering Colored Texture, but the result is a gray texture
You need to add some light to the scene: https://youtu.be/FdbnzfjoOJU ; your render is just a dark room right now.
If you specifically need the same image as in the viewport, you to go to View &gt; Viewport Render Image