Viewport render gives the desired result but the actual render shows a black screen The blender file
The viewport render is correct but the actual rendered image is a black screen.
This happened to me before and i even posted a question regarding that and the problem was a hidden object. But this time I made sure there was no hidden object in my project but it still doesn't work.
I tried the to unhide all the objects and nothing came out which could disrupt the camera view.
Your help is much appreciated. Thank you
The problem is really simple. Actually you have gone to the compositor and deleted the render output which will stop anything from being rendered. Either add these two nodes back in the compositor:
Or either just uncheck the compositing and sequencer boxes so they don't affect your render:
After doing this the render works at my end.