3D heat map to represent density

I am currently working on simulating a magnetic field in JMonkey3D. Currently, my solution to try and make a density distribution is to make an equal distribution of points (a cube) with different transparencies assigned to each point. So, it appears like it’s denser (brighter) in the center. Anyways, I was wondering if there was a way to make this more pretty? Like maybe making a heat map and mapping it to a cube of the same volume?

1 Like

Are you suggesting a giant cube made of many smaller semi transparent cubes of differing colours and transparencies (set at run time). If so that sound very doable. Sounds like a custom mesh where you set the colour on a vertex by vertex basis. If not; a mock up image would be useful.

(Could also be done with many box geometries but that would not be as performant)

1 Like