Anim8or Community

Please login or register.

Login with username, password and session length
Advanced search  

News:

Ian Ross has just released a book on Anim8or. It's perect for a beginner and a good reference for experienced users. It contains detailed chapters on every aspect, with many examples. Get your own copy here: "Anim8or Tutorial Book"

Author Topic: Scanline render crashes  (Read 11557 times)

AlecJames

  • Full Member
  • ***
  • Posts: 240
    • View Profile
Scanline render crashes
« on: January 26, 2018, 05: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: 2124
    • View Profile
Re: Scanline render crashes
« Reply #1 on: January 26, 2018, 07:04:38 pm »

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: 240
    • View Profile
Re: Scanline render crashes
« Reply #2 on: January 27, 2018, 05: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: 2124
    • View Profile
Re: Scanline render crashes
« Reply #3 on: January 27, 2018, 10:45:31 am »

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: 240
    • View Profile
Re: Scanline render crashes
« Reply #4 on: January 28, 2018, 03: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: 2124
    • View Profile
Re: Scanline render crashes
« Reply #5 on: January 28, 2018, 09:01:08 pm »

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: 240
    • View Profile
Re: Scanline render crashes
« Reply #6 on: January 29, 2018, 04: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