Page 1 of 1

Random texture - all objects same color?

Posted: Sun Jun 05, 2016 9:05 pm
by tamerkseniya
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? :roll:

Re: Random texture - all objects same color?

Posted: Tue Jun 07, 2016 4:57 am
by abreukers
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?

Re: Random texture - all objects same color?

Posted: Tue Jun 07, 2016 8:08 am
by tamerkseniya
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.

Re: Random texture - all objects same color?

Posted: Thu Jun 16, 2016 4:15 am
by abreukers
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.

Re: Random texture - all objects same color?

Posted: Fri Jun 17, 2016 5:54 am
by tamerkseniya
Thank you for info abreukers! I will follow releases.

Re: Random texture - all objects same color?

Posted: Fri Dec 23, 2016 10:35 pm
by pegot
Has a work around for this been implemented yet?