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: 

3D Spherical Gradient Shader for Volume Density?

1 REPLY 1
Reply
Message 1 of 2
astrofalcon
780 Views, 1 Reply

3D Spherical Gradient Shader for Volume Density?

Does anyone know how to make the equivalent of Cinema 4Ds 3D-Spherical Gradient Shader? I'm trying to use this shader for the density of an Arnold Volume Sphere. I'm trying to avoid making custom VDBs to get the effect I need... Ultimately I'm trying to create an atmosphere falloff or fadeout but in XYZ 3D space not just UV that I can pipe into the density parameter of a volume shader.

Thanks so much!!!

- Shawn

3d-gradient.png

Tags (2)
Labels (2)
1 REPLY 1
Message 2 of 2

You need to control a ramp shader with the distance of the shading point. Try to build the following shader network: state_vector with Po -> length -> divide by the Sphere radius -> ramp_float.Input -> standard_volume.Density. Hope this helps.

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

Post to forums