by DrawFun » Wed Nov 15, 2017 8:34 pm
DrawFun
Wed Nov 15, 2017 8:34 pm
Hi J.C, I noticed that all the monkeys vertexes are duplicated by array modifier and packed into a single object and mesh.
We can only apply instance tex/color among objects but not vertexes.
Just check the scene I attach.
- all the "Suzanne" objects are grouped into "Scatter group" 1.
- all objects in group 1 uses the mesh and material of "Suzanne" (the one with "Used as source for current group" checked).
- each object in group 1 has its own instance id, which decides its sampled pixel in tex.
We can assign "scatter instance id" in python console as following:
>>> meshes = bpy.data.meshes.values()
>>> for mesh in meshes:
... if mesh.name.startswith('Suzanne.'):
... id = int(mesh.name[mesh.name.rfind('.') + 1 :])
... mesh.octane.scatter_instance_id = id
Hope it helps. Thanks.
- Attachments
-
- modified-octane particle instances.blend
- (5.18 MiB) Downloaded 208 times