Page 1 of 1
Instance Range Texture – how to?
Posted: Fri Nov 10, 2017 9:46 pm
by J.C
How to achieve the effect below in Blender plugin? I've tried using hair particle and array modifier but it did not work.
https://docs.otoy.com/StandaloneH/Stand ... s%7C_____5
Re: Instance Range Texture – how to?
Posted: Sun Nov 12, 2017 7:52 pm
by DrawFun
Hi J.C, could you please check on following settings:
1. Make sure the mesh type of target objects is "Scatter" and they are not overwritten by global settings
2. Set scatter groups as you want in "Data Tab" - "Octane properties" - "Scatter group"
3. Set scatter instance id in "Data Tab" - "Octane properties" - "Scatter instance id"
Thanks.
Re: Instance Range Texture – how to?
Posted: Mon Nov 13, 2017 1:08 pm
by J.C
Hi DrawFun. I've tried and checked all the mentioned settings before. None of these helps. I attach my test file to check it out.
Re: Instance Range Texture – how to?
Posted: Wed Nov 15, 2017 8:34 pm
by DrawFun
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.
Re: Instance Range Texture – how to?
Posted: Thu Nov 16, 2017 8:55 am
by J.C
Thank you for the information. This looks like a manual process than automated one.
I thought that this could be dane using particles or hair particles where id's are automatically assigned to all objects.
For what I understand now you have to place all objects manually, assign an id using script or manually and use the same instance group. Right?