# Object colour gradient not working

So basically I've been following a tutorial on youtube, and one of the steps is to use to 'color ramp' (below) to make a gradient on the object. My problem is that when rendered, or in the rendered preview, the object turns entirely yellow. I'll enclose some pictures below.

As far as I'm aware, there are no keyframes which make the object turn yellow, though I'm not entirely sure.

The object turns yellow in the following frames: 1-2, 4-12, 26-35, 38-113

Edit: When I change the colour type from RGB to HSV or HSL, the gradient appears. Also, when I move all the colour stops to the left side of the slider, the gradient appears, though only on the very right side of the shape, and it's way to sudden for my liking. It seems that it renders the first colour quite heavily, and then doesn't do anything else.It also may be affected by the elevation of the object. It appears as though if it is any lower or any higher than a particular level, it will turn yellow. Either that or that only on particular parts of the curve it's following, will it have the gradient. Another thing I found is that if the object is rendered in Edit Mode, then the gradient works just fine. It is only Object Mode that it stuffs up.

Any help is appreciated :)

• do you have an hdri in the scene – SHikha Mittal Aug 7 '20 at 1:58
• no i don't. I just went to world properties and set the background to black from there – user103802 Aug 7 '20 at 2:04
• Instead of playing a guess game, please edit your question and add a link to your file, so that others can help you better. – susu Aug 7 '20 at 3:21
• Best way to link the project? – user103802 Aug 7 '20 at 3:54
• See this to know how to upload a .blend file along with your question - blender.meta.stackexchange.com/questions/344/… – Nxdhin2005 Aug 7 '20 at 5:22

## 1 Answer

Go to overlays tab

There you will find the face orientation option.

Enable it

If the object turn blue its ok.

But if it is red then go to EDIT MODE, Select allA, and then press SHIFT + N to recalculate normals

See if that makes a difference.

• The object blue btw. – user103802 Aug 7 '20 at 3:36
• Have you tried putting the colour node into the fac. – Sam Aug 7 '20 at 3:39
• yes i have, that is the way it should have been anyway... oopsy i was messing around with it hoping something would work – user103802 Aug 7 '20 at 3:57