Anim8or Community

General Category => Anim8or v1.0 Discussion Forum => Topic started by: AlecJames on January 26, 2018, 05:47:21 pm

Title: Scanline render crashes
Post by: AlecJames 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
Title: Re: Scanline render crashes
Post by: Steve 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.
Title: Re: Scanline render crashes
Post by: AlecJames 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?
Title: Re: Scanline render crashes
Post by: Steve 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.
Title: Re: Scanline render crashes
Post by: AlecJames on January 28, 2018, 03:44:45 pm
What uses most of the memory? Is it related mainly to the total number of faces?

 
Title: Re: Scanline render crashes
Post by: Steve 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.
Title: Re: Scanline render crashes
Post by: AlecJames 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 :)