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: 

How to set the shading mode of rampRGB to 3D Linear?

9 REPLIES 9
Reply
Message 1 of 10
hasaddl
771 Views, 9 Replies

How to set the shading mode of rampRGB to 3D Linear?

In Cinema4D's standard materials I can add a gradient and set the type to "3D Linear" which gives a nice colored flow effect when the object is distorted.

In C4DtoA's rampRGB I can't find the 3D projection option. I have tried adding uv projection, uv transform or Triplanar, but it doesn't work.

How can I achieve a 3D Linear gradient in Arnold?8385-screenshot.jpg

Tags (2)
Labels (2)
9 REPLIES 9
Message 2 of 10

We don't have the 3D modes built in to our ramp shader, but you can build a shader network using the shading point position (Po in state_vector shader) to replicate the 3D gradient.

Here's a setup for 3D Spherical and 3D linear: 3d_gradient.zip

In 3D linear you have to project the shading point to the line defined by the Start and End values of the gradient, which could be a bit complex as a shader network. If you just need to move along one axis (e.g. only X), then you can end up with a much simpler network using a range shader.

Message 3 of 10

Thanks for the answer.

But there are some other questions: how to adjust the orientation of the gradient texture itself in this way, and how to change the uv scale, the tiling method, and other parameters?

The uv projection and uv transform nodes don't seem to work.

p.s. The Arnold material node used to implement the 3d linear gradient is just too complicated. I hope the 3d linear projection method could be one of the items on the list of gradient properties, like the gradient effect in Cinema4D standard materials.

Message 4 of 10

3D gradients depend on the distance not the UVs, that's why UV modifications have no effect. Or is it possible in C4D? Can you show me the setup and look you are looking for?

I agree, it would be nice to have this modes directly in the ramp shader. We have to discuss this internally.

Message 5 of 10

With your help, I've implemented the 3d linear gradient with some nodes, but the gradient texture is currently not tiled, which is still a problem I can't solve.

Here is download link of relevant files:https://cowtransfer.com/s/4a95fd922ff14b

Message 6 of 10

I see what you mean. Use a modulo shader after the range:

3d-linear-gradient.png

Message 7 of 10

Thank you very much. That's exactly the effect I was looking for.

I'm just starting to learn Arnold and not familiar enough with nodes that this way of using them is really too abstract for me.

The other question is how to add turbulence to the gradient in Arnold (like the effect presented in the attachment)? I really wanted to make it happen in Arnold.
gradient turbulent.zip

Message 8 of 10

Not entirely sure how Turbulence in gradient works, but probably you can do something similar by adding the C4D Noise shader of Turbulence type to the equation.

I can take a look next week.

Message 9 of 10
tw3
Explorer
in reply to: hasaddl

any chance you could re upload this file, please.

Message 10 of 10
tw3
Explorer
in reply to: hasaddl

my bad, its working now . . thanks

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

Post to forums