Hi all,
I would like to ask if someone could help me about randomize the colour of one single material applied to different copies of one objects (not blocks and instances).
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? There is some other trick to make this?
Roy
Random color no instances
Forum rules
Please add your OS and Hardware Configuration in your signature, it makes it easier for us to help you analyze problems. Example: Win 7 64 | Geforce GTX680 | i7 3770 | 16GB
Please add your OS and Hardware Configuration in your signature, it makes it easier for us to help you analyze problems. Example: Win 7 64 | Geforce GTX680 | i7 3770 | 16GB
Hi Roy,
sorry, I’m not a Rhino user, but you need to assign a different Instance ID, in the Object Layer settings, to every block, then you can use the Instance Range node, please have a look at this OSL projection script, there is a Standalone example:
viewtopic.php?f=73&t=69211&hilit=random+osl+projection
ciao Beppe
sorry, I’m not a Rhino user, but you need to assign a different Instance ID, in the Object Layer settings, to every block, then you can use the Instance Range node, please have a look at this OSL projection script, there is a Standalone example:
viewtopic.php?f=73&t=69211&hilit=random+osl+projection
ciao Beppe
- roy_orengo
- Posts: 65
- Joined: Tue Nov 06, 2018 9:06 am
Hi Beppe,
thank you very much for your message.
This is exactly what I need!
But I don't know how to assign different ID tags to the Rhino Objects inside Rhinoceros. I mean, each object as one ID like this one in Rhino: "ID: 5a61a9cf-5977-4601-aadf-8e806e410c5e (851)" but if I apply the OSL material to all the objects nothing happens. Someone could help me with this?
Thanks again,
Roy
thank you very much for your message.
This is exactly what I need!
But I don't know how to assign different ID tags to the Rhino Objects inside Rhinoceros. I mean, each object as one ID like this one in Rhino: "ID: 5a61a9cf-5977-4601-aadf-8e806e410c5e (851)" but if I apply the OSL material to all the objects nothing happens. Someone could help me with this?
Thanks again,
Roy
- roy_orengo
- Posts: 65
- Joined: Tue Nov 06, 2018 9:06 am
Hi Roy,
it seems that the osl script has been loaded as an osl texture, not as an osl projection node
Did you load it in a Projection node in OSL projection mode?
Try to save the material in Standalone, then import back in Modo via LocalDB, does it work in this why?
ciao Beppe
it seems that the osl script has been loaded as an osl texture, not as an osl projection node

Did you load it in a Projection node in OSL projection mode?
Try to save the material in Standalone, then import back in Modo via LocalDB, does it work in this why?
ciao Beppe
- roy_orengo
- Posts: 65
- Joined: Tue Nov 06, 2018 9:06 am
Hi Beppe,
I think I did the mistake you told me.
Anyway, I've copied the material inside RHINOCEROS but I can't see the random projection. I think I have not given the right differents ID (I don't' know now if it is possible to do in Rhino). Do You have any suggestion? Your OSL is wonderful, I would like to use it in RHINOCEROS...
Thanks,
Roy
Hi Roy,
sorry, not a Rhino user, but you should need to find a way to assign different Instance IDs to the single pieces, probably via Geometry tab.
ciao Beppe
sorry, not a Rhino user, but you should need to find a way to assign different Instance IDs to the single pieces, probably via Geometry tab.
ciao Beppe