Random texture - all objects same color?

Blender (Export script developed by yoyoz; Integrated Plugin developed by JimStar)
Post Reply
tamerkseniya
Licensed Customer
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? :roll:
2 x GTX 980 Ti, 32 GB ram, i7 5820K
abreukers
OctaneRender Team
Posts: 500
Joined: Thu Aug 18, 2011 12:28 am

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
Licensed Customer
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.
Attachments
sample.png
2 x GTX 980 Ti, 32 GB ram, i7 5820K
abreukers
OctaneRender Team
Posts: 500
Joined: Thu Aug 18, 2011 12:28 am

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
Licensed Customer
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
pegot
Licensed Customer
Posts: 934
Joined: Mon Nov 07, 2011 3:44 am

Has a work around for this been implemented yet?
Win 10
3.7Ghz i9 10900k / 64GB
ASUS STRIX Z490-E
PSU: PowerSpec 850Wd
RTX 3090 Asus Tuff

Network rendering:
Win 10
4.2Ghz i7 7700k / 64GB
AsRock SuperCarrier
PSU: EVGA 1200w
RTX 3080 Ti EVGA Hybrid
RTX 3080 ASUS Tuff
GTX 1080ti SC Black (wc)
Post Reply

Return to “Blender”