A simple question: I try to use random texture + gradient + diffuse material to obtain differently coloured objects. But it gives same color to all objects and when I change seed it changes the hue of all objects. What should I do or activate so that different colours are applied randomly to different objects?
Random texture - all objects same color?
- tamerkseniya

- Posts: 66
- Joined: Fri Apr 15, 2016 5:30 pm
Hello,
A simple question: I try to use random texture + gradient + diffuse material to obtain differently coloured objects. But it gives same color to all objects and when I change seed it changes the hue of all objects. What should I do or activate so that different colours are applied randomly to different objects?
A simple question: I try to use random texture + gradient + diffuse material to obtain differently coloured objects. But it gives same color to all objects and when I change seed it changes the hue of all objects. What should I do or activate so that different colours are applied randomly to different objects?
2 x GTX 980 Ti, 32 GB ram, i7 5820K
hi tamerkseniya, the random color texture calculates random greyscale values for instances of the same mesh, then you can use the gradient texture node to colorize. These colors are stable as long as the geometry graph and instance count is stable. Here is the basic idea behind it. How are your objects setup? can you post a sample scene?
i72630QM @ 2.00GHz | 6GB RAM | 2GB GeForce GT 540M | Win7 64bit
- tamerkseniya

- Posts: 66
- Joined: Fri Apr 15, 2016 5:30 pm
Hi abreukers,
I can post later the scene but it was simple, I created 4 types of leaves and copied them as instances. I made a simple node setup as in sample image (all cubes are instances). When I change random seed, color of cubes changes same for all, no variation.
I didnt try in stand alone yet, only in blender.
I can post later the scene but it was simple, I created 4 types of leaves and copied them as instances. I made a simple node setup as in sample image (all cubes are instances). When I change random seed, color of cubes changes same for all, no variation.
I didnt try in stand alone yet, only in blender.
2 x GTX 980 Ti, 32 GB ram, i7 5820K
tamerkseniya wrote:Hi abreukers,
I can post later the scene but it was simple, I created 4 types of leaves and copied them as instances. I made a simple node setup as in sample image (all cubes are instances). When I change random seed, color of cubes changes same for all, no variation.
I didnt try in stand alone yet, only in blender.
It seems you are right. I exported this type of instances from blender to try and see how they look in the standalone. Indeed, they do not have the instance structure I expected and that means the random texture will not yield the same effect. Even with Shift-D or Alt-D or even the array modifier, the blender instance object structure is in one mesh with no actual instance placements which the random node uses for the random seed. Note though that this only happens in blender due to how the blender instance object structure is, the other plugin editions do not have this problem. I have reported it to Jimstar, the plan is to put a workaround for it, but this may come one of the releases in the near future.
i72630QM @ 2.00GHz | 6GB RAM | 2GB GeForce GT 540M | Win7 64bit
- tamerkseniya

- Posts: 66
- Joined: Fri Apr 15, 2016 5:30 pm
Thank you for info abreukers! I will follow releases.
2 x GTX 980 Ti, 32 GB ram, i7 5820K
