1
$\begingroup$

I want to have a plane which goes from temperature x to temperature y with respect to one of its sides. I was looking into drivers but this doesn't seem to accommodate geometry, only scale and position. Is there anyway that I can linearly increase the emission temperature of a plane surface with respect to the length of one of its sides; say its width.

enter image description here

$\endgroup$

1 Answer 1

4
$\begingroup$

You can map color temperature like you can map any other shader value with nodes, no need to involve drivers unless required.

enter image description here

Just use either direct texture coordinates as input for a Color Mix node, or use World Coordinates from a Geometry node instead.

Separate the desired direction, use math nodes to adjust length of progression, then feed it into a Color Mix with each temperature plugged to a Color socket.

enter image description here

Alternatively for more complex progression patterns you may use a gradient texture.

$\endgroup$
4
  • $\begingroup$ Nice answer, are you sure that the color is correctly interpolated with the mix. Wouldn't this be more accurate? $\endgroup$
    – Leander
    Apr 24, 2019 at 8:32
  • $\begingroup$ Yup, there's a difference, unless I messed up the math. $\endgroup$
    – Leander
    Apr 24, 2019 at 9:00
  • $\begingroup$ You're probably right. My mistake, I didn't give much though to the progression part, since you can basically changing it easily to suit your needs using either gradient textures, UVs or different mixing modes $\endgroup$ Apr 24, 2019 at 9:55
  • $\begingroup$ thanks so much I had no idea there was a geometry node!!! $\endgroup$ Apr 24, 2019 at 23:39

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .