Page 1 of 1
limit to number of instances?
Posted: Wed Oct 09, 2013 1:04 pm
by sdwhitton
Hi
I've made a decent tree, by scattering some leaves onto a few twigs, and then scattering these in turn onto boughs, and then have a trunk, all grouped together into a geometry group
when I then try and scatter all this bunch say 10 times, all GPU's fail - admittedly it is trying to render approx 7 million meshes, but of course the number of original triangles is relatively low...
is there an upper limit to the amount of instances you can get onto a GTX590 ?
Re: limit to number of instances?
Posted: Wed Oct 09, 2013 1:33 pm
by face_off
I vaguely recall their might be a polygon limit, which is easy to exceed when dealing with 7million polygon meshes.
Re: limit to number of instances?
Posted: Wed Oct 09, 2013 10:45 pm
by FooZe
Hi sdwhitton,
What does octane say for your used/available/total vram.
Do 8 trees work? 5 trees? 2 trees?
Thanks
Chris.
Re: limit to number of instances?
Posted: Thu Oct 10, 2013 10:00 am
by sdwhitton
Hi all
Yes, didn't realise that the 'number of instances' is a VRAM hit too, so yes 5 or so trees work
so, I've thined the number of branches, leaves etc
oops!
Re: limit to number of instances?
Posted: Thu Oct 10, 2013 9:30 pm
by FooZe
Usually there isn't much of a VRAM hit.
Say you have a 1mil triangle tree and then you instance that, only a minimal amount of information is needed to reproduce the tree in a new position/scale. (not another 1mil triangles). How much more VRAM gets used per tree?
EG: you have a 600,000 triangle mesh that takes 83.8MB for geometry, you scatter this 100,000 times and the geometry size only increases to 96.0MB
I would say that your best option is to create the whole tree and then instance from there (unless you have some crazy insane high poly tree that you cannot do without instancing). Render speeds drop considerably when you do things like have 600,000 instances of a simple plane (which may be the case of your leaves).
Or at least turn the twigs with leaves on them into geometry (rather than each leaf instanced).
Thanks
Chris.