Anim8or Community

Please login or register.

Login with username, password and session length
Advanced search  

News:

An update to Anim8or, v1.00b, is available with a few bug fixes. Get your copy HERE. See the "ReadMe" file for details.

Author Topic: Scanline render crashes  (Read 1635 times)

AlecJames

  • Full Member
  • ***
  • Posts: 160
    • View Profile
Scanline render crashes
« on: January 26, 2018, 10:47:21 pm »

Hi Steve,
Anim8or stops responding in a scanline render in the attached.

OpenGL Vendor:   Intel
OpenGL Renderer: Intel(R) HD Graphics 4600
OpenGL Version:  4.2.0 - Build 10.18.10.3412
OS Version:      Windows 7 Service Pack 1 (6.1) build 7601 (64 bit)

thanks for all your hard work
Alec
Logged

Steve

  • Administrator
  • Hero Member
  • *****
  • Posts: 1660
    • View Profile
Re: Scanline render crashes
« Reply #1 on: January 27, 2018, 12:04:38 am »

This is a complex scene - Anim8or is simply running out of memory. The ray tracer uses less storage and works for this project.
Logged

AlecJames

  • Full Member
  • ***
  • Posts: 160
    • View Profile
Re: Scanline render crashes
« Reply #2 on: January 27, 2018, 10:27:49 am »

Thanks Steve.

It there anyway to know when a scene is nearing the memory limit for a render?
Logged

Steve

  • Administrator
  • Hero Member
  • *****
  • Posts: 1660
    • View Profile
Re: Scanline render crashes
« Reply #3 on: January 27, 2018, 03:45:31 pm »

You can watch it's memory use in the Windows Task Manager. When it get's over 1.8 GB or so it will probably crash.
Logged

AlecJames

  • Full Member
  • ***
  • Posts: 160
    • View Profile
Re: Scanline render crashes
« Reply #4 on: January 28, 2018, 08:44:45 pm »

What uses most of the memory? Is it related mainly to the total number of faces?

 
Logged

Steve

  • Administrator
  • Hero Member
  • *****
  • Posts: 1660
    • View Profile
Re: Scanline render crashes
« Reply #5 on: January 29, 2018, 02:01:08 am »

Yes, the scanline renderer splits all polygons into triangles and  builds a giant table of them. Then as the render advances and reaches a triangle, all of its edges' positions, slopes, texture coordinates, normals, and their derivatives, are added to the edge-table for rendering, which is advanced line-by-line during the render. There is a very large number of triangles in all those flowers in your scene, and the tables simply get too big.

The ray tracer uses less memory because it doesn't need the edge table with all of it's derivatives, etc. It just needs the triangles.
Logged

AlecJames

  • Full Member
  • ***
  • Posts: 160
    • View Profile
Re: Scanline render crashes
« Reply #6 on: January 29, 2018, 09:25:59 am »

This came about because I made one flower with a lot of detail and copied it. I don't need the detail because the flowers are so far from the camera you can't see it so I set about making a minimum face flower and copied that instead. I added the new flower (and many more) to my scene and the memory used during render is 500MB ish, well within now :)
Logged