Random texture - all objects same color?

Forums: Random texture - all objects same color?
Blender (Export script developed by yoyoz; Integrated Plugin developed by JimStar)

Random texture - all objects same color?

Postby tamerkseniya » Sun Jun 05, 2016 9:05 pm

tamerkseniya Sun Jun 05, 2016 9:05 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
tamerkseniya
Licensed Customer
Licensed Customer
 
Posts: 66
Joined: Fri Apr 15, 2016 5:30 pm

Re: Random texture - all objects same color?

Postby abreukers » Tue Jun 07, 2016 4:57 am

abreukers Tue Jun 07, 2016 4:57 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
abreukers
OctaneRender Team
OctaneRender Team
 
Posts: 498
Joined: Thu Aug 18, 2011 12:28 am

Re: Random texture - all objects same color?

Postby tamerkseniya » Tue Jun 07, 2016 8:08 am

tamerkseniya Tue Jun 07, 2016 8:08 am
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
tamerkseniya
Licensed Customer
Licensed Customer
 
Posts: 66
Joined: Fri Apr 15, 2016 5:30 pm

Re: Random texture - all objects same color?

Postby abreukers » Thu Jun 16, 2016 4:15 am

abreukers Thu Jun 16, 2016 4:15 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
abreukers
OctaneRender Team
OctaneRender Team
 
Posts: 498
Joined: Thu Aug 18, 2011 12:28 am

Re: Random texture - all objects same color?

Postby tamerkseniya » Fri Jun 17, 2016 5:54 am

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

Re: Random texture - all objects same color?

Postby pegot » Fri Dec 23, 2016 10:35 pm

pegot Fri Dec 23, 2016 10:35 pm
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)
pegot
Licensed Customer
Licensed Customer
 
Posts: 921
Joined: Mon Nov 07, 2011 3:44 am

Return to Blender


Who is online

Users browsing this forum: No registered users and 12 guests

Tue Apr 16, 2024 8:40 pm [ UTC ]