Community
Arnold for Cinema 4D Forum
Rendering with Arnold in CINEMA 4D using the C4DtoA plug-in.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Get color from texture for Arnold scatter

4 REPLIES 4
SOLVED
Reply
Message 1 of 5
pacox21
149 Views, 4 Replies

Get color from texture for Arnold scatter

Hello,

 

I'm scattering planes onto a surface to act as brush strokes.

 

I'm using Arnold scatter that scatters point onto said surface.

 

I would like to create a shader that takes the color of the texture of the object used as surface, and transfers it to the clones. Like hair if I'm using a tiger texture to drive my hair color, but for a regular object.

 

So if one point is scattered on a pink area of the model, the clone is pink, etc.

 

How would you do that in directly in Arnold ?

 

Thanks

 

Francis

 

4 REPLIES 4
Message 2 of 5
peter_horvath
in reply to: pacox21

Scattering is executed in the plugin code, before rendering. That means you can not use Arnold shaders for this, only native Cinema 4D nodes.

But it's doable with Effectors. For instance you can load a texture in the Shader Effector that sets the Display Color of the scattered instances based on the UVs of the surface. Then you can use a user_data_rgb shader to read that display_color attribute of the instances.

peter_horvath_0-1720028263440.png

 


// Peter Horvath
// C4DtoA developer
Message 3 of 5
pacox21
in reply to: peter_horvath

Thank you Peter, it works. Produces interesting results coupled with a facing ratio.

Would that work with mash in Maya too ?

 

I would like to have a shader setup that's procedural and produces a brush stroke effect ... I just found this super interesting page about that : http://zenopelgrims.com/project-arnold-brushstroke-shader-quantize.html

I understand the principle but I'm unable to understand / modify the code to suit my needs :')

 

I can probably do it in Houdini but wanted to avoid software back and forth. 
And now I'm rambling alone 😛 Oh well ...

 

Thanks again !

Message 4 of 5
peter_horvath
in reply to: pacox21

> Would that work with mash in Maya too?

 

Maya does not have a dedicated Arnold Scatter object. You have to use Bifrost for instancing, but I'm not very familiar with what you can do with it, sorry.


// Peter Horvath
// C4DtoA developer
Message 5 of 5
pacox21
in reply to: peter_horvath

Yes I know and I was surprised to see that, I thought the features were the same in every app.

 

I think that would work with mash though.

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

Post to forums  

Technology Administrators


Autodesk Design & Make Report