How could I do a mercury thermometer?

Can I accomplish a 3D model thermometer’s mercury effect with materials when temperature gets low/high?
I think material is the way to go instead of a 3D animation, is it possible?

For thermometer like this

I think you could do this using a parameter connected to world position offset:

It would have to affect the vertices on top of the mercury line, and stretch the mesh up and down based on whatever number you feed to the parameter via blueprint probably. I’ve never done anything like this, but that’s how I think I’d start.

  • double post -