Isotropix Forums

random material

Clarisse related tips and tricks

random material

Unread postby dp_mg42 » Tue Jan 17, 2017 7:14 pm

Hi, I need help.
Imagine you create carpaint, and scattered car and want to randomize carpaint color.
In my carpaint setup I use gradient to get color but gradient texture can not randomize, try use random texture for gradient input failed because scattered all car with same color
dp_mg42
 
Posts: 2
Joined: Tue Jan 17, 2017 7:08 pm

Re: random material

Unread postby bruce » Wed Jan 18, 2017 10:15 am

Hi dp_mg42,

Here is a example to achieve what you want. You always need a support color to have acces to the instances duplicated on a scatterer.

Cheers.
Attachments
random_textures.project
(27.09 KiB) Downloaded 70 times
Bruce
Isotropix
Technical Artist - Clarisse Specialist
User avatar
bruce
 
Posts: 167
Joined: Fri May 20, 2016 12:11 pm

Re: random material

Unread postby Rvdn » Wed Mar 01, 2017 3:35 pm

Hi,

the scene you shared was very helpful, but I'm having an issue with a situation I'm in.
I'm using your process to shade cars that I scattered, so i want the body of my car to have random colors, but not the rest of the car.
The randomiser is working when I only scatter the body of my car, but not when I scatter a combiner of the body and the rest of the cars.
It's like combining the meshes prevent the shader to be applied randomly. The same happens with your scene, when I combine the boxes and then scatter them. The scattered combiner is only shaded by one of the multiples colors avalaible.

How could I manage to avoid that problem ? How could I scatter a combined object and still manage to randomly apply different colors on it ?

Edit : I found something that could look like a solution, but a scary one though :
I use two differents scatterer : one for the body of the car, and another one for the rest of the car, combined. If I want to scatter differents models of cars, part of the same car have to be on the same place in the list of their respective scatterer (it's crystal clear, right ? :D)

if I want to scatter a mercedes and a citroen, i'll have one "body'" scatterer with 1- mercedes body and 2 -citroen body, and another "rest" scatterer with 1 - rest mercedes combine and 2- rest citroen combine.
If the body of my mercedes is number 1 in the list of the scatterer, and the rest of the mercedes isn't number 1 in the list of its own scatterer, then the body of the mercedes will be on top of the "rest" of the citroen.

It's not really optimized if I have to scatter a lot of differents cars, but it is, for now, the only way I found to still manage to use the random shader on the body of the cars.

Thanks,
Thomas
Last edited by Rvdn on Wed Mar 01, 2017 6:42 pm, edited 1 time in total.
Rvdn
 
Posts: 6
Joined: Tue Feb 21, 2017 2:46 pm

Re: random material

Unread postby bruce » Wed Mar 01, 2017 6:40 pm

Hi Thomas,

Just use the same setup and in the "instance_color" node, change parent level to 2.

Cheers.
Bruce
Isotropix
Technical Artist - Clarisse Specialist
User avatar
bruce
 
Posts: 167
Joined: Fri May 20, 2016 12:11 pm

Re: random material

Unread postby Rvdn » Wed Mar 01, 2017 6:45 pm

Indeed,
thanks a lot for the quick reply ! :)
Rvdn
 
Posts: 6
Joined: Tue Feb 21, 2017 2:46 pm


Return to Tips and Tricks