instances don't work in USD from Houdini to Maya, memory through the roof

Hi,

I have made some assets in Houdini that contain a large number of instanced foliage … pine needles on tree branches and garlands or full trees on some assets. I export these as USD scenes and load them in Maya and render with Vray 6.2.2 Everything renders correctly, but we’re hitting a memory ceiling with these assets, as it seems that none of the instances are being instanced but considered as unique geometry. So where one asse should be taking memory of under a 100 Mb, I get about 25 Gb or more depending on the asset. When we add a bunch of these assets to out layout scene, we hit memory limit and crashes our workstations. I tried to troubleshoot and see if I can get the instances to behave properly, but haven’t had any luck so far. Any help would be much appreciated, thanks!

are you bring those as .usd data? and load them into Maya usd? and if not how then? Using a proxy?

I load it as USD from file in maya

can you share a repro or something? also what version of Maya USD are you using? and M version?

yup for sure. Where can I share this with you? I prepared a houldin scene and USD export. It’s 60 Mb, so it won’t let me upload it here as an attachment

Could you send me the .usd as well? Either via DM or the contact form.

Use we transfer https://wetransfer.com/

@hsz and @hermit.crab I need emails to share the wetransfer uploads with you

you can send to yourself and post the link here

Lighter at Flux here, just adding software we are running

Maya: 2024.2
V-Ray: 6.20.02
MayaUsd: 0.25.0
Windows: 11​

I did a quick loading of the usd file + duplicating a bunch of them. My guess is that you are not using the instanceable to true. Im doing in BF because is just fast but you can see the difference in of having instance set to true or not and how much memory is using.
So you can see when I duplicate the files with instanceable set to true the memory does not change or barely. but with false is def will increase quite bit depending on the asset.

Look at

static memory and dynamic

​​

​

Thanks for the provided files. I managed to reproduce the issue in V-Ray 6 (USD Stages takes 2+ GB for static geometry), but it seems to be fixed in V-Ray 7 (takes ~100 MB static geometry). There’s a line in the release notes addressing a very similar issue (logged in our internal system as HOU-4116). I’ll talk to the product manager if we could pick it up for the next V-Ray 6 stable build.

EDIT: Just got some info from the devs: Sorry to say, the fix is not pickable for V-Ray 6, it was specifically implemented for V-Ray 7 only.

Hey @hsz the problem is with the initial USD file. The footprint of the initial geometry without any Bifrost instancing is high to begin with. The file I sent you is a strip down version and for me when I render the footprint was 11Gb. The original asset with a lot more different instancers on it clocked in at about 64 Gb and then we had other different assets in the same layout scene with also tens of Gb memory footprint, so you very quickly reach the bottom of the barrel in terms of RAM. I have tried to check as instanceable both the instancers and their prototype contents from the attribute editor for the specific prims, but it doesn’t make a difference. I think what @hermit.crab is saying is true if he managed to reproduce the issue, so the actual solution is to switch to Vray 7 in this case. We’re about to go ahead and do testing with Vray 7 and will let you know how that goes. Thank you both for the troubleshooting!

​I can confirm V-Ray 7.0 fixes this issue. Thank you for your help.

Left: 6.20.02 ( 43gb )
​Right: 7.10.00 ( 0.9gb )


​

I forgot to say that I was using Vray 7 not 6 and using USD 0.31 (latest)
With that said still making the assets instanceable to true will save you memory with thousand of assets.