Page 1 of 2

POP multiple Instances

Posted: Tue Aug 08, 2017 1:19 am
by derekhanz
Hello,

I have a particle simulation that needs 10 different instances randomly applied to the particles.

How do you apply multiple geo and materials to instances?

thank you

R

Re: POP multiple Instances

Posted: Tue Aug 08, 2017 8:24 am
by juanjgon
Hi,

You can use the "instance" point attribute to set the master object to be used at each point. You have more details in the docs:
https://docs.otoy.com/Houdini_Plugin_Ma ... s%7C_____6

Thanks,
-Juanjo

Re: POP multiple Instances

Posted: Tue Aug 08, 2017 8:16 pm
by derekhanz
Yes but how do I randomize materials on these instanced points?

thanks

Re: POP multiple Instances

Posted: Wed Aug 09, 2017 8:55 am
by juanjgon
I'm afraid that currently this is not possible in Octane. The instances materials can't be overridden. You are going to need to have several copies of the same object, each one with one material, and instance them randomly.

At shading level, you have the Random Color VOP, that computes a random value for each instance. Perhaps with this node, you could build a shader with several materials mixed using the material mixer node. This node can also be used with the gradient node and others to render shader variations on each instance.

Hope this helps,
-Juanjo

Re: POP multiple Instances

Posted: Thu Aug 10, 2017 6:16 pm
by doca
juanjgon wrote:Hi,

You can use the "instance" point attribute to set the master object to be used at each point. You have more details in the docs:
https://docs.otoy.com/Houdini_Plugin_Ma ... s%7C_____6

Thanks,
-Juanjo

Maybe little oftopic question: can I export instanced geometry (on particles, stamped... whatever) in ORBX and render them in standalone? Of course, with animation, not only single frame.
If yes, is it exported as baked geometry or like Octane instances/scatter?

Re: POP multiple Instances

Posted: Fri Aug 11, 2017 8:49 am
by juanjgon
Yes, you can export the animated scene to an .orbx file. You only need to enable the export options in the ROP node and render the scene. The instances will be exported as Octane instances, storing in the .orbx file only the master object and the Octane scatter information.

Thanks,
-Juanjo

Re: POP multiple Instances

Posted: Wed Aug 16, 2017 11:44 pm
by doca
juanjgon wrote:Yes, you can export the animated scene to an .orbx file. You only need to enable the export options in the ROP node and render the scene. The instances will be exported as Octane instances, storing in the .orbx file only the master object and the Octane scatter information.

Thanks,
-Juanjo
Thank you Juanjo,
I managed somehow to export it in orbx and to get scatter nodes in standalone, but other problem occurred, and the problem is that scatter is exported in only one frame, it is static. Everything else has animation, but scatter no. Instances are not moving. Am I doing something wrong or I understand you wrong about scatter animation? I need to preserve point animation over what I do scattering.

Re: POP multiple Instances

Posted: Thu Aug 17, 2017 8:49 am
by juanjgon
Yes, I see. Probably this is a limitation in the scene export functions perhaps related to the fact that the number of particles can be not the same in all the frames, so the object animation at point level is not possible. In this case, the only solution is to export a .orbx file for each frame, but I'm not sure if this is something useful in your workflow.

Thanks,
-Juanjo

Re: POP multiple Instances

Posted: Thu Aug 17, 2017 1:24 pm
by doca
juanjgon wrote:Yes, I see. Probably this is a limitation in the scene export functions perhaps related to the fact that the number of particles can be not the same in all the frames, so the object animation at point level is not possible. In this case, the only solution is to export a .orbx file for each frame, but I'm not sure if this is something useful in your workflow.

Thanks,
-Juanjo
Damn, but is it possible somehow to export/render sequence of csv files (as we have only csv)?

Re: POP multiple Instances

Posted: Fri Aug 18, 2017 11:06 am
by juanjgon
Hmm, I don't think so. Perhaps writing a script in Houdini to export this kind of files from Houdini could be possible, but not directly from the plugin.

Sorry for the question, but why do you need to export the scenes to Standalone, to render them in a farm or in the cloud? ... I'm afraid that in scenes with changes in the objects topology, export a sequence of .orbx files is the only solution currently.

Thanks,
-Juanjo