particleInteger channel
#1
Hi,

Is there any way to get particleInteger channel like in pflow ? I've been using this for vrayinstancer to get different instance per particleInteger. 

Best,
Tomasz
  Reply
#2
I'm not entirely sure what you mean, but you can use the Instance ID operator to assign IDs to render instances.
  Reply
#3
The Instance ID would mainly help me with materials, as VRayInstancer doesn't accept this as one of the modes - http://www.dabarti.com/screens/sb5dd5791...fe302b.png

I need this to control which particle is instanced with certain source objects, but the only mode that supports this is "particleInteger".

In past I used "Birth Script" or "Scripted Operator" in Pflow to change this. It's this property:
"-- .particleInteger : integer : Read|Write // to store custom integer data per particle"

It does seem to me that to get instances with VRay GPU and TyFlow I need to use vrayinstancer as the "render instances" in Mesh node is not supported. I just would like to have some more control over this. Maybe the "Instance ID" could have some option to "export as particleInteger value"?

Best,
Tomasz
  Reply
#4
Oh I see. Unfortunately that value doesn't seem to be exposed by the IParticleObjectExt interface, which means VRay is directly reading the data from a PFlow object, not its generic interface....so I don't think it would be possible to return a similar value from tyFlow.

If you're feeling really motivated to get it working, the VRayInstancer source code is included in the VRay SDK...you could modify it to associate birth IDs with that property instead of PFlow particle integers.
  Reply
#5
I see. I could try to ask Chaos to support more modes out of the box.

Is there is a way to make "render instances" in Mesh node compatible with V-Ray GPU?
  Reply
#6
Not currently, I've supplied ChaosGroup with my interface a few months ago, now we just have to wait for them to implement it.
  Reply


Forum Jump: