Page 1 of 1

Working with Native Instances Attributes

PostPosted: Mon Dec 19, 2022 3:20 pm
by Terryvfx
Hi, are there any work-arounds to work with Native Instances Attributes in Solaris right now?

I know my way around standard Octane but right now I'm trying to figure out a way to load at least displayColor and ID attribute when Using Native Instances.

Re: Working with Native Instances Attributes

PostPosted: Tue Dec 20, 2022 4:01 am
by BK
Terryvfx wrote:Hi, are there any work-arounds to work with Native Instances Attributes in Solaris right now?

I know my way around standard Octane but right now I'm trying to figure out a way to load at least displayColor and ID attribute when Using Native Instances.


Hi Terry,

Thanks for the post. Have you tried SOP import?
The Cd from SOP is automatically converted as displayColor in OctaneSolaris.

If it does not work then please share a sample file to investigate.


cheers

Re: Working with Native Instances Attributes

PostPosted: Tue Dec 20, 2022 5:47 pm
by Terryvfx
Hi BK, thanks for the reply, the problem is not converting the attribute, that works but only (at least in my testing) if you are importing a solid "baked" mesh, if you are dealing with the Native Instances that SOP import creates when loading packed geometry then Octane is unable to load displayColor or any other attribute, I should stress how important this.

I created an hip file illustrating this, in the file if you turn on the Unpack node you will see displayColor load just fine since Sop import can't create instances from this but if you leave it off then Sop import create the Native Instances and the problem occurs. I also made a branch illustrating how karma does this no matter what.

PD: I stashed everything so even if you get a couple of errors it should work fine.
Octane Solaris Forum Native Instances 001.zip
(245.5 KiB) Downloaded 134 times

Re: Working with Native Instances Attributes

PostPosted: Wed Dec 21, 2022 4:58 am
by BK
Hi Terry,

Thank you so much for the scene. It is very helpful.
We are currently investigating if we can implement the same workflow as our main plugin!

cheers

Re: Working with Native Instances Attributes

PostPosted: Wed Dec 21, 2022 6:08 pm
by Terryvfx
Thanks for the reply BK, I think having support for attributes on instances at the core level is better for both versions because in the main plugin reading a Cd attribute on an instance is sort of a trick anyway.

Re: Working with Native Instances Attributes

PostPosted: Wed Jan 25, 2023 6:07 pm
by joncorv
Thanks Terry for putting together that scene. I'm in agreement with you that Otoy developing primvar support will make the renderer that much better. A single attribute on the primitive (as opposed to geometry point level attributes) should be pretty lightning fast to calculate as well!