Instance Geo on particles

Houdini Integrated Plugin

Moderator: juanjgon

derekhanz
Licensed Customer
Posts: 30
Joined: Tue Apr 05, 2016 2:46 am

I'm using the latest build of Octane for Houdini.

I'm trying to render massive amounts of particles as custom geo.

By packing and instancing the geo in a copytopoints node it should be quick to load and render, like Octane Scatter in C4D

The load time takes far too long. What am I doing incorrectly?


Thanks
derekhanz
Licensed Customer
Posts: 30
Joined: Tue Apr 05, 2016 2:46 am

Followed the manual online and figured it out.

Attribute create, called it Instance, made it a string and pointed to the geo.

I thought that the latest version of Octane would do this automatically using copytopoint node, without having to use an attribute create?

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

Hi,

Nope, sorry. The Copy SOP is only understood as an instancing tool by Mantra at render time. From the scene point of view, at extraction time, this node is seen by Octane like a node that builds physical copies of the object, not instances.

As you have found, you need to use the "instance" point attribute or the Instance OBJ node to render real Octane instances of your master object.

Thanks,
-Juanjo
hellochristhompson
Licensed Customer
Posts: 4
Joined: Mon Dec 12, 2016 12:57 am

Thanks, juanjgon. This info was super useful.

I'm trying to push it a little further and color each instance based upon the Cd point attribute. I know this wasn't available in the past but I'm hoping this is now possible? Is this wishful thinking?

Having the particle "render as sphere" option is super useful but it'd be great if we could use user defined geo while including the Color/Alpha attribute.
User avatar
juanjgon
Octane Plugin Developer
Posts: 8867
Joined: Tue Jan 19, 2010 12:01 pm
Location: Spain

Nope, sorry. This is not possible yet. You have a random color node to configure random shading parameters in the instances, but the support of the Cd attribute is not possible. I hope to see this feature soon in the Octane core, once we have the OSL feature in place to write custom shaders to retrieve the custom attributes at render time.

Thanks,
-Juanjo
TravellerInTime88
Licensed Customer
Posts: 4
Joined: Wed Dec 09, 2015 9:37 pm

Hi!

I know this is an old post, but I've been trying to replicate the instancing method as described by both @derekhanz and @juanjgon, but to no avail.. I have created an attribute called "instance", set it to string and then on the string parameter, I reference my object as such: "../objtoinstanciate_1". When I hit the IPR button though, I get an error stating that the instance node is referencing a not available object. Clearly I am doing something wrong in the declaration, but what? What am I missing?

Also, is this method quicker than the copy to points node? Because right now with copy to points, rendering in octane per frame is about a minute, and the loading of the scene is almost the same! :shock:

Thank you very much for your time,
G.
User avatar
juanjgon
Octane Plugin Developer
Posts: 8867
Joined: Tue Jan 19, 2010 12:01 pm
Location: Spain

Hi,

Can you please try with the absolute path or with "../../objtoinstanciate_1"? In any case, probably should be easy support also the "../objtoinstanciate_1" path types.

About your second question, nope, it is not the same. Currently, the copy sop final geo is not extracted by the Octane plugin as instances. The full final geo is expanded without instancing, so the extraction and render time can be indeed slower in complex objects. You need to use the instance attribute or the Instance OBJ node to instance objects.

Thanks,
-Juanjo
TravellerInTime88
Licensed Customer
Posts: 4
Joined: Wed Dec 09, 2015 9:37 pm

Yeah, I actually figured it out the other day - thank you! I also did some tests with the instance and indeed - it is actually quite faster this way, you are right!

And thanks for taking the time to reply,
G.
efxlab
Licensed Customer
Posts: 54
Joined: Thu May 31, 2018 5:23 pm

Is it possible now with 2020 to retrieve attribute from packed instance in houdini ?
User avatar
juanjgon
Octane Plugin Developer
Posts: 8867
Joined: Tue Jan 19, 2010 12:01 pm
Location: Spain

efxlab wrote:Is it possible now with 2020 to retrieve attribute from packed instance in houdini ?
Octane doesn't support user attributes in the instances yet (Octane 2020 supports them in the meshes, curves, and particles), but in any case, the packed instances are not extracted as Octane instances, they are expanded to the full geo, so well, if they have any embedded attribute, it should be available for Octane.

Thanks,
-Juanjo
Post Reply

Return to “Houdini”