Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Maxon Cinema 4D Creating a Multi Colored Material W/ Curves

  • Creating a Multi Colored Material W/ Curves

    Posted by Michael Gibson on September 21, 2009 at 1:11 am

    What I am trying to accomplish:
    I am shading a RealFlow fluid six different colors, where the colors are running parallel with the direction of the fluid. The problem is that the fluid flows around curves and I need to be able to bend the gradient to mimic the curve of the fluid.

    I am a Maya user and am working in Cinema 4d and cannot figure out how to create a shader or texture that is six different colors which is capable of conforming to the curves in the object it is applied to. I used a gradient mapped into the color, I pick out the 6 colors, selected 3d linear as the type and camera as the space, but cannot find a parameter to distort the lines in the gradient.

    I know there is a simple solution to this. If anyone has any suggestions or can point tell me how to set up a shader like this in C4d it would be much appreciated.

    Adam Trachtenberg replied 16 years, 7 months ago 2 Members · 3 Replies
  • 3 Replies
  • Adam Trachtenberg

    September 21, 2009 at 4:20 am

    Camera projection will simply project the colors from the cameras perspective. AFAIK the only way to do it would be to use UVW mapping, but that would require that the object have sensible UV mapping to begin with.

  • Michael Gibson

    September 21, 2009 at 5:56 am

    Thanks for the reply. The UV’s are “sensible” I applied a shader using the UVW projection, but I am still unable to manipulate a gradient the way I need. When the fluid turns 90 degrees the direction of the color bars needs turn with the mesh.

    Is there a way to projecting an image of the color bar from the top view down onto the fluid mesh?

    Thanks in advance to anyone taking time to respond.

  • Adam Trachtenberg

    September 21, 2009 at 5:48 pm

    Hi Michael,

    Yes, you can project a texture from any angle using camera projection. First create your camera, then set the texture tag to use camera projection and drag your camera from the Object Manager into the camera slot in the tex tag.

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy