Ponja

05-19-2009, 01:36 AM

Hi guys, I am using the Lattice Boltzmann Equation to simulate condensation of vapor. The code is run in Matlab and the end result is a [x,y,z,time] matrix which I want to render using openGL.

Now my question to you is how can this be done efficiently? Currently I am doing it in Matlab by simply plotting points with size and color dependent on the density at the location.

Naturally openGL should be able to offer some more sophisticated solutions with transparency. Ultimately having some vapor (smoke) - water effect with raytracing wouldn't be too shabby but I am not really sure of how I would go about this.

What can be done is that a cutoff density can be used in order to separate the vapor from water.

Any ideas?

Now my question to you is how can this be done efficiently? Currently I am doing it in Matlab by simply plotting points with size and color dependent on the density at the location.

Naturally openGL should be able to offer some more sophisticated solutions with transparency. Ultimately having some vapor (smoke) - water effect with raytracing wouldn't be too shabby but I am not really sure of how I would go about this.

What can be done is that a cutoff density can be used in order to separate the vapor from water.

Any ideas?