Page 1 of 2

Random instances transformation

Posted: Thu Apr 02, 2020 9:04 am
by roy_orengo
Hello,
I'm using blocks instances with Random textures colour inside the material. So I can see different colours for each block instance. Now I would like to know if there is some way to transform randomly the position of the texture too. Or some other way to make others change between the instances appearance from a single material applied to all.
Thanks, Roy

Re: Random instances transformation

Posted: Thu Apr 02, 2020 10:59 am
by face_off
Hi Roy

A block instance will assign an "Instance Id" for each instance of the block. So you can use the Instance Range node to set the color for each instance.

Paul

Re: Random instances transformation

Posted: Thu Apr 02, 2020 9:50 pm
by roy_orengo
Hi Paul,
thank you for you message. It seems to me similar to random colours or I'm wrong? It could be possible in some way to randomize the UV position of each instance?
Roy

Re: Random instances transformation

Posted: Fri Apr 03, 2020 5:29 am
by face_off
roy_orengo wrote:Hi Paul,
thank you for you message. It seems to me similar to random colours or I'm wrong? It could be possible in some way to randomize the UV position of each instance?
Roy
I don't you could do this via Octane. Instead you would need to convert the instances to individual meshes, and re-UV those meshes in Rhino.

Paul

Re: Random instances transformation

Posted: Fri Apr 03, 2020 7:46 am
by roy_orengo
Ok Paul, thank you.
Another question, please.
In this image, all the objects have the same material (with random colour texture applied). The cubes are instances so they show correctly the different colours.
The planks are not blocks, only some copy of the same object, so they are different Polysurfaces in Rhino. There is some way to apply to that planks too one single material with variations as the instances doing? I mean, each single planks have their ID, why they don't show the random colours?
Roy

Re: Random instances transformation

Posted: Fri Apr 10, 2020 11:10 am
by face_off
roy_orengo wrote:Ok Paul, thank you.
Another question, please.
In this image, all the objects have the same material (with random colour texture applied). The cubes are instances so they show correctly the different colours.
The planks are not blocks, only some copy of the same object, so they are different Polysurfaces in Rhino. There is some way to apply to that planks too one single material with variations as the instances doing? I mean, each single planks have their ID, why they don't show the random colours?
Roy
Hi Roy - as the planks are not instances, they will not have an ID - so therefore the random color texture will not work. You could randomize them with a texturemap that is applied in world space with a Projection mapping such as Box (in practice you would probably use this as an input to a Mix Texture to mix things up).

Paul

Re: Random instances transformation

Posted: Fri Apr 10, 2020 5:46 pm
by roy_orengo
Hi Paul,
thanks for your message.
Nice idea, but this is not exactly what I'm trying to do...
I send you a link to the general forum where I'm talking with Beppe Gullotta to try to use his wonderful OSL...
Do you have any suggestion?
Thanks,
Roy

viewtopic.php?f=9&t=74294

Re: Random instances transformation

Posted: Sat Apr 11, 2020 11:54 am
by face_off
roy_orengo wrote:Hi Paul,
thanks for your message.
Nice idea, but this is not exactly what I'm trying to do...
I send you a link to the general forum where I'm talking with Beppe Gullotta to try to use his wonderful OSL...
Do you have any suggestion?
Thanks,
Roy

viewtopic.php?f=9&t=74294
To use the OSL texture, you would need to change the OctaneMaterial type the NodeGraph. Then edit the node graph to edit the material as you would in Octane Standalone.

Paul

Re: Random instances transformation

Posted: Sun Apr 12, 2020 4:05 am
by roy_orengo
Hi Paul,
yes, this is working good now. The OSL works well if I have a block with instances, until now not with single different objects. But because in CInema 4d it works with singles objects too, I'm trying to use it in Rhino too, if possible. Thanks,
Roy

Re: Random instances transformation

Posted: Tue Apr 14, 2020 12:53 am
by face_off
roy_orengo wrote:Hi Paul,
yes, this is working good now. The OSL works well if I have a block with instances, until now not with single different objects. But because in CInema 4d it works with singles objects too, I'm trying to use it in Rhino too, if possible. Thanks,
Roy
Hi Roy

If you are using different object in Rhino, you need to use World Coordinate Space rather than Local Space.

Paul