Strange loading times.

Maxon Cinema 4D (Export script developed by abstrax, Integrated Plugin developed by aoktar)

Moderators: ChrisHekman, aoktar

Post Reply
zackyd
Licensed Customer
Posts: 64
Joined: Sat May 17, 2014 7:56 pm

Hello,
I am importing files that are not unusually large inside of C4D, but they are taking huge amounts of time to load into the Octane plugin.
Some of them wont even load, and will max out my ram (32 GB) while "updating" the plugin leading to crashes.

The file I have attached that will load but it will take about 8 minutes to load. https://we.tl/B7pVls0dnb (1.5million poly)
The file is .ABC but i have the same issue loading other filetypes (obj, FBX, etc..)

LOG:
Scene created in plugin version -1
Export materials time= 8.55 ms
Collect objects time= 8.34 ms
Mesh creation time = 885.253 ms.
Triangles:0 Disp.triangles:0 Hairs:0 Meshes:0
VRAM used/free/max:349Mb/5.153Gb/6Gb
Out-of-core used:0Kb total used RAM:3.607Gb
Total export Time = 941.437 ms

Octane Viewport says it is using 1.15GB of ram.

My question is - what makes this file unique? I can't quite figure it out. I have loaded other files that have many more millions of polygons then this one and have never run into issues before.. Hopefully you all can spot something I can not. Thanks!
4x GTX 780 6gb // 32gb ram // 1600w
User avatar
abstrax
OctaneRender Team
Posts: 5510
Joined: Tue May 18, 2010 11:01 am
Location: Auckland, New Zealand

The problem is the way how the geometry is arranged. It looks really cool, but there are various areas, where there is an insane amount of very elongated triangles, especially at the marked place:
bonsai_marked.png
This is this area zoomed in;
bonsai_zoom_cr.png
When this geometry gets compiled Octane has trouble finding a sensible subdivision scheme and you probably run out of memory causing the system to start swapping:
memory_usage.png
I don't think there is anything we can do in the near term, but I will add it to our test cases for when we are going to overhaul the geometry pipeline.
In theory there is no difference between theory and practice. In practice there is. - Yogi Berra
zackyd
Licensed Customer
Posts: 64
Joined: Sat May 17, 2014 7:56 pm

Thanks for the analysis!
So Octane does an adaptive subdivision/point optimization of sorts upon upload?
4x GTX 780 6gb // 32gb ram // 1600w
Post Reply

Return to “Maxon Cinema 4D”