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 https://upload.wikimedia.org/wikipedia/commons/thumb/9/93/Clinical_thermometer_38.7.JPG/1920px-Clinical_thermometer_38.7.JPG

I think you could do this using a parameter connected to world position offset: 1.10 - World Position Offset | Unreal Engine Documentation

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 -