0

I am trying to render my scene (F12) and after two minutes I get the error shown below.

enter image description here

However, when I render the preview, it seems to have no problem.

enter image description here

How can I fix this problem?

Using Blender 2.78c + Win10
Render Settings

enter image description here

Let me know if any more information is needed. I'm still trying to get the hang of blender

The Blender file and normal map

Dan
  • 343
  • 1
  • 2
  • 17
  • You might have run out of memory on your GPU. Try switched to CPU and see if it renders at all. If it does render you need more ram on your GPU. – icYou520 Mar 20 '17 at 20:59
  • @icYou520 Is there a particular reason it would render the preview on the gpu but not the final image? – Dan Mar 20 '17 at 21:00
  • The preview is just a quick view it doesn't take in to account all the calculations needed for your scene. When you do a final render that's when ALL the math is calculated, taking up more memory. Your preview is set to 32 and your final render is set to 200. – icYou520 Mar 20 '17 at 21:02
  • It looks like your memory peaked a little over 4GB. So if you only have 4GB of ram on your GPU thats why it would give you the error. This usually happens to me when I use a lot of hi res textures. But it could be a number of things. – icYou520 Mar 20 '17 at 21:03
  • @icYou520 So it turns out that it did eventually render using CPU but I am a little confused to as why my GPU was using all 4GB to render what appears to be a relatively simple scene. Thanks – Dan Mar 20 '17 at 21:10
  • There are too many variables for me to guess without looking at your file. But things add up quickly. This might help explain a little. http://blender.stackexchange.com/questions/27690/why-does-blender-use-so-much-memory-for-large-textures – icYou520 Mar 20 '17 at 21:13
  • read: http://blender.stackexchange.com/questions/61508/cycles-gpu-cuda-out-of-memory-how-to-identify-the-problem-objects –  Mar 20 '17 at 21:41
  • To understand the difference between the final render and preview: http://blender.stackexchange.com/questions/2728/what-are-the-technical-differences-between-f12-render-and-viewport-preview –  Mar 20 '17 at 21:43
  • What you omitted in your question is any hint of the complexity of the scene. Large textures, high values on the subsurf modifier, subsurface scattering (or any kind of scattering), and a whole bunch of variables can easily push your scene beyond your compute capability. For a better anwer please upload your file. –  Mar 20 '17 at 23:25
  • @cegaton I apologise. I added the blend file – Dan Mar 21 '17 at 07:36

2 Answers2

4

The difference and reason why it renders in previw and not in render is this setting:

enter image description here

In render the surface gets divided a lot more, so the geometry takes a lot of VRAM. Your scene takes 4.2 GB of it in render.

Also many other modifiers have separate settings for viewport/render, there may be objects hidden from preview etc.

Try to lower the quality till it fits in memory, or render on CPU or borrow/buy better GPU.

Jaroslav Jerryno Novotny
  • 51,077
  • 7
  • 129
  • 218
  • 1
    Thank you for your help. Just turning max subdivisions down to 4 fixed the problem – Dan Mar 21 '17 at 17:22
1

You don't have enough memory on your GPU. "CUDA Error: Out of Memory".

Try decreasing the number of vertex and/or lower the complexity of the scene.

EDIT again Can you make the .blend File downloadable? Also, take a look at this post: Cycles / CUDA Error: Out of Memory

It may help you.

Fabrizio
  • 728
  • 10
  • 25