Community
Arnold for 3ds Max
Rendering with Arnold in 3ds Max using the MaxtoA plug-in.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How could I make leaves (one polygon with multiple shells like paintEffect trees-without separate it) , with random diffuse color in Arnold Maya

6 REPLIES 6
SOLVED
Reply
Message 1 of 7
bakar22000yahoo_com
2141 Views, 6 Replies

How could I make leaves (one polygon with multiple shells like paintEffect trees-without separate it) , with random diffuse color in Arnold Maya

 
Tags (1)
Labels (1)
6 REPLIES 6
Message 2 of 7

A quick and easy method would be to connect a Utility shader to a Color Correct shader and use one of the Color Modes to change the colors of the leaves. Below is an example using an oak Paint Effect tree.

60-tree.jpg

Lee Griggs
Arnold rendering specialist
AUTODESK
Message 3 of 7

If you are actually using paint effects then the pfx color randomness is converted to a vertex colors using maya's colorSet node. You need to make sure you select the "Color" option for the "Vertex color mode" option in the convert options.

You can check the color set's name by selecting the converted mesh and opening the "Color Set Editor" option under the "Mesh Display" menu. This should show you the color sets connected to the selected mesh. Copy the name from there (usually like colorSet1, colorSet2, etc. )or rename it to one you like, f.e. leavesRandomColor. Apply an arnold shader to the converted geo and on its color attribute connect a user data color node. In the attribute name use the previously copied color set name (f.e. "leavesRandomColor"). On the converted mesh shape node, under the arnold section, make sure the "Export Vertex Colors" option is on. Now when you render, you should get the same color as your random pfx colors. You can control the randomization via your pfx node. You do not need to re-convert as long as you don't delete the history or remove the connection between the pfx brush and the converted mesh.

63-pfx-random-color.png

Message 4 of 7

What about random texture?

Message 5 of 7

Random texture can be a bit more involved. You can either unwrap the leaves in a manner that you have one leaf uv per udim tile and simply use leaf textures that are named as per the udim rule. Or you can use some scripts available freely on the internet that unwrap each leaf into square uvs and stack them all beside each other into one uv tile itself. Then you will have to make sure you create a single leaf texture with all the required variations within each uv shell.

Or you can use the same random vertex color to pick up different textures based on the lookdev nodes like colorLogic and colorCondition. You can use these nodes to compare an input color with the random vertex color being picked up the userDataColor node and accordingly map different textures. In the crude example below, I'm randomizing between a checker and ramp texture based on if the userDataColor is greater than a constant input color.

There can be even more involved setups that need a bit of scripting. You could assign custom user data on the converted mesh leaves that's the leaf texture name itself and look this up in a userDataString node. So on and so forth.

66-pfx-random-texture.png

Message 6 of 7

Although I did not expect to be answered (I repeatedly asked) ...

I am speechless ...

For an architectural plan it is very important. Until now I was using the script DjPFXUVs.

Such tips-tricks we need .

It works ..... Bravo and Bravo !!!

Message 7 of 7
joie
in reply to: lee_griggs

That works like the colorJitter, so it is useless if your leave (as the author request) is made of one plane with several divisions. The the object mode don't work (all the leaves are ONE object) and neither the face mode (each leaf has several polygons)

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report