Instancing geometry from disk files at render time?

Forums: Instancing geometry from disk files at render time?
Houdini Integrated Plugin

Moderator: juanjgon

Instancing geometry from disk files at render time?

Postby vortexvfx » Thu Dec 08, 2022 4:25 am

vortexvfx Thu Dec 08, 2022 4:25 am
Hey,

Trying to work out if I can have Octane load geometry cached to disk files at render time, without needing to load the instances into Houdini.

I've got it working using a point wrangle to add per-point "instancefile" attribute (as opposed to "instancepath" to point to another Houdini OBJ node).
ie: s@instancefile = "C:/pathToFile/instanceGeo.obj";

...and that appears to work, but it also appears to go through a process of loading the obj temporarily into Houdini when the render is launched.

Is there a file format that can passed natively to Octane so that it can load the geometry straight from disk? If so, would I still use "instancefile" to pass it the path?

The reason I want to do this is for animated frame-sequences as instances - I really don't want to have it loading hundreds of different instances through Houdini each time if possible.
To that end, would it be possible to just pass an Alembic file as an instance, containing a complete animation, along with a time attribute to tell it which frame of the instance to render for each point?
GeForce RTX 3090 | i7 5960X | 128GB
Houdini | Windows 10
vortexvfx
Licensed Customer
Licensed Customer
 
Posts: 14
Joined: Mon Sep 07, 2020 7:51 pm

Re: Instancing geometry from disk files at render time?

Postby vortexvfx » Thu Dec 08, 2022 8:26 am

vortexvfx Thu Dec 08, 2022 8:26 am
Hmm, actually, it doesn't seem too bad just having it reference bgeo.sc files and letting Houdini handle loading the instances, provided I just leave it as raw path strings on points, and avoid letting Houdini load them into the scene as packed disk primitives.

Would still be nice to know if there's a way to pass paths to some kind of native geometry format though, skipping out the middleman is usually a good idea with heavy instancing...
GeForce RTX 3090 | i7 5960X | 128GB
Houdini | Windows 10
vortexvfx
Licensed Customer
Licensed Customer
 
Posts: 14
Joined: Mon Sep 07, 2020 7:51 pm

Re: Instancing geometry from disk files at render time?

Postby juanjgon » Thu Dec 08, 2022 10:37 am

juanjgon Thu Dec 08, 2022 10:37 am
Octane can load alembic files (and probably usd files soon) at the render time, like what happens now with the OpenVDB files, but this feature is not supported by the Houdini plugin yet. I want to work on it in this Octane 2022.x dev. cycle, so I hope to have good news about it soon.

Thanks,
-Juanjo
User avatar
juanjgon
Octane Plugin Developer
Octane Plugin Developer
 
Posts: 8867
Joined: Tue Jan 19, 2010 12:01 pm
Location: Spain

Re: Instancing geometry from disk files at render time?

Postby vortexvfx » Thu Dec 08, 2022 11:31 am

vortexvfx Thu Dec 08, 2022 11:31 am
Ah, thanks for the info Juanjo! Sounds promising. I think the way it works now is enough for my current project, but I'll certainly stay tuned for developments.

For my part, I tend to prefer doing everything by Wrangle, so I wouldn't need much of an interface - just to be able to slap an alembic path string and a instance anim time attribute on the points, and have Octane interpret them correctly.


On the matter of alembic instances... I presume the memory/speed benefits of instance-reuse would only apply when significant numbers of points were sharing the same exact time/frame as each other. I'm guessing each frame of an alembic would need to be "unpacked" into a separate copy of the geometry at render time... sound about right?
GeForce RTX 3090 | i7 5960X | 128GB
Houdini | Windows 10
vortexvfx
Licensed Customer
Licensed Customer
 
Posts: 14
Joined: Mon Sep 07, 2020 7:51 pm

Re: Instancing geometry from disk files at render time?

Postby juanjgon » Sun Dec 18, 2022 7:18 pm

juanjgon Sun Dec 18, 2022 7:18 pm
Yes, while instancing all the instances must share the same base mesh, so if the mesh is animated, a copy of each frame must be stored in the memory.

-Juanjo
User avatar
juanjgon
Octane Plugin Developer
Octane Plugin Developer
 
Posts: 8867
Joined: Tue Jan 19, 2010 12:01 pm
Location: Spain

Return to Houdini


Who is online

Users browsing this forum: No registered users and 11 guests

Fri Apr 19, 2024 1:31 am [ UTC ]